public class ScriptThumbnailService extends BaseScopableProcessorExtension
| Constructor and Description |
|---|
ScriptThumbnailService() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeAwarePlaceHolderResourcePath(String thumbnailName,
String mimetype)
Gets the resource path for the place holder thumbnail for the given named thumbnail and the given mime type.
|
String |
getPlaceHolderResourcePath(String thumbnailName)
Gets the resource path for the place holder thumbnail for the given named thumbnail.
|
boolean |
isThumbnailNameRegistered(String thumbnailName)
Indicates whether a given thumbnail name has been registered.
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry)
Sets the Service Registry
|
getScope, setScopegetExtensionName, register, setExtensionName, setProcessorpublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - ServiceRegistrypublic boolean isThumbnailNameRegistered(String thumbnailName)
thumbnailName - thumbnail namepublic String getPlaceHolderResourcePath(String thumbnailName)
thumbnailName - the thumbnail namepublic String getMimeAwarePlaceHolderResourcePath(String thumbnailName, String mimetype)
getPlaceHolderResourcePath(String)
If neither a MIME-specific icon nor a generic icon is available, null is returned.thumbnailName - the thumbnail namemimetype - the mimetype of the piece of content.getPlaceHolderResourcePath(String)Copyright © 2005–2018 Alfresco Software. All rights reserved.