|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HistoryProvider
Interface for providers of historical revision information.
Nested Class Summary | |
---|---|
static class |
HistoryProvider.RevisionProvider
Wrapper on a HistoryProvider to act as ElementProvider on Revision s. |
Field Summary | |
---|---|
static int |
ALL_REVISIONS
Indicator for retrieving all revisions. |
static Date |
EVER_SINCE
The date all others are after. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final int ALL_REVISIONS
HistoryProvider.getHistory(Date, Date, int, Filter)
,
Constant Field Valuesstatic final Date EVER_SINCE
HistoryProvider.getHistory(Date, Date, int, Filter)
Method Detail |
---|
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
new Date()
to retrieve revisions up to date.after
- Marks lower date bound, so that revisions must be of this date or younger to pass. Use
HistoryProvider.EVER_SINCE
to retrieve revisions up to beginning of records.maxCount
- The maximum count of returned revisions. Use HistoryProvider.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.
Revision
s.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |