org.alfresco.web.action.evaluator
Class CutNodeEvaluator

java.lang.Object
  extended by org.alfresco.web.action.evaluator.BaseActionEvaluator
      extended by org.alfresco.web.action.evaluator.CutNodeEvaluator
All Implemented Interfaces:
java.io.Serializable, ActionEvaluator
Direct Known Subclasses:
DiscussionCutEvaluator

public class CutNodeEvaluator
extends BaseActionEvaluator

Evaluates whether the Cut Node action should be visible. Among all available operations over non-multilingual documents (i.e. copy, delete, start discussion, etc), there is a missing one: Move. Translations cannot be moved due to the exiting link it has with the logical document. Despite it is technically achievable, it could be functionally troublesome. Spreading translations of the same semantic message among several spaces could lead to confusion and problems. If the node to move is a mlContainer, the user must have enough right to delete each translation

See Also:
Serialized Form

Constructor Summary
CutNodeEvaluator()
           
 
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.
 
Methods inherited from class org.alfresco.web.action.evaluator.BaseActionEvaluator
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CutNodeEvaluator

public CutNodeEvaluator()
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
Overrides:
evaluate in class BaseActionEvaluator
Parameters:
node - Node context for the action
Returns:
result of whether the action can proceed.


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