Package org.xwiki.extension.job.history
Interface ExtensionJobHistory
The history of extension jobs.
- Since:
- 7.1RC1
- Version:
- $Id: ab51d105473c10c01ff8b222f9a1169f073d82aa $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecord
(ExtensionJobHistoryRecord record) Adds a new record to the history.getRecords
(org.apache.commons.collections4.Predicate<ExtensionJobHistoryRecord> filter, String offsetRecordId, int limit) Returns the history records that match the given filter after the specified offset record.
-
Method Details
-
addRecord
Adds a new record to the history.- Parameters:
record
- the record to add
-
getRecords
List<ExtensionJobHistoryRecord> getRecords(org.apache.commons.collections4.Predicate<ExtensionJobHistoryRecord> filter, String offsetRecordId, int limit) Returns the history records that match the given filter after the specified offset record.- Parameters:
filter
- the predicate used to filter the history recordsoffsetRecordId
- specifies the offset record (where to start from); passnull
to start from the most recent record in the historylimit
- the maximum number of records to return from the specified offset- Returns:
- a list of history records that match the given filter and are older than the specified offset record
-