public final class DefaultImageDetailsManager extends Object implements ImageDetailsManager, com.atlassian.event.EventListener
ImageDetails
for Attachment
s.
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 and Description |
---|
DefaultImageDetailsManager() |
Modifier and Type | Method and Description |
---|---|
Class<?>[] |
getHandledEventClasses() |
ImageDetails |
getImageDetails(Attachment attachment)
If
attachment is an intelligble image, then this method returns the
ImageDetails for it. |
void |
handleEvent(com.atlassian.event.Event event) |
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setImageDetailsDao(ImageDetailsDao imageDetailsDao) |
void |
setThumbnailManager(ThumbnailManager thumbnailManager) |
public ImageDetails getImageDetails(Attachment attachment)
ImageDetailsManager
attachment
is an intelligble image, then this method returns the
ImageDetails
for it. Otherwise it returns null.getImageDetails
in interface ImageDetailsManager
public void handleEvent(com.atlassian.event.Event event)
handleEvent
in interface com.atlassian.event.EventListener
public Class<?>[] getHandledEventClasses()
getHandledEventClasses
in interface com.atlassian.event.EventListener
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setImageDetailsDao(ImageDetailsDao imageDetailsDao)
public void setThumbnailManager(ThumbnailManager thumbnailManager)
Copyright © 2003–2017 Atlassian. All rights reserved.