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
 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)
           
 boolean exists(java.lang.String id)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
java.util.List<T>
getVersionHistory(java.lang.String id)
           
 java.util.List<ConfigurationItemData> 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>
void
move(T entity, java.lang.String newId)
           
<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)
           
 void rename(java.lang.String id, java.lang.String newName)
           
<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

exists

public boolean exists(java.lang.String id)
Specified by:
exists 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

create

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

update

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

move

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void move(T entity,
                                                                                     java.lang.String newId)
Specified by:
move in interface RepositoryService

rename

public void rename(java.lang.String id,
                   java.lang.String newName)
Specified by:
rename 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<ConfigurationItemData> 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

getVersionHistory

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