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
 EvaluatorContext createContext()
          Create a new evaluator context.
 Command evaluate(EvaluatorContext context, Operation operation)
          Evaluate the scenarios against the current operation
 

Method Detail

createContext

EvaluatorContext createContext()
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 against the current operation

Parameters:
Command - the command to fulfill the operation


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.