com.jalios.jcms
Class WFRole

java.lang.Object
  extended by com.jalios.jcms.WFRole
All Implemented Interfaces:
Comparable

public class WFRole
extends Object
implements Comparable

This class represent a Role. A role is a list of members and a list of weighted group.

Since:
jcms-4.0.2
Version:
$Revision: 33207 $
Author:
Olivier Dedieu

Field Summary
protected  Map<String,String> descriptionMap
           
protected  String id
           
protected  Map<String,String> nameMap
           
static String REVISION
           
 
Constructor Summary
WFRole()
           
WFRole(WFRole other)
           
WFRole(WFRole other, boolean clone)
           
 
Method Summary
 int compareTo(Object o)
          Must be implemented with the interface Comparable Used in different comparator for sorting
 boolean equals(Object obj)
           
 String getDescription(String lang)
          Returns the localized name of this description according the lang attribute.
 Map<String,String> getDescriptionMap()
          Returns the map of localized description.
 String getId()
           
 String getName(String lang)
          Returns the localized name of this role according the lang attribute.
 Map<String,String> getNameMap()
          Returns the map of localized name.
 void setDescriptionMap(Map<String,String> descriptionMap)
          Sets the map of localized description.
 void setId(String id)
           
 void setNameMap(Map<String,String> nameMap)
          Sets the map of localized name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

id

protected String id

nameMap

protected Map<String,String> nameMap

descriptionMap

protected Map<String,String> descriptionMap
Constructor Detail

WFRole

public WFRole()

WFRole

public WFRole(WFRole other)

WFRole

public WFRole(WFRole other,
              boolean clone)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Must be implemented with the interface Comparable Used in different comparator for sorting

Specified by:
compareTo in interface Comparable

getName

public String getName(String lang)
Returns the localized name of this role according the lang attribute.

Parameters:
lang - the language.
Returns:
the localized name of this role.
Since:
jcms-5.7.0

getDescription

public String getDescription(String lang)
Returns the localized name of this description according the lang attribute.

Parameters:
lang - the language.
Returns:
the localized name of this description.
Since:
jcms-5.7.0

getId

public String getId()

setId

public void setId(String id)

getNameMap

public Map<String,String> getNameMap()
Returns the map of localized name.

Returns:
the map of localized name.
Since:
jcms-5.7.0

setNameMap

public void setNameMap(Map<String,String> nameMap)
Sets the map of localized name.

Parameters:
nameMap - the map of localized name.
Since:
jcms-5.7.0

getDescriptionMap

public Map<String,String> getDescriptionMap()
Returns the map of localized description.

Returns:
the map of localized description.
Since:
jcms-5.7.0

setDescriptionMap

public void setDescriptionMap(Map<String,String> descriptionMap)
Sets the map of localized description.

Parameters:
descriptionMap - the map of localized description.
Since:
jcms-5.7.0

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2001-2010 Jalios SA. All Rights Reserved.