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 RuleEvaluator
operation
- the operation to be evaluatedcontext
- - the context to evaluate the operationpublic EvaluatorContext createContext(Map<String,Object> sessionState)
RuleEvaluator
createContext
in interface RuleEvaluator
public void notifyRename(EvaluatorContext context, Operation operation, Command command)
RuleEvaluator
notifyRename
in interface RuleEvaluator
Copyright © 2005–2017 Alfresco Software. All rights reserved.