Class JCRTasksDAO.TaskListResult

java.lang.Object
org.ametys.plugins.explorer.tasks.jcr.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 Details

    • _tasks

      protected List<Task> _tasks
      task list
    • _total

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

    • 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 Details

    • getTasks

      public List<Task> getTasks()
      Retrieves the tasks
      Returns:
      the tasks
    • getTotal

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