mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Thumbnail Service: removed unessesary code to store transformation options on node, added GET for thumbnail collection resource, created thumbnails are kept in sync with the master file asynchronously
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9452 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2002,12 +2002,25 @@ public class ScriptNode implements Serializable, Scopeable
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the all the thumbnails for a given node's content property.
|
||||
*
|
||||
* @return
|
||||
* @return ScriptThumbnail list of thumbnails, empty if none available
|
||||
*/
|
||||
public ScriptableHashMap<String, ScriptThumbnail> getThumbnails()
|
||||
public ScriptThumbnail[] getThumbnails()
|
||||
{
|
||||
return null;
|
||||
List<NodeRef> thumbnails = this.services.getThumbnailService().getThumbnails(
|
||||
this.nodeRef,
|
||||
ContentModel.PROP_CONTENT,
|
||||
null,
|
||||
null);
|
||||
|
||||
List<ScriptThumbnail> result = new ArrayList<ScriptThumbnail>(thumbnails.size());
|
||||
for (NodeRef thumbnail : thumbnails)
|
||||
{
|
||||
ScriptThumbnail scriptThumbnail = new ScriptThumbnail(thumbnail, this.services, this.scope);
|
||||
result.add(scriptThumbnail);
|
||||
}
|
||||
return (ScriptThumbnail[])result.toArray(new ScriptThumbnail[result.size()]);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user