Interface Repository
-
- All Superinterfaces:
ReadOnlyRepository
public interface Repository extends ReadOnlyRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ConfigurationItem>
voidcreate(T... entity)
<T extends ConfigurationItem>
voidcreateOrUpdate(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>
Tread(java.lang.String id)
Returns an item by given id.<T extends ConfigurationItem>
java.util.List<T>read(java.util.List<java.lang.String> ids, java.lang.Integer depth)
void
rename(java.lang.String id, java.lang.String newName)
<T extends ConfigurationItem>
java.util.List<T>search(Type type)
Search for allConfigurationItem
s of the specifiedType
.<T extends ConfigurationItem>
java.util.List<T>search(Type type, java.lang.String parent)
Search for allConfigurationItem
s of the specifiedType
under a parent node<T extends ConfigurationItem>
voidupdate(T... entity)
-
-
-
Method Detail
-
exists
boolean exists(java.lang.String id)
-
read
<T extends ConfigurationItem> T read(java.lang.String id)
Returns an item by given id. Throws aRuntimeException
when there is no such item in repository.- Specified by:
read
in interfaceReadOnlyRepository
- Parameters:
id
- The id of theConfigurationItem
to read.- Returns:
- The read
ConfigurationItem
-
read
<T extends ConfigurationItem> java.util.List<T> read(java.util.List<java.lang.String> ids, java.lang.Integer depth)
-
create
<T extends ConfigurationItem> void create(T... entity)
-
update
<T extends ConfigurationItem> void update(T... entity)
-
createOrUpdate
<T extends ConfigurationItem> void createOrUpdate(T... entity)
-
delete
void delete(java.lang.String... id)
-
move
void move(java.lang.String id, java.lang.String newId)
-
rename
void rename(java.lang.String id, java.lang.String newName)
-
search
<T extends ConfigurationItem> java.util.List<T> search(Type type)
Search for allConfigurationItem
s of the specifiedType
.- Specified by:
search
in interfaceReadOnlyRepository
- Parameters:
type
- TheType
of theConfigurationItem
s to search for.- Returns:
- A
List
ofConfigurationItem
s of theType
passed in.
-
search
<T extends ConfigurationItem> java.util.List<T> search(Type type, java.lang.String parent)
Search for allConfigurationItem
s of the specifiedType
under a parent node- Specified by:
search
in interfaceReadOnlyRepository
- Parameters:
type
- TheType
of theConfigurationItem
s to search for.parent
- The id of the parent node under which to search.- Returns:
- A
List
ofConfigurationItem
s of theType
which are located under the parent node.
-
-