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.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
ConfigurationItem s of the specified Type . |
<T extends ConfigurationItem> |
search(Type type,
java.lang.String parent)
Search for all
ConfigurationItem s 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 ReadOnlyRepository
id
- The id of the ConfigurationItem
to read.ConfigurationItem
<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)
ConfigurationItem
s of the specified Type
.search
in interface ReadOnlyRepository
type
- The Type
of the ConfigurationItem
s to search for.List
of ConfigurationItem
s of the Type
passed in.<T extends ConfigurationItem> java.util.List<T> search(Type type, java.lang.String parent)
ConfigurationItem
s of the specified Type
under a parent nodesearch
in interface ReadOnlyRepository
type
- The Type
of the ConfigurationItem
s to search for.parent
- The id of the parent node under which to search.List
of ConfigurationItem
s of the Type
which are located under the parent node.