public class RuleEvaluatorImpl extends Object implements RuleEvaluator
It is configured with a list of scenarios which act as factories for scenario instances.
| Constructor and Description |
|---|
RuleEvaluatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
EvaluatorContext |
createContext(Map<String,Object> sessionState)
Create a new evaluator context.
|
Command |
evaluate(EvaluatorContext context,
Operation operation)
Evaluate the scenarios against the current operation
|
List<Scenario> |
getScenarios() |
void |
init() |
void |
notifyRename(EvaluatorContext context,
Operation operation,
Command command)
Tell the context of a rename
|
void |
setScenarios(List<Scenario> scenarios) |
public void init()
public Command evaluate(EvaluatorContext context, Operation operation)
evaluate in interface RuleEvaluatoroperation - the operation to be evaluatedcontext - - the context to evaluate the operationpublic EvaluatorContext createContext(Map<String,Object> sessionState)
RuleEvaluatorcreateContext in interface RuleEvaluatorpublic void notifyRename(EvaluatorContext context, Operation operation, Command command)
RuleEvaluatornotifyRename in interface RuleEvaluatorCopyright © 2005–2018 Alfresco Software. All rights reserved.