public class PersonRoleProperties extends PersonalRoleProperties
PersonRoleProperties covers a role that has been defined in an organization. One of more people can be assigned to a role. The optional headCount determines the maximum number of people that should be appointed (open metadata does not enforce this level but sends a notification if the headCount level is breached.) It also returns how many people are currently appointed to the role.
  • Constructor Details

    • PersonRoleProperties

      public PersonRoleProperties()
      Default constructor
    • PersonRoleProperties

      public PersonRoleProperties(PersonRoleProperties template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getHeadCountLimitSet

      public boolean getHeadCountLimitSet()
      Return the indicator whether the head count limit is set for a person role.
      Returns:
      boolean flag
    • setHeadCountLimitSet

      public void setHeadCountLimitSet(boolean headCountLimitSet)
      Set up the indicator whether the head count limit is set for a person role.
      Parameters:
      headCountLimitSet - boolean flag
    • getHeadCount

      public int getHeadCount()
      Return the head count limit (or zero if not set).
      Returns:
      int
    • setHeadCount

      public void setHeadCount(int headCount)
      Set up the head count limit (or zero if not set).
      Parameters:
      headCount - int
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class PersonalRoleProperties
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class PersonalRoleProperties
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class PersonalRoleProperties
      Returns:
      int hash code