Interface TaskLogHandler

All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<ChangeLog, Long>
All Known Implementing Classes:
TaskLogDAOImpl

public interface TaskLogHandler extends org.exoplatform.commons.api.persistence.GenericDAO<ChangeLog, Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    findLatestTaskLogsBefore(Collection<Long> taskIds, Date before, Collection<String> actionNames)
    Reads, in one query, the latest change log entry of each of several tasks logged before a date with one of the given actions: two entries logged at that same latest time both come back.
    org.exoplatform.commons.utils.ListAccess<ChangeLog>
     
    Reads, in one query, the change log entries of several tasks logged at or after a date.

    Methods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO

    count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
  • Method Details

    • findTaskLogs

      org.exoplatform.commons.utils.ListAccess<ChangeLog> findTaskLogs(Long taskId)
    • findTaskLogsSince

      List<ChangeLog> findTaskLogsSince(Collection<Long> taskIds, Date since)
      Reads, in one query, the change log entries of several tasks logged at or after a date.
      Parameters:
      taskIds - the tasks
      since - the earliest date, included
      Returns:
      their entries, in no order
    • findLatestTaskLogsBefore

      List<ChangeLog> findLatestTaskLogsBefore(Collection<Long> taskIds, Date before, Collection<String> actionNames)
      Reads, in one query, the latest change log entry of each of several tasks logged before a date with one of the given actions: two entries logged at that same latest time both come back.
      Parameters:
      taskIds - the tasks
      before - the date the entries precede, excluded
      actionNames - the actions of the entries
      Returns:
      the latest entry of each task, in no order