Package org.alfresco.filesys.repo.rules
Interface RuleEvaluator
-
- All Known Implementing Classes:
RuleEvaluatorImpl
public interface RuleEvaluatorThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EvaluatorContextcreateContext(java.util.Map<java.lang.String,java.lang.Object> sessionContext)Create a new evaluator context.Commandevaluate(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 Detail
-
createContext
EvaluatorContext createContext(java.util.Map<java.lang.String,java.lang.Object> sessionContext)
Create a new evaluator context. Typically for a particular folder. An evaluator context groups operations together.- Returns:
- the new context.
-
evaluate
Command evaluate(EvaluatorContext context, Operation operation)
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
void notifyRename(EvaluatorContext context, Operation operation, Command c)
Tell the context of a rename
-
-