com.atlassian.confluence.importexport.impl
Class DefaultExportEmbeddedResourceRenderer

java.lang.Object
  extended by com.atlassian.confluence.importexport.impl.DefaultExportEmbeddedResourceRenderer
All Implemented Interfaces:
com.atlassian.renderer.embedded.EmbeddedResourceRenderer

public class DefaultExportEmbeddedResourceRenderer
extends Object
implements com.atlassian.renderer.embedded.EmbeddedResourceRenderer

Class that passes on the rendering of an EmbeddedResource to the correct export renderer

Requires that the PermissionManager attribute be set, in order to resolve permissions for attachments (it is not injected by Spring)


Constructor Summary
DefaultExportEmbeddedResourceRenderer()
           
 
Method Summary
protected  boolean isPermittedToViewAttachment(Attachment attachment)
          Return true if the user is able to view the attachment.
 String renderResource(com.atlassian.renderer.embedded.EmbeddedResource resource, com.atlassian.renderer.RenderContext context)
           
 void setPermissionManager(PermissionManager permissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExportEmbeddedResourceRenderer

public DefaultExportEmbeddedResourceRenderer()
Method Detail

renderResource

public String renderResource(com.atlassian.renderer.embedded.EmbeddedResource resource,
                             com.atlassian.renderer.RenderContext context)
Specified by:
renderResource in interface com.atlassian.renderer.embedded.EmbeddedResourceRenderer

isPermittedToViewAttachment

protected boolean isPermittedToViewAttachment(Attachment attachment)
Return true if the user is able to view the attachment.


setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)


Copyright © 2003-2013 Atlassian. All Rights Reserved.