@Path(value="/trs") @OslcService(value="http://open-services.net/ns/core/trs#") public class TrackedResourceSetService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_PATH |
static String |
CHANGELOG_PATH |
static String |
RESOURCE_PATH |
Constructor and Description |
---|
TrackedResourceSetService() |
TrackedResourceSetService(PagedTrs _changeHistories) |
TrackedResourceSetService(PagedTrs _changeHistories,
String base) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getBase()
manage http calls for the first page of the base.
|
javax.ws.rs.core.Response |
getBasePage(int pageNo)
manage calls for a specific page of the base
|
javax.ws.rs.core.Response |
getChangeLog()
manage the calls for the change log and redirects to the handler of a specific page of the
change log with the call to the first page
|
javax.ws.rs.core.Response |
getChangeLogPage(int page)
Returns the requested page of the change log
|
protected PagedTrs |
getPagedTrs() |
org.eclipse.lyo.core.trs.TrackedResourceSet |
getTrackedResourceSet()
the method managing calls asking for the tracked resource set object.
|
public static final String BASE_PATH
public static final String CHANGELOG_PATH
public static final String RESOURCE_PATH
public TrackedResourceSetService()
@Inject public TrackedResourceSetService(PagedTrs _changeHistories)
@GET @Produces(value={"text/turtle","application/rdf+xml","application/xml","application/json"}) public org.eclipse.lyo.core.trs.TrackedResourceSet getTrackedResourceSet() throws URISyntaxException
URISyntaxException
@GET @Path(value="base") public javax.ws.rs.core.Response getBase()
@GET @Path(value="base/{page}") @Produces(value={"text/turtle","application/rdf+xml","application/xml","application/json"}) public javax.ws.rs.core.Response getBasePage(@PathParam(value="page") int pageNo)
pageNo
- the requested page of the baseprotected PagedTrs getPagedTrs()
@GET @Path(value="changeLog") public javax.ws.rs.core.Response getChangeLog()
@GET @Path(value="changeLog/{page}") @Produces(value={"text/turtle","application/rdf+xml","application/xml","application/json"}) public javax.ws.rs.core.Response getChangeLogPage(@PathParam(value="page") int page)
page
- the page number of the wanted pageCopyright © 2020. All Rights Reserved.