Class RepositoryAdapter
- java.lang.Object
-
- com.xebialabs.deployit.repository.RepositoryAdapter
-
- All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository,com.xebialabs.deployit.plugin.api.services.Repository
public class RepositoryAdapter extends java.lang.Object implements com.xebialabs.deployit.plugin.api.services.Repository
-
-
Constructor Summary
Constructors Constructor Description RepositoryAdapter(RepositoryService repositoryService, com.xebialabs.deployit.service.validation.Validator validator, ExternalPropertiesResolver externalPropertiesResolver, com.xebialabs.deployit.repository.WorkDir workDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
voidcreate(T... entity)<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
voidcreateOrUpdate(T... entity)voiddelete(java.lang.String... id)booleanexists(java.lang.String id)voidmove(java.lang.String id, java.lang.String newId)<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
Tread(java.lang.String id)<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
java.util.List<T>read(java.util.List<java.lang.String> ids, java.lang.Integer depth)voidrename(java.lang.String id, java.lang.String newName)<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
java.util.List<T>search(com.xebialabs.deployit.plugin.api.reflect.Type type)<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
java.util.List<T>search(com.xebialabs.deployit.plugin.api.reflect.Type type, java.lang.String parent)<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
voidupdate(T... entity)
-
-
-
Constructor Detail
-
RepositoryAdapter
public RepositoryAdapter(RepositoryService repositoryService, com.xebialabs.deployit.service.validation.Validator validator, ExternalPropertiesResolver externalPropertiesResolver, com.xebialabs.deployit.repository.WorkDir workDir)
-
-
Method Detail
-
exists
public boolean exists(java.lang.String id)
- Specified by:
existsin interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
read
public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> T read(java.lang.String id)
- Specified by:
readin interfacecom.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository- Specified by:
readin interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
read
public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> java.util.List<T> read(java.util.List<java.lang.String> ids, java.lang.Integer depth)- Specified by:
readin interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
create
@SafeVarargs public final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void create(T... entity)
- Specified by:
createin interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
update
@SafeVarargs public final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void update(T... entity)
- Specified by:
updatein interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
createOrUpdate
@SafeVarargs public final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void createOrUpdate(T... entity)
- Specified by:
createOrUpdatein interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
delete
public void delete(java.lang.String... id)
- Specified by:
deletein interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
move
public void move(java.lang.String id, java.lang.String newId)- Specified by:
movein interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
rename
public void rename(java.lang.String id, java.lang.String newName)- Specified by:
renamein interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
search
public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> java.util.List<T> search(com.xebialabs.deployit.plugin.api.reflect.Type type)
- Specified by:
searchin interfacecom.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository- Specified by:
searchin interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
search
public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> java.util.List<T> search(com.xebialabs.deployit.plugin.api.reflect.Type type, java.lang.String parent)- Specified by:
searchin interfacecom.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository- Specified by:
searchin interfacecom.xebialabs.deployit.plugin.api.services.Repository
-
-