Class DefaultExportEmbeddedResourceRenderer
- java.lang.Object
-
- 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 rendererRequires that the PermissionManager attribute be set, in order to resolve permissions for attachments (it is not injected by Spring)
-
-
Constructor Summary
Constructors Constructor Description DefaultExportEmbeddedResourceRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
renderResource
public String renderResource(com.atlassian.renderer.embedded.EmbeddedResource resource, com.atlassian.renderer.RenderContext context)
- Specified by:
renderResource
in interfacecom.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)
-
-