@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 |
Constructor and Description |
---|
TrackedResourceSetService() |
TrackedResourceSetService(IChangeHistories _changeHistories) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getBase(javax.ws.rs.core.UriInfo uriInfo)
manage http calls for the first page of the base.
|
javax.ws.rs.core.Response |
getBasePage(String pageNo)
manage calls for a specific page of the base
|
protected IChangeHistories |
getChangeHistories() |
javax.ws.rs.core.Response |
getChangeLog(javax.ws.rs.core.UriInfo uriInfo)
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(String page)
Returns the requested page of the change log
|
org.eclipse.lyo.core.trs.TrackedResourceSet |
getTrackedResourceSet(javax.ws.rs.core.UriInfo uriInfo)
the method managing calls asking for the tracked resource set object.
|
public static final String BASE_PATH
public static final String CHANGELOG_PATH
public TrackedResourceSetService()
@Inject public TrackedResourceSetService(IChangeHistories _changeHistories)
@GET @Produces(value={"text/turtle","application/rdf+xml","application/xml","application/json"}) public org.eclipse.lyo.core.trs.TrackedResourceSet getTrackedResourceSet(@Context javax.ws.rs.core.UriInfo uriInfo)
@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") String pageNo)
pageNo
- the requested page of the baseprotected IChangeHistories getChangeHistories()
@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") String page)
page
- the page number of the wanted page@GET @Path(value="changeLog") public javax.ws.rs.core.Response getChangeLog(@Context javax.ws.rs.core.UriInfo uriInfo)
@GET @Path(value="base") public javax.ws.rs.core.Response getBase(@Context javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2019. All Rights Reserved.