Class 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 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)