com.xebialabs.deployit.plugin.api.deployment.planning
Interface ReadOnlyRepository


public interface ReadOnlyRepository

A read-only view of the Deployit repository. Note: You cannot store a reference to the read-only repository in a Step, as it is not serializable, and the connection to the repository is not restored.


Method Summary
<T extends ConfigurationItem>
T
read(java.lang.String id)
          Read a ConfigurationItem with a specific id.
<T extends ConfigurationItem>
java.util.List<T>
search(Type type)
          Search for all ConfigurationItems of the specified Type.
<T extends ConfigurationItem>
java.util.List<T>
search(Type type, java.lang.String parent)
          Search for all ConfigurationItems of the specified Type under a parent node
 

Method Detail

read

<T extends ConfigurationItem> T read(java.lang.String id)
Read a ConfigurationItem with a specific id.

Parameters:
id - The id of the ConfigurationItem to read.
Returns:
The read ConfigurationItem

search

<T extends ConfigurationItem> java.util.List<T> search(Type type)
Search for all ConfigurationItems of the specified Type.

Parameters:
type - The Type of the ConfigurationItems to search for.
Returns:
A List of ConfigurationItems of the Type passed in.

search

<T extends ConfigurationItem> java.util.List<T> search(Type type,
                                                       java.lang.String parent)
Search for all ConfigurationItems of the specified Type under a parent node

Parameters:
type - The Type of the ConfigurationItems to search for.
parent - The id of the parent node under which to search.
Returns:
A List of ConfigurationItems of the Type which are located under the parent node.