org.alfresco.repo.cmis.rest
Class CMISPropertyValueMethod

java.lang.Object
  extended by org.alfresco.repo.cmis.rest.CMISPropertyValueMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class CMISPropertyValueMethod
extends java.lang.Object
implements freemarker.template.TemplateMethodModelEx

Custom FreeMarker Template language method.

Retrieve the CMIS property value for an Alfresco node and optionally dereferences it as an objectId.

Usage: cmisproperty(TemplateNode node, String propertyName) cmisproperty(TemplateNode node, String propertyName, Boolean asObject)


Nested Class Summary
static class CMISPropertyValueMethod.NULL
          NULL value marker
 
Field Summary
static freemarker.template.TemplateModel IS_NULL
           
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
CMISPropertyValueMethod(org.alfresco.cmis.CMISServices cmisService, RepositoryImageResolver imageResolver, org.alfresco.service.cmr.repository.TemplateValueConverter templateValueConverter)
          Construct
 
Method Summary
 java.lang.Object exec(java.util.List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_NULL

public static freemarker.template.TemplateModel IS_NULL
Constructor Detail

CMISPropertyValueMethod

public CMISPropertyValueMethod(org.alfresco.cmis.CMISServices cmisService,
                               RepositoryImageResolver imageResolver,
                               org.alfresco.service.cmr.repository.TemplateValueConverter templateValueConverter)
Construct

Method Detail

exec

public java.lang.Object exec(java.util.List args)
                      throws freemarker.template.TemplateModelException
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Specified by:
exec in interface freemarker.template.TemplateMethodModelEx
Throws:
freemarker.template.TemplateModelException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.