com.xebialabs.deployit.repository
Class InMemoryRepositoryService

java.lang.Object
  extended by com.xebialabs.deployit.repository.InMemoryRepositoryService
All Implemented Interfaces:
RepositoryService

public class InMemoryRepositoryService
extends java.lang.Object
implements RepositoryService

FIXME: Can we get rid of this class? Or move it to a test.support package?


Constructor Summary
InMemoryRepositoryService()
           
 
Method Summary
 boolean checkNodeExists(java.lang.String id)
           
 void checkReferentialIntegrity(ChangeSet batchUpdate)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
void
create(T... entities)
           
 void delete(java.lang.String... ids)
           
 void execute(ChangeSet batchUpdate)
           
 java.util.List<java.lang.String> list(SearchParameters criteria)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
java.util.List<T>
listEntities(SearchParameters parameters)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
T
read(java.lang.String id)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
T
read(java.lang.String id, WorkDir workDir)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
void
update(T... entities)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryRepositoryService

public InMemoryRepositoryService()
Method Detail

create

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void create(T... entities)
Specified by:
create in interface RepositoryService

read

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> T read(java.lang.String id)
Specified by:
read in interface RepositoryService

read

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> T read(java.lang.String id,
                                                                                  WorkDir workDir)
Specified by:
read in interface RepositoryService

update

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void update(T... entities)
Specified by:
update in interface RepositoryService

delete

public void delete(java.lang.String... ids)
Specified by:
delete in interface RepositoryService

execute

public void execute(ChangeSet batchUpdate)
Specified by:
execute in interface RepositoryService

list

public java.util.List<java.lang.String> list(SearchParameters criteria)
Specified by:
list in interface RepositoryService

listEntities

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> java.util.List<T> listEntities(SearchParameters parameters)
Specified by:
listEntities in interface RepositoryService

checkReferentialIntegrity

public void checkReferentialIntegrity(ChangeSet batchUpdate)
                               throws ItemInUseException
Specified by:
checkReferentialIntegrity in interface RepositoryService
Throws:
ItemInUseException

checkNodeExists

public boolean checkNodeExists(java.lang.String id)
Specified by:
checkNodeExists in interface RepositoryService