Class PersonRoleHistory
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleAppointee
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleHistory
- All Implemented Interfaces:
MetadataElement
PersonRoleHistory is the bean used to return a role definition and its appointees over time.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPersonRoleHistory(PersonRoleElement template) Copy/clone constructorPersonRoleHistory(PersonRoleHistory template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the list of predecessors to this appointment.Return the list of successors lined up to take over this appointment.inthashCode()Return hash code for this objectvoidsetPredecessors(List<Appointee> predecessors) Set up the list of predecessors to this appointment.voidsetSuccessors(List<Appointee> successors) Set up the list of successors lined up to take over this appointment.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleAppointee
getAppointmentProperties, getProfile, setAppointmentProperties, setProfileMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonRoleElement
getElementHeader, getProperties, getRelatedElement, setElementHeader, setProperties, setRelatedElement
-
Constructor Details
-
PersonRoleHistory
public PersonRoleHistory()Default constructor -
PersonRoleHistory
Copy/clone constructor- Parameters:
template- object to copy
-
PersonRoleHistory
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getPredecessors
Return the list of predecessors to this appointment.- Returns:
- list of individuals who used to have this role
-
setPredecessors
Set up the list of predecessors to this appointment.- Parameters:
predecessors- list of individuals who used to have this role
-
getSuccessors
Return the list of successors lined up to take over this appointment.- Returns:
- list of individuals who will have this role in the future
-
setSuccessors
Set up the list of successors lined up to take over this appointment.- Parameters:
successors- list of individuals who will have this role in the future
-
toString
JSON-style toString- Overrides:
toStringin classPersonRoleAppointee- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classPersonRoleAppointee- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classPersonRoleAppointee- Returns:
- int hash code
-