|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.client.SrampAtomApiClient
public class SrampAtomApiClient
Class used to communicate with the S-RAMP server.
| Constructor Summary | |
|---|---|
SrampAtomApiClient(String endpoint)
Constructor. |
|
| Method Summary | |
|---|---|
void |
deleteArtifact(String uuid,
ArtifactType type)
Delets an artifact from the s-ramp repository. |
InputStream |
getArtifactContent(ArtifactType artifactType,
String artifactUuid)
Gets the content for an artifact as an input stream. |
org.jboss.resteasy.plugins.providers.atom.Entry |
getFullArtifactEntry(ArtifactType artifactType,
String artifactUuid)
Gets an Atom Entry for the given S-RAMP artifact by UUID. |
org.jboss.resteasy.plugins.providers.atom.Feed |
query(String srampQuery)
Provides a very simple mechanism for querying. |
org.jboss.resteasy.plugins.providers.atom.Feed |
query(String srampQuery,
int page,
int pageSize,
String orderBy,
boolean ascending)
Executes the given s-ramp query xpath and returns a Feed of the matching artifacts. |
void |
updateArtifact(BaseArtifactType artifact,
InputStream content)
Updates the content of the artifact. |
void |
updateArtifactMetaData(BaseArtifactType artifact)
Called to update the meta-data stored in the s-ramp repository for the given s-ramp artifact. |
org.jboss.resteasy.plugins.providers.atom.Entry |
uploadArtifact(ArtifactType artifactType,
InputStream content,
String artifactFileName)
Please refer to javadoc in SrampAtomApiClient#uploadArtifact(String, String, InputStream, String) |
Map<String,?> |
uploadBatch(SrampArchive archive)
Performs a batch operation by uploading an s-ramp package archive to the s-ramp server for processing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SrampAtomApiClient(String endpoint)
endpoint - | Method Detail |
|---|
public org.jboss.resteasy.plugins.providers.atom.Entry getFullArtifactEntry(ArtifactType artifactType,
String artifactUuid)
throws SrampClientException,
SrampServerException
Entry for the given S-RAMP artifact by UUID.
artifactType - artifactUuid -
SrampClientException
SrampServerException
public InputStream getArtifactContent(ArtifactType artifactType,
String artifactUuid)
throws SrampClientException,
SrampServerException
artifactType - the artifact typeartifactUuid - the S-RAMP uuid of the artifact
InputStream to the S-RAMP artifact content
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Entry uploadArtifact(ArtifactType artifactType,
InputStream content,
String artifactFileName)
throws SrampClientException,
SrampServerException
SrampAtomApiClient#uploadArtifact(String, String, InputStream, String)
artifactType - content - artifactFileName -
SrampClientException
SrampServerException
public Map<String,?> uploadBatch(SrampArchive archive)
throws SrampClientException,
SrampServerException
BaseArtifactType or an
SrampServerException, depending on success vs. failure of that entry.
archive - the s-ramp package archive to upload
SrampClientException
SrampServerException
public void updateArtifactMetaData(BaseArtifactType artifact)
throws SrampClientException
artifact -
SrampClientException
public void updateArtifact(BaseArtifactType artifact,
InputStream content)
throws SrampClientException
artifactType - uuid - content -
SrampClientException
public void deleteArtifact(String uuid,
ArtifactType type)
throws SrampClientException,
SrampServerException
uuid - type -
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Feed query(String srampQuery)
throws SrampClientException,
SrampServerException
srampQuery - the s-ramp query (xpath formatted)
SrampClientException
SrampServerException
public org.jboss.resteasy.plugins.providers.atom.Feed query(String srampQuery,
int page,
int pageSize,
String orderBy,
boolean ascending)
throws SrampClientException,
SrampServerException
srampQuery - the s-ramp query (xpath formatted)page - which page of results to return (0 indexed)pageSize - the size of the page of results to returnorderBy - the s-ramp property to use for sorting (name, uuid, createdOn, etc)ascending - the direction of the sort
Feed
SrampClientException
SrampServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||