Interface ImageThumbnailService
public interface ImageThumbnailService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(ImageThumbnailPlugin imageThumbnailPlugin) Add a newImageThumbnailPluginfor a given file TypecreateThumbnail(String id, FileContent fileContent, String userName, int width, int height) Create a thumbnail for given fileId thith given width and height.voiddeleteThumbnails(Long fileId) Delete all thumbnails by fileIdvoiddeleteThumbnails(String fileType, String fileId) Delete all thumbnails by fileIdgetOrCreateThumbnail(String fileType, String id, String userName, int width, int height) Retrieves a thumbnail by given fileId, fileType, width and height or creates a thumbnail image and create it if not existgetOrCreateThumbnail(FileItem file, int width, int height) Deprecated, for removal: This API element is subject to removal in a future version.getOrCreateThumbnail(ImageResizeService resizeSupplier, FileItem file, int width, int height) Deprecated, for removal: This API element is subject to removal in a future version.getThumbnail(String id, int width, int height) Retrieves a thumbnail by given fileId, width and height or creates a thumbnailvoidremovePlugin(String fileType) Removes aImageThumbnailPluginidentified by its file type
-
Method Details
-
getOrCreateThumbnail
@Deprecated(forRemoval=true, since="7.1.0") FileItem getOrCreateThumbnail(FileItem file, int width, int height) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Retrieves a thumbnail by given width and height or creates a thumbnail image and create it if not exist -
getOrCreateThumbnail
@Deprecated(forRemoval=true, since="7.1.0") FileItem getOrCreateThumbnail(ImageResizeService resizeSupplier, FileItem file, int width, int height) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Retrieves a thumbnail by given width and height or creates a thumbnail image and create it if not exist- Parameters:
resizeSupplier- if resizeSupplier is null then useImageResizeServicefile- Image filewidth- target thumbnail widthheight- target thumbnail height- Returns:
FileItem- Throws:
Exception
-
getOrCreateThumbnail
FileItem getOrCreateThumbnail(String fileType, String id, String userName, int width, int height) throws Exception Retrieves a thumbnail by given fileId, fileType, width and height or creates a thumbnail image and create it if not exist -
getThumbnail
Retrieves a thumbnail by given fileId, width and height or creates a thumbnail -
createThumbnail
FileItem createThumbnail(String id, FileContent fileContent, String userName, int width, int height) throws Exception Create a thumbnail for given fileId thith given width and height. -
deleteThumbnails
Delete all thumbnails by fileId- Parameters:
fileType- file TypefileId- file id
-
deleteThumbnails
Delete all thumbnails by fileId- Parameters:
fileId- file id
-
addPlugin
Add a newImageThumbnailPluginfor a given file Type- Parameters:
imageThumbnailPlugin-ImageThumbnailPlugin
-
removePlugin
Removes aImageThumbnailPluginidentified by its file type- Parameters:
fileType- File type
-
getOrCreateThumbnail(String fileType, String id, String userName, int width, int height)instead