public class WFRole
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_SEPARATOR |
static java.lang.String |
REVISION |
Constructor and Description |
---|
WFRole() |
WFRole(WFRole other) |
WFRole(WFRole other,
boolean clone) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildRoleUID(java.lang.String wfId,
java.lang.String roleId)
Build the unique role ID.
|
int |
compareTo(java.lang.Object o)
Must be implemented with the interface Comparable
Used in different comparator for sorting
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription(java.lang.String lang)
Returns the localized name of this description according the
lang attribute. |
java.util.Map<java.lang.String,java.lang.String> |
getDescriptionMap()
Returns the map of localized description.
|
java.lang.String |
getId()
Returns the unique id of this role.
|
java.lang.String |
getName(java.lang.String lang)
Returns the localized name of this role according the
lang attribute. |
java.util.Map<java.lang.String,java.lang.String> |
getNameMap()
Returns the map of localized name.
|
java.lang.String |
getRoleId()
Returns the roleId of this role.
|
java.lang.String |
getWfId()
Returns the workflow ID this role belongs to.
|
org.jdom.Element |
getXmlElt()
Returns the XML Element of this role.
|
void |
reloadI18N()
Reload all I18N informations for this WFRole.
|
void |
setDescriptionMap(java.util.Map<java.lang.String,java.lang.String> descriptionMap)
Sets the map of localized description.
|
void |
setNameMap(java.util.Map<java.lang.String,java.lang.String> nameMap)
Sets the map of localized name.
|
void |
setRoleId(java.lang.String roleId)
Sets the roleId of this role.
|
void |
setWfId(java.lang.String wfId)
Sets the workflow ID this role belongs to.
|
void |
setXmlElt(org.jdom.Element xmlElt)
Sets the XML Element of this role.
|
java.lang.String |
toString() |
public static final java.lang.String REVISION
public static final java.lang.String ID_SEPARATOR
public WFRole()
public WFRole(WFRole other)
public WFRole(WFRole other, boolean clone)
public void reloadI18N()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String getName(java.lang.String lang)
lang
attribute.lang
- the language.public java.lang.String getDescription(java.lang.String lang)
lang
attribute.lang
- the language.public java.lang.String getId()
public static java.lang.String buildRoleUID(java.lang.String wfId, java.lang.String roleId)
wfId
- the ID of the workflow of the roleroleId
- the ID of the role.public java.lang.String getRoleId()
public void setRoleId(java.lang.String roleId)
roleId
- the roleId.public java.util.Map<java.lang.String,java.lang.String> getNameMap()
public void setNameMap(java.util.Map<java.lang.String,java.lang.String> nameMap)
nameMap
- the map of localized name.public java.util.Map<java.lang.String,java.lang.String> getDescriptionMap()
public void setDescriptionMap(java.util.Map<java.lang.String,java.lang.String> descriptionMap)
descriptionMap
- the map of localized description.public java.lang.String getWfId()
public void setWfId(java.lang.String wfId)
wfId
- the workflow IDpublic org.jdom.Element getXmlElt()
public void setXmlElt(org.jdom.Element xmlElt)
xmlElt
- XML Element of this role.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2001-2018 Jalios SA. All Rights Reserved.