From 04947b6ebbd28e632acf08d8558dc3a7c9e4e0a0 Mon Sep 17 00:00:00 2001 From: Roy Wetherall Date: Thu, 5 Jun 2008 10:07:26 +0000 Subject: [PATCH] Added stream content 'kind of' web script, modified ContentGet webscript to use common code, create GET thumbnail method based on stream content kind of web script git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9395 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/thumbnail-service-context.xml | 6 +++--- source/java/org/alfresco/repo/jscript/ScriptNode.java | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/config/alfresco/thumbnail-service-context.xml b/config/alfresco/thumbnail-service-context.xml index 0b186a37f8..c543fe2ab7 100644 --- a/config/alfresco/thumbnail-service-context.xml +++ b/config/alfresco/thumbnail-service-context.xml @@ -51,14 +51,14 @@ - + - - + + diff --git a/source/java/org/alfresco/repo/jscript/ScriptNode.java b/source/java/org/alfresco/repo/jscript/ScriptNode.java index 0a1e34cb2e..705d1c166f 100644 --- a/source/java/org/alfresco/repo/jscript/ScriptNode.java +++ b/source/java/org/alfresco/repo/jscript/ScriptNode.java @@ -1924,6 +1924,12 @@ public class ScriptNode implements Serializable, Scopeable return new ScriptThumbnail(thumbnailNodeRef, this.services, this.scope); } + /** + * Get the given thumbnail for the content property + * + * @param thumbnailName the thumbnail name + * @return ScriptThumbnail the thumbnail + */ public ScriptThumbnail getThumbnail(String thumbnailName) { ScriptThumbnail result = null;