Package org.alfresco.filesys.repo.rules
Class RuleEvaluatorImpl
java.lang.Object
org.alfresco.filesys.repo.rules.RuleEvaluatorImpl
- All Implemented Interfaces:
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 which act as factories for scenario instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Map<String, Object> sessionState) Create a new evaluator context.evaluate(EvaluatorContext context, Operation operation) Evaluate the scenarios against the current operationvoidinit()voidnotifyRename(EvaluatorContext context, Operation operation, Command command) Tell the context of a renamevoidsetScenarios(List<Scenario> scenarios)
-
Constructor Details
-
RuleEvaluatorImpl
public RuleEvaluatorImpl()
-
-
Method Details
-
init
public void init() -
evaluate
Evaluate the scenarios against the current operation- Specified by:
evaluatein interfaceRuleEvaluator- Parameters:
operation- the operation to be evaluatedcontext- - the context to evaluate the operation- Returns:
- the command to execute that operation
-
setScenarios
-
getScenarios
-
createContext
Description copied from interface:RuleEvaluatorCreate a new evaluator context. Typically for a particular folder. An evaluator context groups operations together.- Specified by:
createContextin interfaceRuleEvaluator- Returns:
- the new context.
-
notifyRename
Description copied from interface:RuleEvaluatorTell the context of a rename- Specified by:
notifyRenamein interfaceRuleEvaluator
-