public class TrackedResourceClient extends Object implements ITrackedResourceClient
Constructor and Description |
---|
TrackedResourceClient(org.eclipse.lyo.oslc4j.client.OslcClient oslcClient) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.lyo.core.trs.TrackedResourceSet |
extractRemoteTrs(URI trsUri)
retieve the trs from the trs provider using the trs uri attribute and
return a trs pojo accordingly
|
org.eclipse.lyo.core.trs.Base |
fetchRemoteBase(URI baseUrl)
Retrieve the base from the trs provider using the baseURI argument
return a base pojo accordingly
|
org.eclipse.lyo.core.trs.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<org.eclipse.lyo.core.trs.Base> |
updateBases(org.eclipse.lyo.core.trs.TrackedResourceSet updatedTrs)
Return a list of base objects corresponding to the pages of the base
after requesting them from the base url.
|
public TrackedResourceClient(org.eclipse.lyo.oslc4j.client.OslcClient oslcClient)
@NotNull public org.apache.jena.rdf.model.Model fetchTRSRemoteResource(URI uri) throws RepresentationRetrievalException
fetchTRSRemoteResource
in interface ITrackedResourceClient
RepresentationRetrievalException
public List<org.eclipse.lyo.core.trs.Base> updateBases(org.eclipse.lyo.core.trs.TrackedResourceSet updatedTrs) throws org.eclipse.lyo.oslc4j.core.exception.LyoModelException, RepresentationRetrievalException
updateBases
in interface ITrackedResourceClient
updatedTrs
- the trs object retrieved after retrieving it using the trs uriorg.eclipse.lyo.oslc4j.core.exception.LyoModelException
RepresentationRetrievalException
public org.eclipse.lyo.core.trs.TrackedResourceSet extractRemoteTrs(URI trsUri) throws org.eclipse.lyo.oslc4j.core.exception.LyoModelException, RepresentationRetrievalException
ITrackedResourceClient
extractRemoteTrs
in interface ITrackedResourceClient
org.eclipse.lyo.oslc4j.core.exception.LyoModelException
RepresentationRetrievalException
public org.eclipse.lyo.core.trs.ChangeLog fetchRemoteChangeLog(URI changeLogURl) throws IllegalArgumentException, SecurityException, org.eclipse.lyo.oslc4j.core.exception.LyoModelException, RepresentationRetrievalException
ITrackedResourceClient
fetchRemoteChangeLog
in interface ITrackedResourceClient
changeLogURl
- url of the change logIllegalArgumentException
SecurityException
org.eclipse.lyo.oslc4j.core.exception.LyoModelException
RepresentationRetrievalException
public org.eclipse.lyo.core.trs.Base fetchRemoteBase(URI baseUrl) throws org.eclipse.lyo.oslc4j.core.exception.LyoModelException, RepresentationRetrievalException
ITrackedResourceClient
fetchRemoteBase
in interface ITrackedResourceClient
baseUrl
- url of the baseorg.eclipse.lyo.oslc4j.core.exception.LyoModelException
RepresentationRetrievalException
Copyright © 2020. All rights reserved.