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 booleanequals(Object another)StringgetContext()Returns the context of this profileStringgetId()Returns the unique Id of this profileStringgetLabel()Returns the name of this profileinthashCode()voidsetContext(String context)Set the context of profilevoidsetId(String id)Set the id of profilevoidsetLabel(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
-
-