org.alfresco.filesys.repo.rules
Class RuleEvaluatorImpl

java.lang.Object
  extended by org.alfresco.filesys.repo.rules.RuleEvaluatorImpl
All Implemented Interfaces:
RuleEvaluator

public class RuleEvaluatorImpl
extends java.lang.Object
implements 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.


Constructor Summary
RuleEvaluatorImpl()
           
 
Method Summary
 EvaluatorContext createContext()
          Create a new evaluator context.
 Command evaluate(EvaluatorContext context, Operation operation)
          Evaluate the scenarios against the current operation
 java.util.List getScenarios()
           
 void init()
           
 void setScenarios(java.util.List scenarios)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleEvaluatorImpl

public RuleEvaluatorImpl()
Method Detail

init

public void init()

evaluate

public Command evaluate(EvaluatorContext context,
                        Operation operation)
Evaluate the scenarios against the current operation

Specified by:
evaluate in interface RuleEvaluator
Parameters:
operation - the operation to be evaluated

setScenarios

public void setScenarios(java.util.List scenarios)

getScenarios

public java.util.List getScenarios()

createContext

public EvaluatorContext createContext()
Description copied from interface: RuleEvaluator
Create a new evaluator context. Typically for a particular folder. An evaluator context groups operations together.

Specified by:
createContext in interface RuleEvaluator
Returns:
the new context.


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