mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Template extension spring configuration support
- similar pattern to existing script bean extension support - new root model helper objects and custom methods can be added via spring configuration Cleanup of script extension spring support Fix to thread safety of configured script extension beans that use the Scopable interface git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5369 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,14 +24,11 @@
|
||||
*/
|
||||
package org.alfresco.repo.template;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.service.cmr.repository.TemplateNode;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
import freemarker.ext.beans.BeanModel;
|
||||
import freemarker.ext.beans.StringModel;
|
||||
import freemarker.template.TemplateMethodModelEx;
|
||||
import freemarker.template.TemplateModelException;
|
||||
import freemarker.template.TemplateScalarModel;
|
||||
@@ -44,9 +41,9 @@ import freemarker.template.TemplateScalarModel;
|
||||
* Method returns whether a TemplateNode has a particular aspect applied to it. The aspect
|
||||
* name can be either the fully qualified QName or the short prefixed name string.
|
||||
* <p>
|
||||
* Usage: hasAspect(TemplateNode node, String aspect)
|
||||
* Usage: hasAspect(TemplateNode node, String aspect) - 1 on true, 0 on false
|
||||
*/
|
||||
public final class HasAspectMethod implements TemplateMethodModelEx
|
||||
public class HasAspectMethod extends BaseTemplateExtensionImplementation implements TemplateMethodModelEx
|
||||
{
|
||||
/**
|
||||
* @see freemarker.template.TemplateMethodModel#exec(java.util.List)
|
||||
|
Reference in New Issue
Block a user