public class ThumbnailDownloadResourceManager extends AttachmentDownloadResourceManager
Constructor and Description |
---|
ThumbnailDownloadResourceManager(PermissionManager permissionManager,
AttachmentManager attachmentManager,
ConfluenceUserDao confluenceUserDao,
AttachmentUrlParser attachmentUrlParser,
ThumbnailManager thumbnailManager,
ContextPathHolder contextPathHolder) |
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, getContextPathHolder, getPartialResourceReader, setAttachmentManager, setAttachmentUrlParser, setConfluenceUserDao, setContextPathHolder, setPermissionManager
public ThumbnailDownloadResourceManager(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManager thumbnailManager, ContextPathHolder contextPathHolder)
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–2017 Atlassian. All rights reserved.