Class ImageThumbnailPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.portal.thumbnail.plugin.ImageThumbnailPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public abstract class ImageThumbnailPlugin extends org.exoplatform.container.component.BaseComponentPlugin
A plugin that will be used by ImageThumbnailService to get image contents
  • Constructor Details

    • ImageThumbnailPlugin

      public ImageThumbnailPlugin()
  • Method Details

    • getFileType

      public abstract String getFileType()
      Returns:
      file type that plugin handles
    • getImage

      public abstract FileContent getImage(String fileId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Get the content of the given file
      Parameters:
      fileId - file technical unique identifier
      username - user name
      Returns:
      @return FileItem of the image related to the file Id
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException - thrown when the object doesn't exists