Package org.ametys.core.right
Class Profile
- java.lang.Object
-
- org.ametys.core.right.Profile
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object another)
String
getContext()
Returns the context of this profileString
getId()
Returns the unique Id of this profileString
getLabel()
Returns the name of this profileint
hashCode()
void
setContext(String context)
Set the context of profilevoid
setId(String id)
Set the id of profilevoid
setLabel(String label)
Set the label of profileMap<String,Object>
toJSON()
Get the JSON representation of this Profile
-
-
-
Method Detail
-
getId
public String getId()
Returns the unique Id of this profile- Returns:
- the unique Id of this profile
-
getLabel
public String getLabel()
Returns the name of this profile- Returns:
- the name of this profile
-
setLabel
public void setLabel(String label)
Set the label of profile- Parameters:
label
- The label to set
-
getContext
public String getContext()
Returns the context of this profile- Returns:
- the context of this profile. Can be null.
-
setContext
public void setContext(String context)
Set the context of profile- Parameters:
context
- The context to set
-
toJSON
public Map<String,Object> toJSON()
Get the JSON representation of this Profile- Returns:
- The profile's properties
-
-