org.alfresco.web.evaluator
Interface Evaluator

All Known Implementing Classes:
ActiveWorkflowsEvaluator, AlwaysFalseEvaluator, BaseEvaluator, ChainedMatchAllEvaluator, ChainedMatchOneEvaluator, ContainerTypeEvaluator, EditingEvaluator, GoogleDocsCheckInEvaluator, GoogleDocsEditingEvaluator, GoogleDocsLockedEvaluator, GoogleDocsOwnerEvaluator, HasAspectEvaluator, IsBrowserEvaluator, IsMimetypeEvaluator, IsPortletModeEvaluator, LocateActionEvaluator, LockedEvaluator, LockOwnerEvaluator, MetadataValueEvaluator, NodeTypeEvaluator, PropertyNotNullEvaluator, RulesEvaluator, SimpleWorkflowEvaluator, SiteBasedEvaluator, SitePresetEvaluator, TransferredNodeEvaluator, ValueEvaluator, ViewInExplorerEvaluator

public interface Evaluator

Contract supported by all classes that provide dynamic evaluation for a UI element.

Evaluators are supplied with a Node instance context object.

The evaluator should decide if the precondition is valid based on the appropriate logic and the properties etc. and return the result.


Method Summary
 boolean evaluate(org.json.simple.JSONObject jsonObject)
          The evaluator should decide if the precondition is valid based on the appropriate logic and the state etc.
 

Method Detail

evaluate

boolean evaluate(org.json.simple.JSONObject jsonObject)
The evaluator should decide if the precondition is valid based on the appropriate logic and the state etc. of the given object and return the result.

Parameters:
jsonObject - The record the evaluation is for
Returns:
result of whether the evaluation succeeded or failed.


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