Class Profile

java.lang.Object
org.ametys.core.right.Profile

public class Profile extends Object
This bean represents a profile
  • Constructor Details

    • Profile

      public Profile(String id, String label)
      Constructor.
      Parameters:
      id - the unique id of this profile
      label - the label of this profile
    • Profile

      public Profile(String id, String label, String context)
      Constructor.
      Parameters:
      id - the unique id of this profile
      label - the label of this profile
      context - the context
  • Method Details

    • setId

      public void setId(String id)
      Set the id of profile
      Parameters:
      id - The id to set
    • 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
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object