Class JCRTasksDAO.TaskListResult

  • Enclosing class:
    JCRTasksDAO

    public static class JCRTasksDAO.TaskListResult
    extends Object
    Simple structure used to store a list of task and some metadata. Used when retrieving a list of task as a result of a search operation.
    • Field Detail

      • _total

        protected int _total
        number of result before applying the filter and the limit
    • Constructor Detail

      • TaskListResult

        protected TaskListResult​(List<Task> task,
                                 int total)
        Task list result constructor
        Parameters:
        task - The task list to reference
        total - number of result before applying the filter and the limit
    • Method Detail

      • getTasks

        public List<TaskgetTasks()
        Retrieves the tasks
        Returns:
        the tasks
      • getTotal

        public int getTotal()
        Retrieves the total
        Returns:
        the total