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 Detail

      • ScriptThumbnailService

        public ScriptThumbnailService()
        Deprecated.
    • Method Detail

      • setServiceRegistry

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

        public boolean isThumbnailNameRegistered​(java.lang.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 java.lang.String getPlaceHolderResourcePath​(java.lang.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 java.lang.String getMimeAwarePlaceHolderResourcePath​(java.lang.String thumbnailName,
                                                                    java.lang.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:
        getPlaceHolderResourcePath(String)