Class Task


  • public class Task
    extends Object
    Created fields for Task with getters and setters.
    • Constructor Detail

      • Task

        public Task()
    • Method Detail

      • getId

        public Long getId()
        Gets the task id
        Returns:
        task id with Long
      • getUser

        public User getUser()
        Gets user that created a task.
        Returns:
        returns user as owner of task
      • getGroup

        public Group getGroup()
        gets Group
        Returns:
        Group
      • getPostDate

        public Date getPostDate()
        Gets Date user posts to database.
        Returns:
        Date of posting.
      • setPostDate

        public void setPostDate​(Date postDate)
        Sets Date user posts to database.
        Parameters:
        postDate - of task
      • getDueDate

        public Date getDueDate()
        Gets due date of tasks.
        Returns:
        Date task is due.
      • setDueDate

        public void setDueDate​(Date dueDate)
        Sets date task is due.
        Parameters:
        dueDate - of task
      • isCompleted

        public boolean isCompleted()
        Used to display if task has been bompleted.
        Returns:
        boolean for task completion.
      • setCompleted

        public void setCompleted​(boolean completed)
        Sets the task completed true or false.
        Parameters:
        completed - boolean
      • isConfirmedComplete

        public boolean isConfirmedComplete()
        User confirms if task was complete.
        Returns:
        boolean of confirmation
      • setConfirmedComplete

        public void setConfirmedComplete​(boolean confirmedComplete)
        Sets confirmation of task completion
        Parameters:
        confirmedComplete - boolean
      • getTitle

        public String getTitle()
        Gets title of task
        Returns:
        String of title of task
      • setTitle

        public void setTitle​(String title)
        Sets title of task
        Parameters:
        title - is String format
      • getDescription

        public String getDescription()
        Gets description of task
        Returns:
        String of task description
      • setDescription

        public void setDescription​(String description)
        Sets the description of the task
        Parameters:
        description - of task