All Implemented Interfaces:
MetadataElement

public class PersonRoleHistory extends PersonRoleAppointee
PersonRoleHistory is the bean used to return a role definition and its appointees over time.
  • Constructor Details

    • PersonRoleHistory

      public PersonRoleHistory()
      Default constructor
    • PersonRoleHistory

      public PersonRoleHistory(PersonRoleHistory template)
      Copy/clone constructor
      Parameters:
      template - object to copy
    • PersonRoleHistory

      public PersonRoleHistory(PersonRoleElement template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getPredecessors

      public List<Appointee> getPredecessors()
      Return the list of predecessors to this appointment.
      Returns:
      list of individuals who used to have this role
    • setPredecessors

      public void setPredecessors(List<Appointee> predecessors)
      Set up the list of predecessors to this appointment.
      Parameters:
      predecessors - list of individuals who used to have this role
    • getSuccessors

      public List<Appointee> 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<Appointee> 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:
      toString in class PersonRoleAppointee
      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:
      equals in class PersonRoleAppointee
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class PersonRoleAppointee
      Returns:
      int hash code