Class PersonRoleProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.PersonalRoleProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.PersonRoleProperties
-
- All Implemented Interfaces:
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 Summary
Constructors Constructor Description PersonRoleProperties()Default constructorPersonRoleProperties(PersonRoleProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.intgetHeadCount()Return the head count limit (or zero if not set).booleangetHeadCountLimitSet()Return the indicator whether the head count limit is set for a person role.inthashCode()Return hash code for this objectvoidsetHeadCount(int headCount)Set up the head count limit (or zero if not set).voidsetHeadCountLimitSet(boolean headCountLimitSet)Set up the indicator whether the head count limit is set for a person role.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.PersonalRoleProperties
getAdditionalProperties, getDescription, getDomainIdentifier, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getRoleId, getScope, getTitle, getTypeName, setAdditionalProperties, setDescription, setDomainIdentifier, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setRoleId, setScope, setTitle, setTypeName
-
-
-
-
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 String toString()
JSON-style toString- Overrides:
toStringin classPersonalRoleProperties- 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:
equalsin classPersonalRoleProperties- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classPersonalRoleProperties- Returns:
- int hash code
-
-