Class ImageThumbnailServiceImpl
java.lang.Object
org.exoplatform.social.core.thumbnail.ImageThumbnailServiceImpl
- All Implemented Interfaces:
org.exoplatform.services.thumbnail.ImageThumbnailService
public class ImageThumbnailServiceImpl
extends Object
implements org.exoplatform.services.thumbnail.ImageThumbnailService
-
Constructor Summary
ConstructorsConstructorDescriptionImageThumbnailServiceImpl(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.services.thumbnail.ImageResizeService imageResizeService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(io.meeds.portal.thumbnail.plugin.ImageThumbnailPlugin imageThumbnailPlugin) org.exoplatform.commons.file.model.FileItemcreateThumbnail(String id, io.meeds.portal.thumbnail.model.FileContent fileContent, String userName, int width, int height) voiddeleteThumbnails(Long fileId) voiddeleteThumbnails(String fileType, String fileId) org.exoplatform.commons.file.model.FileItemgetOrCreateThumbnail(String fileType, String id, String userName, int width, int height) org.exoplatform.commons.file.model.FileItemgetOrCreateThumbnail(org.exoplatform.commons.file.model.FileItem file, int width, int height) org.exoplatform.commons.file.model.FileItemgetOrCreateThumbnail(org.exoplatform.services.thumbnail.ImageResizeService resizeSupplier, org.exoplatform.commons.file.model.FileItem file, int width, int height) org.exoplatform.commons.file.model.FileItemgetThumbnail(String id, int width, int height) voidremovePlugin(String fileType)
-
Constructor Details
-
ImageThumbnailServiceImpl
public ImageThumbnailServiceImpl(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.services.thumbnail.ImageResizeService imageResizeService)
-
-
Method Details
-
addPlugin
public void addPlugin(io.meeds.portal.thumbnail.plugin.ImageThumbnailPlugin imageThumbnailPlugin) - Specified by:
addPluginin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService
-
removePlugin
- Specified by:
removePluginin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService
-
getOrCreateThumbnail
public org.exoplatform.commons.file.model.FileItem getOrCreateThumbnail(org.exoplatform.commons.file.model.FileItem file, int width, int height) throws Exception - Specified by:
getOrCreateThumbnailin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService- Throws:
Exception
-
getOrCreateThumbnail
public org.exoplatform.commons.file.model.FileItem getOrCreateThumbnail(org.exoplatform.services.thumbnail.ImageResizeService resizeSupplier, org.exoplatform.commons.file.model.FileItem file, int width, int height) throws Exception - Specified by:
getOrCreateThumbnailin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService- Throws:
Exception
-
getOrCreateThumbnail
public org.exoplatform.commons.file.model.FileItem getOrCreateThumbnail(String fileType, String id, String userName, int width, int height) throws Exception - Specified by:
getOrCreateThumbnailin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService- Throws:
Exception
-
getThumbnail
public org.exoplatform.commons.file.model.FileItem getThumbnail(String id, int width, int height) throws Exception - Specified by:
getThumbnailin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService- Throws:
Exception
-
createThumbnail
public org.exoplatform.commons.file.model.FileItem createThumbnail(String id, io.meeds.portal.thumbnail.model.FileContent fileContent, String userName, int width, int height) throws Exception - Specified by:
createThumbnailin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService- Throws:
Exception
-
deleteThumbnails
- Specified by:
deleteThumbnailsin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService
-
deleteThumbnails
- Specified by:
deleteThumbnailsin interfaceorg.exoplatform.services.thumbnail.ImageThumbnailService
-