Class ScriptThumbnailService
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.jscript.BaseScopableProcessorExtension
-
- org.alfresco.repo.thumbnail.script.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 Summary
Constructors Constructor Description ScriptThumbnailService()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetMimeAwarePlaceHolderResourcePath(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.java.lang.StringgetPlaceHolderResourcePath(java.lang.String thumbnailName)Deprecated.Gets the resource path for the place holder thumbnail for the given named thumbnail.booleanisThumbnailNameRegistered(java.lang.String thumbnailName)Deprecated.Indicates whether a given thumbnail name has been registered.voidsetServiceRegistry(ServiceRegistry serviceRegistry)Deprecated.Sets the Service Registry-
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
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 bygetPlaceHolderResourcePath(String)If neither a MIME-specific icon nor a generic icon is available,nullis returned.- Parameters:
thumbnailName- the thumbnail namemimetype- the mimetype of the piece of content.- Returns:
- String the place holder thumbnail resource path
- See Also:
getPlaceHolderResourcePath(String)
-
-