public class RendererAttachmentManager extends Object implements com.atlassian.renderer.attachments.RendererAttachmentManager, ImagePathHelper
Constructor and Description |
---|
RendererAttachmentManager() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.renderer.attachments.RendererAttachment |
getAttachment(com.atlassian.renderer.RenderContext renderContext,
com.atlassian.renderer.embedded.EmbeddedResource embeddedResource) |
String |
getImagePath(Attachment attachment,
boolean isThumbnail)
Return the path used to access the specified image.
|
com.atlassian.renderer.attachments.RendererAttachment |
getThumbnail(com.atlassian.renderer.attachments.RendererAttachment rendererAttachment,
com.atlassian.renderer.RenderContext renderContext,
com.atlassian.renderer.embedded.EmbeddedImage embeddedImage) |
protected boolean |
isPermittedToViewAttachment(Attachment attachment)
Checks whether the user is able to view the attachment
|
void |
setPermissionManager(PermissionManager permissionManager) |
void |
setThumbnailManager(ThumbnailManager thumbnailManager) |
boolean |
systemSupportsThumbnailing() |
public com.atlassian.renderer.attachments.RendererAttachment getAttachment(com.atlassian.renderer.RenderContext renderContext, com.atlassian.renderer.embedded.EmbeddedResource embeddedResource)
getAttachment
in interface com.atlassian.renderer.attachments.RendererAttachmentManager
public com.atlassian.renderer.attachments.RendererAttachment getThumbnail(com.atlassian.renderer.attachments.RendererAttachment rendererAttachment, com.atlassian.renderer.RenderContext renderContext, com.atlassian.renderer.embedded.EmbeddedImage embeddedImage)
getThumbnail
in interface com.atlassian.renderer.attachments.RendererAttachmentManager
public boolean systemSupportsThumbnailing()
systemSupportsThumbnailing
in interface com.atlassian.renderer.attachments.RendererAttachmentManager
public String getImagePath(Attachment attachment, boolean isThumbnail)
ImagePathHelper
getImagePath
in interface ImagePathHelper
protected boolean isPermittedToViewAttachment(Attachment attachment)
attachment
- the Attachment objectpublic void setPermissionManager(PermissionManager permissionManager)
public void setThumbnailManager(ThumbnailManager thumbnailManager)
Copyright © 2003–2020 Atlassian. All rights reserved.