public interface HistoryProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
HistoryProvider.RevisionProvider
Wrapper on a HistoryProvider to act as
ElementProvider on Revisions. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_REVISIONS
Indicator for retrieving all revisions.
|
static Date |
EVER_SINCE
The date all others are after.
|
static Date |
UNTIL_NOW
The end of all time.
|
| Modifier and Type | Method and Description |
|---|---|
ElementProvider<Revision> |
asRevisionProvider()
Return an
ElementProvider on this HistoryProvider. |
List<Revision> |
getHistory()
Returns the revisions history of this storeelement, starting with the newest revision descending to
the initial revision.
|
List<Revision> |
getHistory(Date before,
Date after,
int maxCount,
Filter<Revision> filter)
Returns a list of revisions of this store element in descending order.
|
static final int ALL_REVISIONS
getHistory(Date, Date, int, Filter),
Constant Field Valuesstatic final Date EVER_SINCE
getHistory(Date, Date, int, Filter)static final Date UNTIL_NOW
getHistory(Date, Date, int, Filter)List<Revision> getHistory()
@NotNull List<Revision> getHistory(@NotNull Date before, @NotNull Date after, int maxCount, @Nullable Filter<Revision> filter)
after before
---I-------------------------------------------------I---> time
I<---------------------------->I
result list containing "maxCount" entries
before - Marks upper date bound, so that revisions must be of this date or older to pass. Use
UNTIL_NOW to retrieve revisions up to date. Do NOT use new Date()!after - Marks lower date bound, so that revisions must be of this date or younger to pass. Use
EVER_SINCE to retrieve revisions up to beginning of records.maxCount - The maximum count of returned revisions. Use ALL_REVISIONS to get all
revisions in specified time range.filter - Filter to be passed. If null, accepts all elements. Useful filter implementations
can be found in RevisionFilter. See Filter.Util for how to combine
filters.@NotNull ElementProvider<Revision> asRevisionProvider()
ElementProvider on this HistoryProvider.Revisions.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408