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 Details

    • createContext

      EvaluatorContext createContext(Map<String,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 operation
      operation - - 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