@Path(value="/repository")
@Consumes(value={"application/xml","application/json"})
@Produces(value={"application/xml","application/json"})
public interface RepositoryService
Modifier and Type | Method and Description |
---|---|
java.util.List<ConfigurationItemId> |
candidateValues(java.lang.String propertyName,
java.lang.String namePattern,
long page,
long resultPerPage,
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci)
Find candidate values for a property of a
ConfigurationItem . |
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
copy(java.lang.String ID,
java.lang.String newLocation)
Copy a configuration item in the repository.
|
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.
|
void |
deleteList(java.util.List<java.lang.String> ids)
Deletes multiple configuration items from the repository.
|
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 ancestor,
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) and returns the updated artifact if the the update was successful
|
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
update(java.lang.String ID,
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem)
Modifies a configuration item and returns the updated CI if the the update was successful
|
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.
|
@GET @Path(value="ci/{ID:.*?}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem read(@PathParam(value="ID") java.lang.String ID)
ID
- the ID of the CI404
error code if not found.@POST @Path(value="ci/{ID:.*?}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem create(@PathParam(value="ID") 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.@POST @Path(value="ci/{ID:.*?}") @Consumes(value="multipart/form-data") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem create(@PathParam(value="ID") java.lang.String ID, ArtifactAndData artifactAndData)
ID
- the ID/path of the new artifact.artifactAndData
- the data of the artifact.@PUT @Path(value="ci/{ID:.*?}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem update(@PathParam(value="ID") 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.RuntimeException
if the CI has been updated on the server and you are sending modifications on an old version.@PUT @Path(value="ci/{ID:.*?}") @Consumes(value="multipart/form-data") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem update(@PathParam(value="ID") 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.RuntimeException
if the CI has been updated on the server and you are sending modifications on an old version.@DELETE @Path(value="ci/{ID:.*?}") void delete(@PathParam(value="ID") java.lang.String ID)
ID
- the ID of the CI to delete.@POST @Path(value="cis/delete") void deleteList(java.util.List<java.lang.String> ids)
ids
- the ids of the CIs@POST @Path(value="cis/read") java.util.List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> read(java.util.List<java.lang.String> ids)
ids
- the ids of the CIs404
error code if one of them was not found.RuntimeException
if one of them was not found.@POST @Path(value="cis") 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.@PUT @Path(value="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.RuntimeException
if one of the CIs has been updated on the server and you are sending modifications on an old version.@GET @Path(value="exists/{ID:.*?}") java.lang.Boolean exists(@PathParam(value="ID") java.lang.String ID)
ID
- the ID of the CI to checktrue
if the CI exists, false
if not.@POST @Path(value="move/{ID:.*?}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem move(@PathParam(value="ID") java.lang.String ID, @QueryParam(value="newId") java.lang.String newLocation)
ID
- the ID of the CI to movenewLocation
- the new ID of the CI, reflecting the path in the repository.@POST @Path(value="copy/{ID:.*?}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem copy(@PathParam(value="ID") java.lang.String ID, @QueryParam(value="newId") java.lang.String newLocation)
ID
- the ID of the CI to copynewLocation
- the new ID of the copied CI, reflecting the path in the repository.@POST @Path(value="rename/{ID:.*?}") com.xebialabs.deployit.plugin.api.udm.ConfigurationItem rename(@PathParam(value="ID") java.lang.String ID, @QueryParam(value="newName") java.lang.String newName)
ID
- the ID of the CI to renamenewName
- the new name.@GET @Path(value="query") java.util.List<ConfigurationItemId> query(@QueryParam(value="type") com.xebialabs.deployit.plugin.api.reflect.Type type, @QueryParam(value="parent") java.lang.String parent, @QueryParam(value="ancestor") java.lang.String ancestor, @QueryParam(value="namePattern") java.lang.String namePattern, @QueryParam(value="lastModifiedBefore") org.joda.time.DateTime lastModifiedBefore, @QueryParam(value="lastModifiedAfter") org.joda.time.DateTime lastModifiedAfter, @QueryParam(value="page") long page, @QueryParam(value="resultsPerPage") long resultPerPage)
type
- the type of the CIparent
- the parent ID of the CI. If set, only the direct children of this CI are searched.ancestor
- the ancestor 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.@POST @Path(value="candidate-values") java.util.List<ConfigurationItemId> candidateValues(@QueryParam(value="propertyName") java.lang.String propertyName, @QueryParam(value="namePattern") java.lang.String namePattern, @QueryParam(value="page") long page, @QueryParam(value="resultsPerPage") long resultPerPage, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci)
ConfigurationItem
.propertyName
- the property name of the ConfigurationItem
for which to find candidate valuesnamePattern
- 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 ('\\').page
- the desired page, in case of a paged query.resultPerPage
- the page size, or -1
for no paging.ci
- The ConfigurationItem
for which to find the candidate values@POST @Path(value="validate") 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.