Package org.alfresco.filesys.repo.rules
Interface RuleEvaluator
- All Known Implementing Classes:
RuleEvaluatorImpl
public interface 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.
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Map<String, Object> sessionContext) Create a new evaluator context.evaluate(EvaluatorContext context, Operation operation) Evaluate the scenarios contained within the context against the current operationvoidnotifyRename(EvaluatorContext context, Operation operation, Command c) Tell the context of a rename
-
Method Details
-
createContext
Create a new evaluator context. Typically for a particular folder. An evaluator context groups operations together.- Returns:
- the new context.
-
evaluate
Evaluate the scenarios contained within the context against the current operation- Parameters:
context- - the context to evaluate the operationoperation- - the operation to be evaluated.- Returns:
- Command the command to fulfil the operation
-
notifyRename
Tell the context of a rename
-