org.alfresco.web.evaluator
Class NodeTypeEvaluator

java.lang.Object
  extended by org.alfresco.web.evaluator.BaseEvaluator
      extended by org.alfresco.web.evaluator.NodeTypeEvaluator
All Implemented Interfaces:
Evaluator

public class NodeTypeEvaluator
extends BaseEvaluator

Evaluates whether a node is of a certain type, optionally checking for subtype


Field Summary
 
Fields inherited from class org.alfresco.web.evaluator.BaseEvaluator
args, metadata, negateOutput
 
Constructor Summary
NodeTypeEvaluator()
           
 
Method Summary
 boolean evaluate(org.json.simple.JSONObject jsonObject)
          Evaluator implementations abstract method.
 void setAllowSubtypes(boolean allowSubtypes)
          Whether subtypes are allowed or not.
 void setDictionary(DictionaryQuery dictionary)
          Dictionary Query bean reference
 void setTypes(java.util.ArrayList types)
          Define the list of types to check for
 
Methods inherited from class org.alfresco.web.evaluator.BaseEvaluator
evaluate, evaluate, evaluate, getArg, getArgs, getContainerType, getHeader, getIsLocked, getIsPortlet, getJSONValue, getMatchesCurrentUser, getMetadata, getNodeAspects, getNodeType, getProperty, getSiteId, getSitePreset, getUserId, setNegateOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTypeEvaluator

public NodeTypeEvaluator()
Method Detail

setDictionary

public void setDictionary(DictionaryQuery dictionary)
Dictionary Query bean reference

Parameters:
dictionary -

setAllowSubtypes

public void setAllowSubtypes(boolean allowSubtypes)
Whether subtypes are allowed or not. Default is that subtypes ARE allowed.

Parameters:
allowSubtypes -

setTypes

public void setTypes(java.util.ArrayList types)
Define the list of types to check for

Parameters:
types -

evaluate

public boolean evaluate(org.json.simple.JSONObject jsonObject)
Description copied from class: BaseEvaluator
Evaluator implementations abstract method.

Specified by:
evaluate in interface Evaluator
Specified by:
evaluate in class BaseEvaluator
Parameters:
jsonObject - The object the evaluation is for
Returns:
boolean indicating evaluator result


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