org.alfresco.filesys.repo.rules
Class RuleEvaluatorImpl
java.lang.Object
org.alfresco.filesys.repo.rules.RuleEvaluatorImpl
- All Implemented Interfaces:
- RuleEvaluator
public class RuleEvaluatorImpl
- extends java.lang.Object
- implements RuleEvaluator
The Rule Evaluator evaluates the operation and returns
details of the commands to implement those operations.
It is configured with a list of scenarios.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleEvaluatorImpl
public RuleEvaluatorImpl()
init
public void init()
evaluate
public Command evaluate(EvaluatorContext context,
Operation operation)
- Evaluate the scenarios against the current operation
- Specified by:
evaluate
in interface RuleEvaluator
- Parameters:
operation
- the operation to be evaluated
setScenarios
public void setScenarios(java.util.List scenarios)
getScenarios
public java.util.List getScenarios()
createContext
public EvaluatorContext createContext()
- Description copied from interface:
RuleEvaluator
- Create a new evaluator context. Typically for a particular folder.
An evaluator context groups operations together.
- Specified by:
createContext
in interface RuleEvaluator
- Returns:
- the new context.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.