mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
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:
parent
f084a9bf44
commit
04947b6ebb
@ -51,14 +51,14 @@
|
|||||||
|
|
||||||
<!-- Small image thumbnail options -->
|
<!-- Small image thumbnail options -->
|
||||||
<bean class="org.alfresco.repo.thumbnail.ThumbnailDetails">
|
<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="mimetype" value="image/jpeg"/>
|
||||||
<property name="transformationOptions">
|
<property name="transformationOptions">
|
||||||
<bean class="org.alfresco.repo.content.transform.magick.ImageTransformationOptions">
|
<bean class="org.alfresco.repo.content.transform.magick.ImageTransformationOptions">
|
||||||
<property name="resizeOptions">
|
<property name="resizeOptions">
|
||||||
<bean class="org.alfresco.repo.content.transform.magick.ImageResizeOptions">
|
<bean class="org.alfresco.repo.content.transform.magick.ImageResizeOptions">
|
||||||
<property name="width" value="64"/>
|
<property name="width" value="100"/>
|
||||||
<property name="height" value="64"/>
|
<property name="height" value="100"/>
|
||||||
<property name="maintainAspectRatio" value="true"/>
|
<property name="maintainAspectRatio" value="true"/>
|
||||||
<property name="resizeToThumbnail" value="true" />
|
<property name="resizeToThumbnail" value="true" />
|
||||||
</bean>
|
</bean>
|
||||||
|
@ -1924,6 +1924,12 @@ public class ScriptNode implements Serializable, Scopeable
|
|||||||
return new ScriptThumbnail(thumbnailNodeRef, this.services, this.scope);
|
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)
|
public ScriptThumbnail getThumbnail(String thumbnailName)
|
||||||
{
|
{
|
||||||
ScriptThumbnail result = null;
|
ScriptThumbnail result = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user