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

    Constructors
    Constructor
    Description
    ImageThumbnailServiceImpl(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.services.thumbnail.ImageResizeService imageResizeService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPlugin(io.meeds.portal.thumbnail.plugin.ImageThumbnailPlugin imageThumbnailPlugin)
     
    org.exoplatform.commons.file.model.FileItem
    createThumbnail(String id, io.meeds.portal.thumbnail.model.FileContent fileContent, String userName, int width, int height)
     
    void
     
    void
    deleteThumbnails(String fileType, String fileId)
     
    org.exoplatform.commons.file.model.FileItem
    getOrCreateThumbnail(String fileType, String id, String userName, int width, int height)
     
    org.exoplatform.commons.file.model.FileItem
    getOrCreateThumbnail(org.exoplatform.commons.file.model.FileItem file, int width, int height)
    org.exoplatform.commons.file.model.FileItem
    getOrCreateThumbnail(org.exoplatform.services.thumbnail.ImageResizeService resizeSupplier, org.exoplatform.commons.file.model.FileItem file, int width, int height)
     
    org.exoplatform.commons.file.model.FileItem
    getThumbnail(String id, int width, int height)
     
    void
    removePlugin(String fileType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      addPlugin in interface org.exoplatform.services.thumbnail.ImageThumbnailService
    • removePlugin

      public void removePlugin(String fileType)
      Specified by:
      removePlugin in interface org.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:
      getOrCreateThumbnail in interface org.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:
      getOrCreateThumbnail in interface org.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:
      getOrCreateThumbnail in interface org.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:
      getThumbnail in interface org.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:
      createThumbnail in interface org.exoplatform.services.thumbnail.ImageThumbnailService
      Throws:
      Exception
    • deleteThumbnails

      public void deleteThumbnails(Long fileId)
      Specified by:
      deleteThumbnails in interface org.exoplatform.services.thumbnail.ImageThumbnailService
    • deleteThumbnails

      public void deleteThumbnails(String fileType, String fileId)
      Specified by:
      deleteThumbnails in interface org.exoplatform.services.thumbnail.ImageThumbnailService