com.xebialabs.deployit.repository
Class JcrRepositoryService

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

@Component
public class JcrRepositoryService
extends java.lang.Object
implements RepositoryService


Constructor Summary
JcrRepositoryService(JcrTemplate jcrTemplate)
           
 
Method Summary
 void checkReferentialIntegrity(ChangeSet changeset)
           
<T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
void
create(T... entities)
           
 void delete(java.lang.String... ids)
           
 void execute(ChangeSet changeset)
           
 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 parameters)
           
<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... cis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcrRepositoryService

@Autowired
public JcrRepositoryService(JcrTemplate jcrTemplate)
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

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

update

public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void update(T... cis)
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 changeset)
Specified by:
execute in interface RepositoryService

checkReferentialIntegrity

public void checkReferentialIntegrity(ChangeSet changeset)
                               throws ItemInUseException,
                                      ItemAlreadyExistsException
Specified by:
checkReferentialIntegrity in interface RepositoryService
Throws:
ItemInUseException
ItemAlreadyExistsException

list

public java.util.List<ConfigurationItemData> list(SearchParameters parameters)
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

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