public class DefaultExportEmbeddedResourceRenderer extends Object implements com.atlassian.renderer.embedded.EmbeddedResourceRenderer
Requires that the PermissionManager attribute be set, in order to resolve permissions for attachments (it is not injected by Spring)
Constructor and Description |
---|
DefaultExportEmbeddedResourceRenderer() |
Modifier and Type | Method and 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) |
public DefaultExportEmbeddedResourceRenderer()
public String renderResource(com.atlassian.renderer.embedded.EmbeddedResource resource, com.atlassian.renderer.RenderContext context)
renderResource
in interface com.atlassian.renderer.embedded.EmbeddedResourceRenderer
protected boolean isPermittedToViewAttachment(Attachment attachment)
public void setPermissionManager(PermissionManager permissionManager)
Copyright © 2003–2021 Atlassian. All rights reserved.