org.alfresco.web.action.evaluator
Class AddTranslationEvaluator

java.lang.Object
  extended by org.alfresco.web.action.evaluator.BaseActionEvaluator
      extended by org.alfresco.web.action.evaluator.AddTranslationEvaluator
All Implemented Interfaces:
java.io.Serializable, ActionEvaluator

public class AddTranslationEvaluator
extends BaseActionEvaluator

Evaluates whether the Add Translation (with or without content) action should be visible. If the node is not already Multilingual, locked, or if a translation exists for each available filter language, don't allow the action. The current user can add a translation to a translation set only if he has enough right to add a content to the space where the pivot translation is located in.

See Also:
Serialized Form

Constructor Summary
AddTranslationEvaluator()
           
 
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

AddTranslationEvaluator

public AddTranslationEvaluator()
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.
See Also:
ActionEvaluator.evaluate(org.alfresco.web.bean.repository.Node)


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