Class ThumbnailDownloadResourceManager
java.lang.Object
com.atlassian.confluence.importexport.resource.AttachmentDownloadResourceManager
com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceManager
- All Implemented Interfaces:
- DownloadResourceManager,- PartialDownloadResourceManager
- 
Constructor SummaryConstructorsConstructorDescriptionThumbnailDownloadResourceManager(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManagerInternal thumbnailManager, ContextPathHolder contextPathHolder) 
- 
Method SummaryModifier and TypeMethodDescriptiongetResourceReader(String userName, String resourcePath, Map parameters) Returns aThumbnailDownloadResourceReaderfor retrieving thumbnail content.booleanReturns a boolean to indicate whether the current DownloadResourceManager will know how to handle the given resourcePath.Methods inherited from class com.atlassian.confluence.importexport.resource.AttachmentDownloadResourceManagergetAttachment, getContextPathHolder, getPartialResourceReader, setAttachmentManager, setAttachmentUrlParser, setConfluenceUserDao, setContextPathHolder, setPermissionManager
- 
Constructor Details- 
ThumbnailDownloadResourceManagerpublic ThumbnailDownloadResourceManager(PermissionManager permissionManager, AttachmentManager attachmentManager, ConfluenceUserDao confluenceUserDao, AttachmentUrlParser attachmentUrlParser, ThumbnailManagerInternal thumbnailManager, ContextPathHolder contextPathHolder) - Since:
- 7.12
 
 
- 
- 
Method Details- 
matchesDescription copied from interface:DownloadResourceManagerReturns a boolean to indicate whether the current DownloadResourceManager will know how to handle the given resourcePath.- Specified by:
- matchesin interface- DownloadResourceManager
- Overrides:
- matchesin class- AttachmentDownloadResourceManager
- 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
 
- 
getResourceReaderpublic DownloadResourceReader getResourceReader(String userName, String resourcePath, Map parameters) throws UnauthorizedDownloadResourceException, DownloadResourceNotFoundException Returns aThumbnailDownloadResourceReaderfor retrieving thumbnail content. Typically used by HTML/PDF export and thumbnail downloads.- Specified by:
- getResourceReaderin interface- DownloadResourceManager
- Overrides:
- getResourceReaderin class- AttachmentDownloadResourceManager
- 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 it
- DownloadResourceNotFoundException- if the thumbnail content associated with the resourcePath cannot be found
 
 
-