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 booleanequals(Object object)I18nizableTextgetCategory()Returns the i18n category of this RightStringgetDeclaration()Returns the declaration of this RightI18nizableTextgetDescription()Returns the i18n description of this RightStringgetId()Returns the unique Id of this RightI18nizableTextgetLabel()Returns the i18n label of this RightinthashCode()Map<String,Object>toJSON()Represents this Right as JSONvoidtoSAX(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
-
-