Class ThumbnailDownloadResourceManager
java.lang.Object
com.atlassian.confluence.importexport.resource.AttachmentDownloadResourceManager
com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceManager
- All Implemented Interfaces:
DownloadResourceManager
,PartialDownloadResourceManager
-
Constructor Summary
ConstructorDescriptionThumbnailDownloadResourceManager
(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManagerInternal thumbnailManager, ContextPathHolder contextPathHolder) ThumbnailDownloadResourceManager
(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManager thumbnailManager, ContextPathHolder contextPathHolder) Deprecated.since 7.12 -
Method Summary
Modifier and TypeMethodDescriptiongetResourceReader
(String userName, String resourcePath, Map parameters) Returns aThumbnailDownloadResourceReader
for retrieving thumbnail content.boolean
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the given resourcePath.void
setThumbnailManager
(ThumbnailManager thumbnailManager) Deprecated.since 7.12Methods inherited from class com.atlassian.confluence.importexport.resource.AttachmentDownloadResourceManager
getAttachment, getContextPathHolder, getPartialResourceReader, setAttachmentManager, setAttachmentUrlParser, setConfluenceUserDao, setContextPathHolder, setPermissionManager
-
Constructor Details
-
ThumbnailDownloadResourceManager
public ThumbnailDownloadResourceManager(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManagerInternal thumbnailManager, ContextPathHolder contextPathHolder) - Since:
- 7.12
-
ThumbnailDownloadResourceManager
@Deprecated public ThumbnailDownloadResourceManager(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManager thumbnailManager, ContextPathHolder contextPathHolder) Deprecated.since 7.12
-
-
Method Details
-
matches
Description copied from interface:DownloadResourceManager
Returns a boolean to indicate whether the current DownloadResourceManager will know how to handle the given resourcePath.- Specified by:
matches
in interfaceDownloadResourceManager
- Overrides:
matches
in classAttachmentDownloadResourceManager
- Parameters:
resourcePath
- the relative URL of the resource including the application context path. For example, "/confluence/download/attachments/12345/temp.png".- Returns:
- true if the manager can handle the given resource path
-
getResourceReader
public DownloadResourceReader getResourceReader(String userName, String resourcePath, Map parameters) throws UnauthorizedDownloadResourceException, DownloadResourceNotFoundException Returns aThumbnailDownloadResourceReader
for retrieving thumbnail content. Typically used by HTML/PDF export and thumbnail downloads.- Specified by:
getResourceReader
in interfaceDownloadResourceManager
- Overrides:
getResourceReader
in classAttachmentDownloadResourceManager
- Parameters:
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 resource- Returns:
- a DownloadResourceReader to read the resource content from
- Throws:
UnauthorizedDownloadResourceException
- 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 found
-
setThumbnailManager
Deprecated.since 7.12
-