Package org.ametys.core.right
Class Right
java.lang.Object
org.ametys.core.right.Right
A right in a runtime application.
A right can also be considered as a boolean permission : a given user has or does not have the right to do something.
A right can also be considered as a boolean permission : a given user has or does not have the right to do something.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the i18n category of this RightReturns the declaration of this RightReturns the i18n description of this RightgetId()
Returns the unique Id of this RightgetLabel()
Returns the i18n label of this Rightint
hashCode()
toJSON()
Represents this Right as JSONvoid
toSAX
(ContentHandler ch) Represents this Right as SAX events
-
Method Details
-
getId
Returns the unique Id of this Right- Returns:
- the unique Id of this Right
-
getLabel
Returns the i18n label of this Right- Returns:
- the i18n label of this Right
-
getDescription
Returns the i18n description of this Right- Returns:
- the i18n description of this Right
-
getCategory
Returns the i18n category of this Right- Returns:
- the i18n category of this Right
-
getDeclaration
Returns the declaration of this Right- Returns:
- the declaration
-
toSAX
Represents this Right as SAX events- Parameters:
ch
- the ContentHandler to process SAX events- Throws:
SAXException
- if an error occurs
-
toJSON
Represents this Right as JSON- Returns:
- the right in JSON format
-
hashCode
-
equals
-