public class ScriptThumbnailService extends BaseScopableProcessorExtension
| Constructor and Description |
|---|
ScriptThumbnailService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMimeAwarePlaceHolderResourcePath(java.lang.String thumbnailName,
java.lang.String mimetype)
Gets the resource path for the place holder thumbnail for the given named thumbnail and the given mime type.
|
java.lang.String |
getPlaceHolderResourcePath(java.lang.String thumbnailName)
Gets the resource path for the place holder thumbnail for the given named thumbnail.
|
boolean |
isThumbnailNameRegistered(java.lang.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 - public boolean isThumbnailNameRegistered(java.lang.String thumbnailName)
thumbnailName - thumbnail namepublic java.lang.String getPlaceHolderResourcePath(java.lang.String thumbnailName)
thumbnailName - the thumbnail namepublic java.lang.String getMimeAwarePlaceHolderResourcePath(java.lang.String thumbnailName,
java.lang.String mimetype)
ScriptThumbnailService.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.ScriptThumbnailService.getPlaceHolderResourcePath(String)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.