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
     
    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)
     

    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

    • 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
    • deleteThumbnails

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