Interface Task

  • All Superinterfaces:
    Activity

    public interface Task
    extends Activity
    Represents a task
    • Method Detail

      • getName

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

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

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

        java.lang.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

        java.util.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