Class TrackedResourceSetService
java.lang.Object
org.eclipse.lyo.oslc4j.trs.server.service.TrackedResourceSetService
@Path("/trs")
@OslcService("http://open-services.net/ns/core/trs#")
public class TrackedResourceSetService
extends Object
The service class for the TRS interface. This class needs to be implemented by an OSLC adapter
wishing to implement a TRS interface
- Since:
- 2.3.0
- Version:
- $version-stub$
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTrackedResourceSetService
(PagedTrs _changeHistories) TrackedResourceSetService
(PagedTrs _changeHistories, String base) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
getBase()
manage http calls for the first page of the base.jakarta.ws.rs.core.Response
getBasePage
(int pageNo) manage calls for a specific page of the basejakarta.ws.rs.core.Response
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 pagejakarta.ws.rs.core.Response
getChangeLogPage
(int page) Returns the requested page of the change logprotected PagedTrs
the method managing calls asking for the tracked resource set object.
-
Field Details
-
BASE_PATH
- See Also:
-
CHANGELOG_PATH
- See Also:
-
RESOURCE_PATH
- See Also:
-
-
Constructor Details
-
TrackedResourceSetService
public TrackedResourceSetService() -
TrackedResourceSetService
-
TrackedResourceSetService
-
-
Method Details
-
getTrackedResourceSet
@GET @Produces({"text/turtle","application/rdf+xml","application/xml","application/json"}) public TrackedResourceSet getTrackedResourceSet() throws URISyntaxExceptionthe method managing calls asking for the tracked resource set object.- Returns:
- the tracked resource set representation
- Throws:
URISyntaxException
-
getBase
@GET @Path("base") public jakarta.ws.rs.core.Response getBase()manage http calls for the first page of the base. The call is redirected to the handler of http calls for a specific base page as a call for the page 1 of the base- Returns:
- the first page of the base
-
getBasePage
@GET @Path("base/{page}") @Produces({"text/turtle","application/rdf+xml","application/xml","application/json"}) public jakarta.ws.rs.core.Response getBasePage(@PathParam("page") int pageNo) manage calls for a specific page of the base- Parameters:
pageNo
- the requested page of the base- Returns:
- the requested page of the base
-
getPagedTrs
-
getChangeLog
@GET @Path("changeLog") public jakarta.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- Returns:
- the first page of the change lof
-
getChangeLogPage
@GET @Path("changeLog/{page}") @Produces({"text/turtle","application/rdf+xml","application/xml","application/json"}) public jakarta.ws.rs.core.Response getChangeLogPage(@PathParam("page") int page) Returns the requested page of the change log- Parameters:
page
- the page number of the wanted page- Returns:
- the requested page of the change log
-