org.alfresco.web.evaluator
Class ChainedMatchOneEvaluator

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

public class ChainedMatchOneEvaluator
extends BaseEvaluator

Calls multiple evaluators in turn until either the last one is called or one of the evaluators returns true. Effectively becomes a logical OR of the participating evaluators.


Field Summary
 
Fields inherited from class org.alfresco.web.evaluator.BaseEvaluator
args, metadata, negateOutput
 
Constructor Summary
ChainedMatchOneEvaluator()
           
 
Method Summary
 boolean evaluate(org.json.simple.JSONObject jsonObject)
          Run through each given evaluator until we either get to the end or one returns false
 void setEvaluators(java.util.ArrayList evaluators)
          Evaluators to participate in the evaluation chain
 
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

ChainedMatchOneEvaluator

public ChainedMatchOneEvaluator()
Method Detail

setEvaluators

public void setEvaluators(java.util.ArrayList evaluators)
Evaluators to participate in the evaluation chain

Parameters:
evaluators -

evaluate

public boolean evaluate(org.json.simple.JSONObject jsonObject)
Run through each given evaluator until we either get to the end or one returns false

Specified by:
evaluate in interface Evaluator
Specified by:
evaluate in class BaseEvaluator
Parameters:
jsonObject - The object the action is for
Returns:


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