java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement
All Implemented Interfaces:
MetadataElement

public class ToDoElement extends Object implements MetadataElement
ToDoElement contains the properties and header for a "to do" (informal task) retrieved from the metadata repository.
  • Constructor Details

    • ToDoElement

      public ToDoElement()
      Default constructor
    • ToDoElement

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

    • getElementHeader

      public ElementHeader getElementHeader()
      Return the element header associated with the properties.
      Specified by:
      getElementHeader in interface MetadataElement
      Returns:
      element header object
    • setElementHeader

      public void setElementHeader(ElementHeader elementHeader)
      Set up the element header associated with the properties.
      Specified by:
      setElementHeader in interface MetadataElement
      Parameters:
      elementHeader - element header object
    • getProperties

      public ToDoProperties getProperties()
      Return the properties of the to do.
      Returns:
      properties
    • setProperties

      public void setProperties(ToDoProperties properties)
      Set up the to do properties.
      Parameters:
      properties - properties
    • getToDoSource

      public ElementStub getToDoSource()
      Return the source of the To Do
      Returns:
      element stub
    • setToDoSource

      public void setToDoSource(ElementStub toDoSource)
      Set up details of the To Do
      Parameters:
      toDoSource - element stub
    • getAssignedActors

      public List<ElementStub> getAssignedActors()
      Return the list of actors assigned to this work item.
      Returns:
      list of actors
    • setAssignedActors

      public void setAssignedActors(List<ElementStub> assignedActors)
      Set up the list of actors assigned to this work item.
      Parameters:
      assignedActors - list of actors
    • getSponsors

      public List<ElementStub> getSponsors()
      Return the list of sponsors for this action.
      Returns:
      list of sponsors
    • setSponsors

      public void setSponsors(List<ElementStub> sponsors)
      Set up the list of sponsors for this action.
      Parameters:
      sponsors - list of sponsors
    • getActionTargets

      public List<ActionTargetElement> getActionTargets()
      Return the list of action targets to work on.
      Returns:
      list
    • setActionTargets

      public void setActionTargets(List<ActionTargetElement> actionTargets)
      Set up the list of action targets to work on.
      Parameters:
      actionTargets - list
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      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 Object
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

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