Class PersonRoleProperties

  • All Implemented Interfaces:
    java.io.Serializable

    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • PersonRoleProperties

        public PersonRoleProperties()
        Default constructor
      • PersonRoleProperties

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

      • 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 java.lang.String toString()
        JSON-style toString
        Overrides:
        toString in class PersonalRoleProperties
        Returns:
        return string containing the property names and values
      • equals

        public boolean equals​(java.lang.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