java.lang.Object |
↳ |
com.atlassian.confluence.renderer.attachments.RendererAttachmentManager |
Class Overview
Implemenation of the RendererAttachmentManager that converts thumbnails and attachments into useable objects
for the wiki renderer.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.confluence.renderer.embedded.ImagePathHelper
|
From interface
com.atlassian.renderer.attachments.RendererAttachmentManager
RendererAttachment
|
getAttachment(RenderContext arg0, EmbeddedResource arg1)
|
RendererAttachment
|
getThumbnail(RendererAttachment arg0, RenderContext arg1, EmbeddedImage arg2)
|
boolean
|
systemSupportsThumbnailing()
|
|
Public Constructors
public
RendererAttachmentManager
()
Public Methods
public
RendererAttachment
getAttachment
(RenderContext renderContext, EmbeddedResource embeddedResource)
public
String
getImagePath
(Attachment attachment, boolean isThumbnail)
Return the path used to access the specified image. Note: it is expected that the
attachment references an image.
public
RendererAttachment
getThumbnail
(RendererAttachment rendererAttachment, RenderContext renderContext, EmbeddedImage embeddedImage)
public
boolean
systemSupportsThumbnailing
()
Protected Methods
protected
boolean
isPermittedToViewAttachment
(Attachment attachment)
Checks whether the user is able to view the attachment
Parameters
attachment
| the Attachment object |
Returns
- true if the user is a SuperUser or has VIEW permission