public class ThumbnailDownloadResourceManager extends AttachmentDownloadResourceManager
Constructor and Description |
---|
ThumbnailDownloadResourceManager() |
Modifier and Type | Method and Description |
---|---|
DownloadResourceReader |
getResourceReader(String userName,
String resourcePath,
Map parameters)
Returns a
ThumbnailDownloadResourceReader for retrieving thumbnail content. |
boolean |
matches(String resourcePath)
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the
given resourcePath.
|
void |
setThumbnailManager(ThumbnailManager thumbnailManager) |
getAttachment, setAttachmentManager, setAttachmentUrlParser, setConfluenceUserDao, setPermissionManager
public boolean matches(String resourcePath)
DownloadResourceManager
matches
in interface DownloadResourceManager
matches
in class AttachmentDownloadResourceManager
resourcePath
- the relative URL of the resource including the application context path. For example,
"/confluence/download/attachments/12345/temp.png".public DownloadResourceReader getResourceReader(String userName, String resourcePath, Map parameters) throws UnauthorizedDownloadResourceException, DownloadResourceNotFoundException
ThumbnailDownloadResourceReader
for retrieving thumbnail content. Typically used by HTML/PDF
export and thumbnail downloads.getResourceReader
in interface DownloadResourceManager
getResourceReader
in class AttachmentDownloadResourceManager
userName
- the user who is retrieving the thumbnail content.resourcePath
- the relative URL of the resource including the application context path. For example,
"/confluence/download/thumbnails/12345/temp.png".parameters
- a map of url paramaters for the resourceUnauthorizedDownloadResourceException
- if the user requesting the thumbnail content does not have the
permissions to view itDownloadResourceNotFoundException
- if the thumbnail content associated with the resourcePath cannot be
foundpublic void setThumbnailManager(ThumbnailManager thumbnailManager)
Copyright © 2003–2016 Atlassian. All rights reserved.
View cookie preferences