|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RepositoryService
Provides access to the Deployit repository.
| Method Summary | |
|---|---|
java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> |
create(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> configurationItems)
Creates multiple configuration items. |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
create(java.lang.String ID,
ArtifactAndData artifactAndData)
Creates a new artifact CI with data. |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
create(java.lang.String ID,
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem)
Creates a new configuration item. |
void |
delete(java.lang.String ID)
Deletes a configuration item. |
java.lang.Boolean |
exists(java.lang.String ID)
Checks if a configuration item exists. |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
move(java.lang.String ID,
java.lang.String newLocation)
Moves a configuration item in the repository. |
java.util.List<ConfigurationItemId> |
query(com.xebialabs.deployit.plugin.api.reflect.Type type,
java.lang.String parent,
java.lang.String namePattern,
org.joda.time.DateTime lastModifiedBefore,
org.joda.time.DateTime lastModifiedAfter,
long page,
long resultPerPage)
Retrieves configuration items by way of a query. |
java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> |
read(java.util.List<java.lang.String> ids)
Reads multiple configuration items from the repository. |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
read(java.lang.String ID)
Reads a configuration item from the repository. |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
rename(java.lang.String ID,
java.lang.String newName)
Changes the name of a configuration item in the repository. |
java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> |
update(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> configurationItems)
Modifies multiple configuration items. |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
update(java.lang.String ID,
ArtifactAndData artifactAndData)
Modifies an artifact (upload new data). |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
update(java.lang.String ID,
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem)
Modifies a configuration item. |
java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> |
validate(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> cis)
Validate the configuration items, returning any validation errors found. |
| Method Detail |
|---|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem read(java.lang.String ID)
ID - the ID of the CI
404 error code if not found.
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem create(java.lang.String ID,
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem)
ID - the ID/path of the new CI.configurationItem - the data of the CI.
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem create(java.lang.String ID,
ArtifactAndData artifactAndData)
ID - the ID/path of the new artifact.artifactAndData - the data of the artifact.
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem update(java.lang.String ID,
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem)
ID - the ID of the CI to modify.configurationItem - the new data of the CI.
409 error code if the CI has been updated on the server and you are sending modifications on an old version.
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem update(java.lang.String ID,
ArtifactAndData artifactAndData)
ID - the ID of the artifact to modify.artifactAndData - the new data of the artifact.
409 error code if the CI has been updated on the server and you are sending modifications on an old version.void delete(java.lang.String ID)
ID - the ID of the CI to delete.java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> read(java.util.List<java.lang.String> ids)
ids - the ids of the CIs
404 error code if one of them was not found.java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> create(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> configurationItems)
configurationItems - the data of the CIs.
java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> update(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> configurationItems)
configurationItems - the new data of the CIs.
409 error code if one of the CIs has been updated on the server and you are sending modifications on an old version.java.lang.Boolean exists(java.lang.String ID)
ID - the ID of the CI to check
true if the CI exists, false if not.
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem move(java.lang.String ID,
java.lang.String newLocation)
ID - the ID of the CI to movenewLocation - the new ID of the CI, reflecting the path in the repository.
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem rename(java.lang.String ID,
java.lang.String newName)
ID - the ID of the CI to renamenewName - the new name.
java.util.List<ConfigurationItemId> query(com.xebialabs.deployit.plugin.api.reflect.Type type,
java.lang.String parent,
java.lang.String namePattern,
org.joda.time.DateTime lastModifiedBefore,
org.joda.time.DateTime lastModifiedAfter,
long page,
long resultPerPage)
type - the type of the CIparent - the parent ID of the CI. If set, only the subtree of this CI
is searched.namePattern - a search pattern for the name. This is like the SQL "LIKE"
pattern: the character '%' represents any string of zero or
more characters, and the character '_' (underscore) represents
any single character. Any literal use of these two characters
must be escaped with a backslash ('\'). Consequently, any
literal instance of a backslash must also be escaped,
resulting in a double backslash ('\\').lastModifiedBefore - look for CIs modified before this date.lastModifiedAfter - look for CIs modified after this date.page - the desired page, in case of a paged query.resultPerPage - the page size, or -1 for no paging.
java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> validate(java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> cis)
cis - The list of configuration items to valdiate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||