Package org.ametys.core.right
Class Profile
java.lang.Object
org.ametys.core.right.Profile
This bean represents a profile
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the context of this profilegetId()
Returns the unique Id of this profilegetLabel()
Returns the name of this profileint
hashCode()
void
setContext
(String context) Set the context of profilevoid
Set the id of profilevoid
Set the label of profiletoJSON()
Get the JSON representation of this Profile
-
Constructor Details
-
Profile
Constructor.- Parameters:
id
- the unique id of this profilelabel
- the label of this profile
-
Profile
Constructor.- Parameters:
id
- the unique id of this profilelabel
- the label of this profilecontext
- the context
-
-
Method Details
-
setId
Set the id of profile- Parameters:
id
- The id to set
-
getId
Returns the unique Id of this profile- Returns:
- the unique Id of this profile
-
getLabel
Returns the name of this profile- Returns:
- the name of this profile
-
setLabel
Set the label of profile- Parameters:
label
- The label to set
-
getContext
Returns the context of this profile- Returns:
- the context of this profile. Can be null.
-
setContext
Set the context of profile- Parameters:
context
- The context to set
-
toJSON
Get the JSON representation of this Profile- Returns:
- The profile's properties
-
equals
-
hashCode
-