Interface PagedTrs
- All Known Implementing Classes:
InmemPagedTrs
public interface PagedTrs
-
Method Summary
Modifier and TypeMethodDescriptionintintGet the first Base resource.getBaseResource(Integer page) Get a page from the paged BasegetBaseResource(URI uri) Get a Base resource by its URIgetChangeLog(Integer page) Get a ChangeLog pagegetChangeLog(URI uri) Get a ChangeLog page by its URIGet the last ChangeLog page.Get the Base resource following the given Base.getPrevious(ChangeLog changeLog) Get the previous ChangeLog of the given changeLog.
-
Method Details
-
getBaseResource
Get a page from the paged Base- Parameters:
page- Base page number- Returns:
- Base resource with the populated Page
-
getBaseResource
Get a Base resource by its URI- Parameters:
uri- URI of the Base resource- Returns:
- Base resource or null if not found
-
getBaseFirst
Base getBaseFirst()Get the first Base resource.- Returns:
- the first Base resource, or null if none exist
-
getNext
Get the Base resource following the given Base.- Parameters:
base- the current Base resource- Returns:
- the next Base resource, or null if current is the last page
-
getChangeLog
Get a ChangeLog page- Parameters:
page- ChangeLog page number- Returns:
- ChangeLog page with the populated link to the previous ChangeLog page.
-
getChangeLog
Get a ChangeLog page by its URI- Parameters:
uri- URI of the ChangeLog page- Returns:
- ChangeLog page or null if not found
-
getChangeLogLast
ChangeLog getChangeLogLast()Get the last ChangeLog page.- Returns:
- the last ChangeLog page
-
getPrevious
Get the previous ChangeLog of the given changeLog.- Returns:
- the previous ChangeLog page
-
basePageCount
int basePageCount()- Returns:
- number of the Base pages
-
changelogPageCount
int changelogPageCount()- Returns:
- number of the ChangeLog pages
-