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 Details

  • Constructor Details

    • TrackedResourceSetService

      public TrackedResourceSetService()
    • TrackedResourceSetService

      @Inject public TrackedResourceSetService(PagedTrs _changeHistories)
    • TrackedResourceSetService

      public TrackedResourceSetService(PagedTrs _changeHistories, String base)
  • Method Details

    • 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 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

      protected PagedTrs 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