org.alfresco.web.bean.ml
Class MultilingualUtils

java.lang.Object
  extended by org.alfresco.web.bean.ml.MultilingualUtils
All Implemented Interfaces:
java.io.Serializable

public class MultilingualUtils
extends java.lang.Object
implements java.io.Serializable

Util class for the management of multilingual documents on the web client side

See Also:
Serialized Form

Constructor Summary
MultilingualUtils()
           
 
Method Summary
static boolean canAddChildrenToPivotSpace(Node multlingualDocument, javax.faces.context.FacesContext fc)
          Returns true if the current user has enough right to add a content to the space where the pivot translation is located in.
static boolean canDeleteEachTranslation(Node multlingualDocument, javax.faces.context.FacesContext fc)
          Returns true if the current user can delete each translation of the mlContainer of the given node
static boolean canMoveEachTranslation(Node multlingualDocument, javax.faces.context.FacesContext fc)
          Returns true if the current user can move each translation of the mlContainer of the given node
static boolean canStartNewEditon(Node multlingualDocument, javax.faces.context.FacesContext fc)
          Returns true if the current user can delete each translation and create * a new content in the space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultilingualUtils

public MultilingualUtils()
Method Detail

canAddChildrenToPivotSpace

public static boolean canAddChildrenToPivotSpace(Node multlingualDocument,
                                                 javax.faces.context.FacesContext fc)
Returns true if the current user has enough right to add a content to the space where the pivot translation is located in.

Parameters:
multlingualDocument -
fc -
Returns:

canDeleteEachTranslation

public static boolean canDeleteEachTranslation(Node multlingualDocument,
                                               javax.faces.context.FacesContext fc)
Returns true if the current user can delete each translation of the mlContainer of the given node

Parameters:
multlingualDocument -
fc -
Returns:

canMoveEachTranslation

public static boolean canMoveEachTranslation(Node multlingualDocument,
                                             javax.faces.context.FacesContext fc)
Returns true if the current user can move each translation of the mlContainer of the given node

Parameters:
multlingualDocument -
fc -
Returns:

canStartNewEditon

public static boolean canStartNewEditon(Node multlingualDocument,
                                        javax.faces.context.FacesContext fc)
Returns true if the current user can delete each translation and create * a new content in the space

Parameters:
multlingualDocument -
fc -
Returns:


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