public interface Repository extends ReadOnlyRepository
| Modifier and Type | Method and Description |
|---|---|
<T extends ConfigurationItem> |
create(T... entity) |
<T extends ConfigurationItem> |
createOrUpdate(T... entity) |
void |
delete(java.lang.String... id) |
boolean |
exists(java.lang.String id) |
void |
move(java.lang.String id,
java.lang.String newId) |
<T extends ConfigurationItem> |
read(java.util.List<java.lang.String> ids,
java.lang.Integer depth) |
<T extends ConfigurationItem> |
read(java.lang.String id)
Returns an item by given id.
|
void |
rename(java.lang.String id,
java.lang.String newName) |
<T extends ConfigurationItem> |
search(Type type)
Search for all
ConfigurationItems of the specified Type. |
<T extends ConfigurationItem> |
search(Type type,
java.lang.String parent)
Search for all
ConfigurationItems of the specified Type under a parent node |
<T extends ConfigurationItem> |
update(T... entity) |
boolean exists(java.lang.String id)
<T extends ConfigurationItem> T read(java.lang.String id)
RuntimeException when there is no such item in repository.read in interface ReadOnlyRepositoryid - The id of the ConfigurationItem to read.ConfigurationItem<T extends ConfigurationItem> java.util.List<T> read(java.util.List<java.lang.String> ids, java.lang.Integer depth)
<T extends ConfigurationItem> void create(T... entity)
<T extends ConfigurationItem> void update(T... entity)
<T extends ConfigurationItem> void createOrUpdate(T... entity)
void delete(java.lang.String... id)
void move(java.lang.String id,
java.lang.String newId)
void rename(java.lang.String id,
java.lang.String newName)
<T extends ConfigurationItem> java.util.List<T> search(Type type)
ConfigurationItems of the specified Type.search in interface ReadOnlyRepositorytype - The Type of the ConfigurationItems to search for.List of ConfigurationItems of the Type passed in.<T extends ConfigurationItem> java.util.List<T> search(Type type, java.lang.String parent)
ConfigurationItems of the specified Type under a parent nodesearch in interface ReadOnlyRepositorytype - The Type of the ConfigurationItems to search for.parent - The id of the parent node under which to search.List of ConfigurationItems of the Type which are located under the parent node.