org.alfresco.web.evaluator
Class ChainedMatchAllEvaluator

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

public class ChainedMatchAllEvaluator
extends BaseEvaluator

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


Field Summary
 
Fields inherited from class org.alfresco.web.evaluator.BaseEvaluator
args, metadata, negateOutput
 
Constructor Summary
ChainedMatchAllEvaluator()
           
 
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

ChainedMatchAllEvaluator

public ChainedMatchAllEvaluator()
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.