Package org.alfresco.repo.template
Class CropContentMethod
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.template.CropContentMethod
-
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel,freemarker.template.TemplateMethodModelEx,freemarker.template.TemplateModel,org.alfresco.processor.ProcessorExtension
public final class CropContentMethod extends BaseProcessorExtension implements freemarker.template.TemplateMethodModelEx
- Author:
- Kevin Roast
FreeMarker custom method to return the first N characters of a content stream.
Usage: String cropContent(TemplateContentData content, int length)
-
-
Constructor Summary
Constructors Constructor Description CropContentMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexec(java.util.List args)-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Method Detail
-
exec
public java.lang.Object exec(java.util.List args) throws freemarker.template.TemplateModelException- Specified by:
execin interfacefreemarker.template.TemplateMethodModel- Specified by:
execin interfacefreemarker.template.TemplateMethodModelEx- Throws:
freemarker.template.TemplateModelException- See Also:
TemplateMethodModel.exec(java.util.List)
-
-