org.alfresco.web.action.evaluator
Class BaseActionEvaluator

java.lang.Object
  extended by org.alfresco.web.action.evaluator.BaseActionEvaluator
All Implemented Interfaces:
java.io.Serializable, ActionEvaluator
Direct Known Subclasses:
AddTranslationEvaluator, ApproveDocEvaluator, ApproveNonDraftDocEvaluator, CancelCheckoutDocEvaluator, CancelEditingDocEvaluator, CancelWorkflowEvaluator, CheckinDocEvaluator, CheckoutDocEvaluator, CreateFormEvaluator, CreateForumMLNodeEvaluator, CreateForumNodeEvaluator, CreateProjectEvaluator, CreateWebFormEvaluator, CreateWebProjectEvaluator, CutNodeEvaluator, DeleteDocEvaluator, DiscussionCopyEvaluator, DiscussNodeEvaluator, DoneEditingDocEvaluator, EditDocCIFSEvaluator, EditDocHttpEvaluator, EditDocWebDavEvaluator, EditFormEvaluator, EditWebFormEvaluator, ForumsCheckinDocEvaluator, GroupActionEvaluator, MakeMultilingualEvaluator, ManagePermissionIsMainStoreEvaluator, MultilingualDetailsEvaluator, NewEditionEvaluator, RegenerateRenditionsEvaluator, RejectDocEvaluator, RejectNonDraftDocEvaluator, ShortcutNodeEvaluator, StartWorkflowEvaluator, TakeOwnershipDocEvaluator, UnlockDocEvaluator, UnlockedDocEvaluator, UpdateDocEvaluator, UploadNewVersionEvaluator, ViewPermissionEvaluator, WCMContentManagerEvaluator, WCMDeleteLayeredFolderEvaluator, WCMLockEvaluator, WCMStagingOnlyEvaluator, WCMStagingReadonlyEvaluator, WCMUnlockEvaluator

public class BaseActionEvaluator
extends java.lang.Object
implements ActionEvaluator

Base class for all action evaluators.

See Also:
Serialized Form

Constructor Summary
BaseActionEvaluator()
           
 
Method Summary
 boolean evaluate(Node node)
          The evaluator should decide if the action precondition is valid based on the appropriate logic and the properties etc.
 boolean evaluate(java.lang.Object obj)
          The evaluator should decide if the action precondition is valid based on the appropriate logic and the state etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseActionEvaluator

public BaseActionEvaluator()
Method Detail

evaluate

public boolean evaluate(Node node)
Description copied from interface: ActionEvaluator
The evaluator should decide if the action precondition is valid based on the appropriate logic and the properties etc. of the Node context and return the result.

Specified by:
evaluate in interface ActionEvaluator
Parameters:
node - Node context for the action
Returns:
result of whether the action can proceed.

evaluate

public boolean evaluate(java.lang.Object obj)
Description copied from interface: ActionEvaluator
The evaluator should decide if the action precondition is valid based on the appropriate logic and the state etc. of the given object and return the result.

Specified by:
evaluate in interface ActionEvaluator
Parameters:
obj - The object the action is for
Returns:
result of whether the action can proceed.


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