public class TrackedResourceClient extends Object implements ITrackedResourceClient
| Constructor and Description |
|---|
TrackedResourceClient(OslcClient oslcClient) |
| Modifier and Type | Method and Description |
|---|---|
TrackedResourceSet |
extractRemoteTrs(URI trsUri)
retieve the trs from the trs provider using the trs uri attribute and
return a trs pojo accordingly
|
Base |
fetchRemoteBase(URI baseUrl)
Retrieve the base from the trs provider using the baseURI argument
return a base pojo accordingly
|
ChangeLog |
fetchRemoteChangeLog(URI changeLogURl)
Retrieve the change log from the trs provider using the changeLogURI
argument return a change log pojo accordingly
|
org.apache.jena.rdf.model.Model |
fetchTRSRemoteResource(URI uri) |
List<Base> |
updateBases(TrackedResourceSet updatedTrs)
Return a list of base objects corresponding to the pages of the base
after requesting them from the base url.
|
public TrackedResourceClient(OslcClient oslcClient)
@NotNull public org.apache.jena.rdf.model.Model fetchTRSRemoteResource(URI uri) throws RepresentationRetrievalException
fetchTRSRemoteResource in interface ITrackedResourceClientRepresentationRetrievalExceptionpublic List<Base> updateBases(TrackedResourceSet updatedTrs) throws LyoModelException, RepresentationRetrievalException
updateBases in interface ITrackedResourceClientupdatedTrs - the trs object retrieved after retrieving it using the trs uriLyoModelExceptionRepresentationRetrievalExceptionpublic TrackedResourceSet extractRemoteTrs(URI trsUri) throws LyoModelException, RepresentationRetrievalException
ITrackedResourceClientextractRemoteTrs in interface ITrackedResourceClientLyoModelExceptionRepresentationRetrievalExceptionpublic ChangeLog fetchRemoteChangeLog(URI changeLogURl) throws IllegalArgumentException, SecurityException, LyoModelException, RepresentationRetrievalException
ITrackedResourceClientfetchRemoteChangeLog in interface ITrackedResourceClientchangeLogURl - url of the change logIllegalArgumentExceptionSecurityExceptionLyoModelExceptionRepresentationRetrievalExceptionpublic Base fetchRemoteBase(URI baseUrl) throws LyoModelException, RepresentationRetrievalException
ITrackedResourceClientfetchRemoteBase in interface ITrackedResourceClientbaseUrl - url of the baseLyoModelExceptionRepresentationRetrievalExceptionCopyright © 2021. All rights reserved.