Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Example of using the API template with the 3.0 Thumbnail Service.
Link to the template for API References.
The Alfresco Thumbnail Service API provides developers with programmatic access to thumbnail images for the home pages of web sites.
The Alfresco Thumbnail Service API allows script writers to develop enhanced web sites, search results, web directories, blog entries, and other web real estate with thumbnail images.
Using the API, script writers can:
Provide other references (external and internal)...
These interfaces and classes make up the fundamental Thumbnail Service API.
Interface: ThumbnailService
Description: Thumbnail service API to create, update and retrieve thumbnails.
Interface Methods | Description |
---|---|
createThumbnail(NodeRef node, QName contentProperty, CreateOptions createOptions) | Creates a new thumbnail for the given node and content property. |
updateThumbnail(NodeRef thumbnail) | Updates the content of a thumbnail. |
getThumbnailByName(NodeRef node, QName contentProperty, String thumbnailName) | Gets the thumbnail for a given content property with a given name. |
getThumbnails(NodeRef node, QName contentProperty, String mimetype, TransformationOptions options) | Gets a list of thumbnail nodes for a given content property that match the provided mimetype and transformation options. |
Low-level description.
The passed create options specify the details of the thumbnail, including the mime type, size, and location of the thumbnail. Once created, the source node will have the tn:thumbnailed aspect applied and an association to the thumbnail node (or type tn:thumbnail) will be created.
The returned node reference is to the tn:thumbnail content node that contains the thumnail content in the standard cm:content property.
Low-level description.
The original creation options are used when updating the thumbnail. The content of the associated thumbnailed node is used to update. An error is raised if the original content no longer exists.
There are no return values.
Low-level description.
Gets the thumbnail for a given content property with a given name. Returns null if no thumbnail with that name for that content property is found.
Low-level description.
Gets a list of thumbnail nodes for a given content property that match the provided mimetype and transformation options. Both mimetype and transformation options are optional parameters. If only one or other is specified the only the other is considered during. If neither are provided all thumbnails for that content property are returned.
If no matches are found then an empty list is returned.
Type: CreateOptions
Description: Provides the thumbnail create options to the thumbnail service
Interface Methods | Description |
---|---|
createThumbnail(NodeRef node, QName contentProperty, CreateOptions createOptions) | Creates a new thumbnail for the given node and content property. |
updateThumbnail(NodeRef thumbnail) | Updates the content of a thumbnail. |
getThumbnailByName(NodeRef node, QName contentProperty, String thumbnailName) | Gets the thumbnail for a given content property with a given name. |
getThumbnails(NodeRef node, QName contentProperty, String mimetype, TransformationOptions options) | Gets a list of thumbnail nodes for a given content property that match the provided mimetype and transformation options. |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.