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
Fields Modifier and Type Field Description static String
BASE_PATH
static String
CHANGELOG_PATH
static String
RESOURCE_PATH
-
Constructor Summary
Constructors Constructor Description TrackedResourceSetService()
TrackedResourceSetService(PagedTrs _changeHistories)
TrackedResourceSetService(PagedTrs _changeHistories, String base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getBase()
manage http calls for the first page of the base.Response
getBasePage(int pageNo)
manage calls for a specific page of the baseResponse
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 pageResponse
getChangeLogPage(int page)
Returns the requested page of the change logprotected PagedTrs
getPagedTrs()
TrackedResourceSet
getTrackedResourceSet()
the method managing calls asking for the tracked resource set object.
-
-
-
Field Detail
-
BASE_PATH
public static final String BASE_PATH
- See Also:
- Constant Field Values
-
CHANGELOG_PATH
public static final String CHANGELOG_PATH
- See Also:
- Constant Field Values
-
RESOURCE_PATH
public static final String RESOURCE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTrackedResourceSet
@GET @Produces({"text/turtle","application/rdf+xml","application/xml","application/json"}) public TrackedResourceSet getTrackedResourceSet() throws URISyntaxException
the method managing calls asking for the tracked resource set object.- Returns:
- the tracked resource set representation
- Throws:
URISyntaxException
-
getBase
@GET @Path("base") public 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 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
protected PagedTrs getPagedTrs()
-
getChangeLog
@GET @Path("changeLog") public 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 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
-
-