Package org.eclipse.lyo.trs.client.util
Class TrackedResourceClient
java.lang.Object
org.eclipse.lyo.trs.client.util.TrackedResourceClient
- All Implemented Interfaces:
ITrackedResourceClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractRemoteTrs(URI trsUri) retieve the trs from the trs provider using the trs uri attribute and return a trs pojo accordinglyfetchRemoteBase(URI baseUrl) Retrieve the base from the trs provider using the baseURI argument return a base pojo accordinglyfetchRemoteChangeLog(URI changeLogURl) Retrieve the change log from the trs provider using the changeLogURI argument return a change log pojo accordinglyupdateBases(TrackedResourceSet updatedTrs) Return a list of base objects corresponding to the pages of the base after requesting them from the base url.
-
Constructor Details
-
TrackedResourceClient
-
-
Method Details
-
fetchTRSRemoteResource
- Specified by:
fetchTRSRemoteResourcein interfaceITrackedResourceClient- Throws:
RepresentationRetrievalException
-
updateBases
public List<Base> updateBases(TrackedResourceSet updatedTrs) throws LyoModelException, RepresentationRetrievalException Return a list of base objects corresponding to the pages of the base after requesting them from the base url. The base url is retrieved from the trs object passes as a parameter.- Specified by:
updateBasesin interfaceITrackedResourceClient- Parameters:
updatedTrs- the trs object retrieved after retrieving it using the trs uri- Returns:
- the pages of the base of this trs provider
- Throws:
LyoModelExceptionRepresentationRetrievalException
-
extractRemoteTrs
public TrackedResourceSet extractRemoteTrs(URI trsUri) throws LyoModelException, RepresentationRetrievalException Description copied from interface:ITrackedResourceClientretieve the trs from the trs provider using the trs uri attribute and return a trs pojo accordingly- Specified by:
extractRemoteTrsin interfaceITrackedResourceClient- Returns:
- trs pojo
- Throws:
LyoModelExceptionRepresentationRetrievalException
-
fetchRemoteChangeLog
public ChangeLog fetchRemoteChangeLog(URI changeLogURl) throws IllegalArgumentException, SecurityException, LyoModelException, RepresentationRetrievalException Description copied from interface:ITrackedResourceClientRetrieve the change log from the trs provider using the changeLogURI argument return a change log pojo accordingly- Specified by:
fetchRemoteChangeLogin interfaceITrackedResourceClient- Parameters:
changeLogURl- url of the change log- Returns:
- change log pojo
- Throws:
IllegalArgumentExceptionSecurityExceptionLyoModelExceptionRepresentationRetrievalException
-
fetchRemoteBase
Description copied from interface:ITrackedResourceClientRetrieve the base from the trs provider using the baseURI argument return a base pojo accordingly- Specified by:
fetchRemoteBasein interfaceITrackedResourceClient- Parameters:
baseUrl- url of the base- Returns:
- base pojo
- Throws:
LyoModelExceptionRepresentationRetrievalException
-