Class PersonRoleProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.actors.PersonalRoleProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.actors.PersonRoleProperties
- Direct Known Subclasses:
GovernanceRoleProperties
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 Summary
ConstructorDescriptionDefault constructorPersonRoleProperties
(PersonRoleProperties template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.int
Return the head count limit (or zero if not set).boolean
Return the indicator whether the head count limit is set for a person role.int
hashCode()
Return hash code for this objectvoid
setHeadCount
(int headCount) Set up the head count limit (or zero if not set).void
setHeadCountLimitSet
(boolean headCountLimitSet) Set up the indicator whether the head count limit is set for a person role.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.actors.PersonalRoleProperties
getAdditionalProperties, getDescription, getDomainIdentifier, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getRoleId, getScope, getTitle, getTypeName, setAdditionalProperties, setDescription, setDomainIdentifier, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setRoleId, setScope, setTitle, setTypeName
-
Constructor Details
-
PersonRoleProperties
public PersonRoleProperties()Default constructor -
PersonRoleProperties
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
JSON-style toString- Overrides:
toString
in classPersonalRoleProperties
- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equals
in classPersonalRoleProperties
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classPersonalRoleProperties
- Returns:
- int hash code
-