Class DefaultImageDetailsManager
java.lang.Object
com.atlassian.confluence.pages.attachments.DefaultImageDetailsManager
- All Implemented Interfaces:
ImageDetailsManager
Calculates, stores and retrieves
ImageDetails for Attachments.
This manager listens for attachment events in order to proactively store image details for newly created or updated attachments, and to delete image details for deleted or outdated attachments.
ImageDetails are not stored for old versions of attachments, they are calculated each time when required.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImageDetails(Attachment attachment) Ifattachmentis an intelligble image, then this method returns theImageDetailsfor it.voidhandleEvent(AttachmentEvent event) voidsetAttachmentManager(AttachmentManager attachmentManager) voidsetImageDetailsDao(ImageDetailsDao imageDetailsDao) voidsetThumbnailManager(ThumbnailManager thumbnailManager)
-
Constructor Details
-
DefaultImageDetailsManager
public DefaultImageDetailsManager()
-
-
Method Details
-
getImageDetails
Description copied from interface:ImageDetailsManagerIfattachmentis an intelligble image, then this method returns theImageDetailsfor it. Otherwise it returns null.- Specified by:
getImageDetailsin interfaceImageDetailsManager- Returns:
- image details of the attachment or null if the attachment could not be parsed as an image.
-
handleEvent
-
setAttachmentManager
-
setImageDetailsDao
-
setThumbnailManager
-