Package org.ametys.core.right
Class Right
- java.lang.Object
-
- org.ametys.core.right.Right
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
I18nizableText
getCategory()
Returns the i18n category of this RightString
getDeclaration()
Returns the declaration of this RightI18nizableText
getDescription()
Returns the i18n description of this RightString
getId()
Returns the unique Id of this RightI18nizableText
getLabel()
Returns the i18n label of this Rightint
hashCode()
Map<String,Object>
toJSON()
Represents this Right as JSONvoid
toSAX(ContentHandler ch)
Represents this Right as SAX events
-
-
-
Method Detail
-
getId
public String getId()
Returns the unique Id of this Right- Returns:
- the unique Id of this Right
-
getLabel
public I18nizableText getLabel()
Returns the i18n label of this Right- Returns:
- the i18n label of this Right
-
getDescription
public I18nizableText getDescription()
Returns the i18n description of this Right- Returns:
- the i18n description of this Right
-
getCategory
public I18nizableText getCategory()
Returns the i18n category of this Right- Returns:
- the i18n category of this Right
-
getDeclaration
public String getDeclaration()
Returns the declaration of this Right- Returns:
- the declaration
-
toSAX
public void toSAX(ContentHandler ch) throws SAXException
Represents this Right as SAX events- Parameters:
ch
- the ContentHandler to process SAX events- Throws:
SAXException
- if an error occurs
-
toJSON
public Map<String,Object> toJSON()
Represents this Right as JSON- Returns:
- the right in JSON format
-
-