Class ToDoProperties

  • All Implemented Interfaces:
    java.io.Serializable

    public class ToDoProperties
    extends ReferenceableProperties
    The "To Do" describes an action - it may be assigned to a person role (see PersonRoleAction).
    See Also:
    Serialized Form
    • Constructor Detail

      • ToDoProperties

        public ToDoProperties()
        Default constructor
      • ToDoProperties

        public ToDoProperties​(ToDoProperties template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getName

        public java.lang.String getName()
        Return the name of the asset.
        Returns:
        string name
      • setName

        public void setName​(java.lang.String name)
        Set up the name of the asset.
        Parameters:
        name - string name
      • getDescription

        public java.lang.String getDescription()
        Return the description of the asset.
        Returns:
        text
      • setDescription

        public void setDescription​(java.lang.String description)
        Set up the description of the asset.
        Parameters:
        description - text
      • getCreationTime

        public java.util.Date getCreationTime()
        Return the time that this action was created.
        Returns:
        date
      • setCreationTime

        public void setCreationTime​(java.util.Date creationTime)
        Set up the time that the action was created.
        Parameters:
        creationTime - data
      • getPriority

        public int getPriority()
        Return how important this is.
        Returns:
        int
      • setPriority

        public void setPriority​(int priority)
        Set up how important this is.
        Parameters:
        priority - integer
      • getDueTime

        public java.util.Date getDueTime()
        Return when this needs to be completed by.
        Returns:
        date
      • setDueTime

        public void setDueTime​(java.util.Date dueTime)
        Set up when this needs to be completed by.
        Parameters:
        dueTime - date
      • getCompletionTime

        public java.util.Date getCompletionTime()
        Return when this was completed - or null if still outstanding.
        Returns:
        date
      • setCompletionTime

        public void setCompletionTime​(java.util.Date completionTime)
        Set up when this was completed - or null if still outstanding.
        Parameters:
        completionTime - date
      • getStatus

        public ToDoStatus getStatus()
        Return the status of the action/to do.
        Returns:
        status enum
      • setStatus

        public void setStatus​(ToDoStatus status)
        Set up the status of the action/to do.
        Parameters:
        status - status enum
      • toString

        public java.lang.String toString()
        JSON-style toString
        Overrides:
        toString in class ReferenceableProperties
        Returns:
        return string containing the property names and values
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Return comparison result based on the content of the properties.
        Overrides:
        equals in class ReferenceableProperties
        Parameters:
        objectToCompare - test object
        Returns:
        result of comparison