Interface Task

  • All Superinterfaces:
    Activity

    public interface Task
    extends Activity
    Represents a task
    • Method Detail

      • getName

        String getName()
        The name of the task
        Returns:
      • getAssignments

        List<? extends Assignment> getAssignments()
        The list of assignment of this task
        Returns:
        the list of assignments
      • getCompletions

        List<? extends Completion> getCompletions()
        The list of completions of this task
        Returns:
        the list of completions
      • getOutcome

        String getOutcome()
        The Outcome of the last completion
        Returns:
      • isCompleted

        boolean isCompleted()
        Whether or not this task has been completed
        Returns:
        true if the task has been completed and it has not been assigned since
      • canComplete

        boolean canComplete()
        Whether or not the current user can complete this task
        Returns:
        true if the current user can complete this task
      • getLastCompletion

        Completion getLastCompletion()
        Retrieves the last completion
        Returns:
        the last completion, or null if the task has never been completed
      • getCurrentAssignment

        Assignment getCurrentAssignment()
        Retrieves the current assignment for the task.
        Returns:
        the last assignment for the task, or null if the task has never been assigned or if the task is completed
      • getLastAssignment

        Assignment getLastAssignment()
        Retrieves the current assignment for the task.
        Returns:
        the last assignment for the task, or null if the task has never been assigned.
      • getDueDate

        Date getDueDate()
        Returns the due date for the task. This value may be null if there is no due date set.
        Returns:
        the due date for this task, or null if not set.
        Since:
        1.2