Class ScriptThumbnailService

All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable

@Deprecated public class ScriptThumbnailService extends BaseScopableProcessorExtension
Deprecated.
The thumbnails code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.
Script object representing the site service.
Author:
Roy Wetherall
  • Constructor Details

    • ScriptThumbnailService

      public ScriptThumbnailService()
      Deprecated.
  • Method Details

    • setServiceRegistry

      public void setServiceRegistry(ServiceRegistry serviceRegistry)
      Deprecated.
      Sets the Service Registry
      Parameters:
      serviceRegistry - ServiceRegistry
    • isThumbnailNameRegistered

      public boolean isThumbnailNameRegistered(String thumbnailName)
      Deprecated.
      Indicates whether a given thumbnail name has been registered.
      Parameters:
      thumbnailName - thumbnail name
      Returns:
      boolean true if the thumbnail name is registered, false otherwise
    • getPlaceHolderResourcePath

      public String getPlaceHolderResourcePath(String thumbnailName)
      Deprecated.
      Gets the resource path for the place holder thumbnail for the given named thumbnail. Returns null if none set.
      Parameters:
      thumbnailName - the thumbnail name
      Returns:
      String the place holder thumbnail resource path, null if none set
    • getMimeAwarePlaceHolderResourcePath

      public String getMimeAwarePlaceHolderResourcePath(String thumbnailName, String mimetype)
      Deprecated.
      Gets the resource path for the place holder thumbnail for the given named thumbnail and the given mime type. If there is no icon available for the specified MIME type, a generic icon will be used instead. The generic icon is that returned by getPlaceHolderResourcePath(String) If neither a MIME-specific icon nor a generic icon is available, null is returned.
      Parameters:
      thumbnailName - the thumbnail name
      mimetype - the mimetype of the piece of content.
      Returns:
      String the place holder thumbnail resource path
      See Also: