Class GovernanceRoleHistory
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceRoleElement
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceRoleAppointee
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceRoleHistory
-
- All Implemented Interfaces:
Serializable,MetadataElement
public class GovernanceRoleHistory extends GovernanceRoleAppointee
GovernanceRoleHistory is the bean used to return a governance officer role definition and its appointees over time.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GovernanceRoleHistory()Default constructorGovernanceRoleHistory(GovernanceRoleElement template)Copy/clone constructorGovernanceRoleHistory(GovernanceRoleHistory 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.List<GovernanceAppointee>getPredecessors()Return the list of predecessors to this appointment.List<GovernanceAppointee>getSuccessors()Return the list of successors lined up to take over this appointment.inthashCode()Return hash code for this objectvoidsetPredecessors(List<GovernanceAppointee> predecessors)Set up the list of predecessors to this appointment.voidsetSuccessors(List<GovernanceAppointee> successors)Set up the list of successors lined up to take over this appointment.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceRoleAppointee
getCurrentAppointees, setCurrentAppointees
-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceRoleElement
getElementHeader, getRole, setElementHeader, setRole
-
-
-
-
Constructor Detail
-
GovernanceRoleHistory
public GovernanceRoleHistory()
Default constructor
-
GovernanceRoleHistory
public GovernanceRoleHistory(GovernanceRoleHistory template)
Copy/clone constructor- Parameters:
template- object to copy
-
GovernanceRoleHistory
public GovernanceRoleHistory(GovernanceRoleElement template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getPredecessors
public List<GovernanceAppointee> getPredecessors()
Return the list of predecessors to this appointment.- Returns:
- list of individuals who used to have this role
-
setPredecessors
public void setPredecessors(List<GovernanceAppointee> predecessors)
Set up the list of predecessors to this appointment.- Parameters:
predecessors- list of individuals who used to have this role
-
getSuccessors
public List<GovernanceAppointee> 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
public void setSuccessors(List<GovernanceAppointee> successors)
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
public String toString()
JSON-style toString- Overrides:
toStringin classGovernanceRoleAppointee- 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 classGovernanceRoleAppointee- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classGovernanceRoleAppointee- Returns:
- int hash code
-
-