public class Right extends Object implements Localizable, Comparable<Right>, Serializable
Constructor and Description |
---|
Right() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Right o)
Compare the right with the specified right
|
boolean |
equals(Object o) |
String |
getDescription()
Returns the description of this right if the i18nk exists; else return the key.
|
String |
getDescriptionKey()
Returns the description of this right.
|
String |
getDocumentationUrl()
Returns the url of the documentation associated to the right.
|
String |
getFeatureGroup()
Returns the feature group of this right.
|
String |
getIconUrl()
Returns the url of the icon associated to the right.
|
String |
getId()
Returns the identifier of this right
|
int |
getLevel()
Returns the level of this right.
|
String |
getName()
Returns the name of this right if the i18n key exists; else return the i18n key.
|
String |
getNameKey()
Returns the name of this right.
|
int |
getOrder()
Get the right order
|
String |
getPluginName()
Returns the isUpdatable tag of this right ( 1 if the right is updatable, 0 if not ).
|
String |
getUrl()
Returns the url of the jsp component which manages this right.
|
int |
hashCode() |
boolean |
isExternalFeature()
Get the external feature boolean
|
void |
setDescriptionKey(String strDescriptionKey)
Sets the description of the right to the specified string.
|
void |
setDocumentationUrl(String strDocumentationUrl)
Sets the url of the documentation associated to the right.
|
void |
setExternalFeature(boolean bExternalFeature)
Set the external feature boolean
|
void |
setFeatureGroup(String strFeatureGroup)
Sets the feature group of the right to the specified string.
|
void |
setIconUrl(String strIconUrl)
Sets the url of the icon associated to the right.
|
void |
setId(String strId)
Sets the identifier of the right to the specified string.
|
void |
setLevel(int nLevel)
Sets the level of the right to the specified int.
|
void |
setLocale(Locale locale)
Set the local used by this right
|
void |
setNameKey(String strNameKey)
Sets the name of the right to the specified string.
|
void |
setOrder(int nOrder)
Set the right order in feature group
|
void |
setPluginName(String strPluginName)
Sets the name of the right to the specified string.
|
void |
setUrl(String strUrl)
Sets the url of the right to the specified string.
|
public void setLocale(Locale locale)
setLocale
in interface Localizable
locale
- the local to usepublic String getId()
public void setId(String strId)
strId
- the new identifierpublic String getNameKey()
public String getName()
public void setNameKey(String strNameKey)
strNameKey
- the new namepublic int getLevel()
public void setLevel(int nLevel)
nLevel
- the new levelpublic String getUrl()
public void setUrl(String strUrl)
strUrl
- the new urlpublic String getDescriptionKey()
public String getDescription()
public void setDescriptionKey(String strDescriptionKey)
strDescriptionKey
- the new descriptionpublic String getPluginName()
public void setPluginName(String strPluginName)
strPluginName
- the new namepublic String getFeatureGroup()
public void setFeatureGroup(String strFeatureGroup)
strFeatureGroup
- the new feature grouppublic String getIconUrl()
public void setIconUrl(String strIconUrl)
strIconUrl
- the new urlpublic String getDocumentationUrl()
public void setDocumentationUrl(String strDocumentationUrl)
strDocumentationUrl
- the _strDocumentationUrl to setpublic int getOrder()
public void setOrder(int nOrder)
nOrder
- the _order to setpublic boolean isExternalFeature()
public void setExternalFeature(boolean bExternalFeature)
bExternalFeature
- the _isExternalFeature to setpublic int compareTo(Right o)
compareTo
in interface Comparable<Right>
o
- The right to be compared with the instanced rightCopyright © 2020 City of Paris. All rights reserved.