Class DefaultImageDetailsManager

  • All Implemented Interfaces:
    ImageDetailsManager, com.atlassian.event.EventListener

    public final class DefaultImageDetailsManager
    extends Object
    implements ImageDetailsManager, com.atlassian.event.EventListener
    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 Detail

      • DefaultImageDetailsManager

        public DefaultImageDetailsManager()
    • Method Detail

      • handleEvent

        public void handleEvent​(com.atlassian.event.Event event)
        Specified by:
        handleEvent in interface com.atlassian.event.EventListener
      • getHandledEventClasses

        public Class<?>[] getHandledEventClasses()
        Specified by:
        getHandledEventClasses in interface com.atlassian.event.EventListener
      • setAttachmentManager

        public void setAttachmentManager​(AttachmentManager attachmentManager)
      • setImageDetailsDao

        public void setImageDetailsDao​(ImageDetailsDao imageDetailsDao)
      • setThumbnailManager

        public void setThumbnailManager​(ThumbnailManager thumbnailManager)