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
This commit is contained in:
Roy Wetherall 2008-06-05 10:07:26 +00:00
parent f084a9bf44
commit 04947b6ebb
2 changed files with 9 additions and 3 deletions

View File

@ -51,14 +51,14 @@
<!-- Small image thumbnail options -->
<bean class="org.alfresco.repo.thumbnail.ThumbnailDetails">
<property name="name" value="small" />
<property name="name" value="medium" />
<property name="mimetype" value="image/jpeg"/>
<property name="transformationOptions">
<bean class="org.alfresco.repo.content.transform.magick.ImageTransformationOptions">
<property name="resizeOptions">
<bean class="org.alfresco.repo.content.transform.magick.ImageResizeOptions">
<property name="width" value="64"/>
<property name="height" value="64"/>
<property name="width" value="100"/>
<property name="height" value="100"/>
<property name="maintainAspectRatio" value="true"/>
<property name="resizeToThumbnail" value="true" />
</bean>

View File

@ -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;