public class InmemPagedTrs extends Object implements PagedTrs, TrsEventHandler
Constructor and Description |
---|
InmemPagedTrs(int basePageLimit,
int changelogPageLimit,
URI uriBase,
Collection<URI> baseResourceUris) |
InmemPagedTrs(int basePageLimit,
int changelogPageLimit,
URI uriBase,
String baseRelativePath,
String changeLogRelativePath,
Collection<URI> baseResourceUris) |
Modifier and Type | Method and Description |
---|---|
int |
basePageCount() |
int |
changelogPageCount() |
org.eclipse.lyo.core.trs.Base |
getBaseResource(Integer pageId)
Get a page from the paged Base
|
org.eclipse.lyo.core.trs.ChangeLog |
getChangeLog(Integer pageId)
Get a ChangeLog page
|
org.eclipse.lyo.core.trs.ChangeLog |
getChangeLogLast() |
void |
onCreated(org.eclipse.lyo.oslc4j.core.model.IResource resource) |
void |
onDeleted(URI resourceUri) |
void |
onHistoryData(HistoryData event) |
void |
onModified(org.eclipse.lyo.oslc4j.core.model.IResource resource) |
public InmemPagedTrs(int basePageLimit, int changelogPageLimit, URI uriBase, String baseRelativePath, String changeLogRelativePath, Collection<URI> baseResourceUris)
basePageLimit
- Max items per Base pagechangelogPageLimit
- Max items per Changelog pageuriBase
- Set it via eg UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("trs").build()
baseRelativePath
- The relative path of the base, may contain URI template parameters.changeLogRelativePath
- The relative path of the changeLog, may contain URI template parameters.baseResourceUris
- Initial set of the TRS Base resource URIspublic InmemPagedTrs(int basePageLimit, int changelogPageLimit, URI uriBase, Collection<URI> baseResourceUris)
basePageLimit
- Max items per Base pagechangelogPageLimit
- Max items per Changelog pageuriBase
- Set it via eg UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("trs").build()
baseResourceUris
- Initial set of the TRS Base resource URIspublic org.eclipse.lyo.core.trs.Base getBaseResource(Integer pageId)
PagedTrs
getBaseResource
in interface PagedTrs
pageId
- Base page numberpublic int basePageCount()
basePageCount
in interface PagedTrs
public org.eclipse.lyo.core.trs.ChangeLog getChangeLog(Integer pageId)
PagedTrs
getChangeLog
in interface PagedTrs
pageId
- ChangeLog page numberpublic org.eclipse.lyo.core.trs.ChangeLog getChangeLogLast()
getChangeLogLast
in interface PagedTrs
public int changelogPageCount()
changelogPageCount
in interface PagedTrs
public void onCreated(org.eclipse.lyo.oslc4j.core.model.IResource resource)
onCreated
in interface TrsEventHandler
public void onModified(org.eclipse.lyo.oslc4j.core.model.IResource resource)
onModified
in interface TrsEventHandler
public void onDeleted(URI resourceUri)
onDeleted
in interface TrsEventHandler
public void onHistoryData(HistoryData event)
Copyright © 2020. All Rights Reserved.