Class Right
java.lang.Object
fr.paris.lutece.portal.business.right.Right
- All Implemented Interfaces:
Localizable,Serializable,Comparable<Right>
This class represents business objects right
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare the right with the specified rightbooleanReturns the description of this right if the i18nk exists; else return the key.Returns the description of this right.Returns the url of the documentation associated to the right.Returns the feature group of this right.Returns the url of the icon associated to the right.getId()Returns the identifier of this rightintgetLevel()Returns the level of this right.getName()Returns the name of this right if the i18n key exists; else return the i18n key.Returns the name of this right.intgetOrder()Get the right orderReturns the isUpdatable tag of this right ( 1 if the right is updatable, 0 if not ).getUrl()Returns the url of the jsp component which manages this right.inthashCode()booleanGet the external feature booleanvoidsetDescriptionKey(String strDescriptionKey) Sets the description of the right to the specified string.voidsetDocumentationUrl(String strDocumentationUrl) Sets the url of the documentation associated to the right.voidsetExternalFeature(boolean bExternalFeature) Set the external feature booleanvoidsetFeatureGroup(String strFeatureGroup) Sets the feature group of the right to the specified string.voidsetIconUrl(String strIconUrl) Sets the url of the icon associated to the right.voidSets the identifier of the right to the specified string.voidsetLevel(int nLevel) Sets the level of the right to the specified int.voidSet the local used by this rightvoidsetNameKey(String strNameKey) Sets the name of the right to the specified string.voidsetOrder(int nOrder) Set the right order in feature groupvoidsetPluginName(String strPluginName) Sets the name of the right to the specified string.voidSets the url of the right to the specified string.
-
Constructor Details
-
Right
public Right()
-
-
Method Details
-
setLocale
Set the local used by this right- Specified by:
setLocalein interfaceLocalizable- Parameters:
locale- the local to use
-
getId
Returns the identifier of this right- Returns:
- the identifier of this right
-
setId
Sets the identifier of the right to the specified string.- Parameters:
strId- the new identifier
-
getNameKey
Returns the name of this right.- Returns:
- the right name
-
getName
Returns the name of this right if the i18n key exists; else return the i18n key.- Returns:
- the right name
-
setNameKey
Sets the name of the right to the specified string.- Parameters:
strNameKey- the new name
-
getLevel
public int getLevel()Returns the level of this right.- Returns:
- the right level
-
setLevel
public void setLevel(int nLevel) Sets the level of the right to the specified int.- Parameters:
nLevel- the new level
-
getUrl
Returns the url of the jsp component which manages this right.- Returns:
- the right url function
-
setUrl
Sets the url of the right to the specified string.- Parameters:
strUrl- the new url
-
getDescriptionKey
Returns the description of this right.- Returns:
- the right description
-
getDescription
Returns the description of this right if the i18nk exists; else return the key.- Returns:
- the right description
-
setDescriptionKey
Sets the description of the right to the specified string.- Parameters:
strDescriptionKey- the new description
-
getPluginName
Returns the isUpdatable tag of this right ( 1 if the right is updatable, 0 if not ).- Returns:
- the is_upda
-
setPluginName
Sets the name of the right to the specified string.- Parameters:
strPluginName- the new name
-
getFeatureGroup
Returns the feature group of this right.- Returns:
- the right feature group
- Since:
- 1.1.1
-
setFeatureGroup
Sets the feature group of the right to the specified string.- Parameters:
strFeatureGroup- the new feature group- Since:
- 1.1.1
-
getIconUrl
Returns the url of the icon associated to the right.- Returns:
- the icon url
-
setIconUrl
Sets the url of the icon associated to the right.- Parameters:
strIconUrl- the new url
-
getDocumentationUrl
Returns the url of the documentation associated to the right.- Returns:
- the _strDocumentationUrl
-
setDocumentationUrl
Sets the url of the documentation associated to the right.- Parameters:
strDocumentationUrl- the _strDocumentationUrl to set
-
getOrder
public int getOrder()Get the right order- Returns:
- the _order
-
setOrder
public void setOrder(int nOrder) Set the right order in feature group- Parameters:
nOrder- the _order to set
-
isExternalFeature
public boolean isExternalFeature()Get the external feature boolean- Returns:
- the _isExternalFeature
-
setExternalFeature
public void setExternalFeature(boolean bExternalFeature) Set the external feature boolean- Parameters:
bExternalFeature- the _isExternalFeature to set
-
compareTo
Compare the right with the specified right- Specified by:
compareToin interfaceComparable<Right>- Parameters:
o- The right to be compared with the instanced right- Returns:
- The result of comparison
-
equals
-
hashCode
public int hashCode()
-