Package io.meeds.portal.thumbnail.plugin
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-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringabstract FileContentGet the content of the given fileMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
ImageThumbnailPlugin
public ImageThumbnailPlugin()
-
-
Method Details
-
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 identifierusername- 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
-