Class InmemPagedTrs

  • All Implemented Interfaces:
    PagedTrs, TrsEventHandler

    public class InmemPagedTrs
    extends Object
    implements PagedTrs, TrsEventHandler
    This class is the backbone of the Tracked resource set service class. This class is extended by oslc adapters wishing to implement an OSLC TRS interface. The implementing classes need to implement one method returning the change history of the resources living in the tool exposed by the OSLC adapter
    Since:
    2.3.0
    Version:
    $version-stub$
    • Constructor Detail

      • InmemPagedTrs

        public InmemPagedTrs​(int basePageLimit,
                             int changelogPageLimit,
                             URI uriBase,
                             String baseRelativePath,
                             String changeLogRelativePath,
                             Collection<URI> baseResourceUris)
        Parameters:
        basePageLimit - Max items per Base page
        changelogPageLimit - Max items per Changelog page
        uriBase - Set it via eg
        UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("trs").build()
        baseRelativePath - The relative path of the base, may contain URI template parameters.
        changeLogRelativePath - The relative path of the changeLog, may contain URI template parameters.
        baseResourceUris - Initial set of the TRS Base resource URIs
      • InmemPagedTrs

        public InmemPagedTrs​(int basePageLimit,
                             int changelogPageLimit,
                             URI uriBase,
                             Collection<URI> baseResourceUris)
        Parameters:
        basePageLimit - Max items per Base page
        changelogPageLimit - Max items per Changelog page
        uriBase - Set it via eg
        UriBuilder.fromUri(OSLC4JUtils.getServletURI()).path("trs").build()
        baseResourceUris - Initial set of the TRS Base resource URIs