Class InMemoryRepository

java.lang.Object
com.xebialabs.deployit.test.repository.InMemoryRepository
All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository, com.xebialabs.deployit.plugin.api.services.Repository

public class InMemoryRepository extends Object implements com.xebialabs.deployit.plugin.api.services.Repository
  • Field Details

  • Constructor Details

    • InMemoryRepository

      public InMemoryRepository()
  • Method Details

    • initializeWithFakeRootFolders

      public void initializeWithFakeRootFolders()
    • exists

      public boolean exists(String id)
      Specified by:
      exists in interface com.xebialabs.deployit.plugin.api.services.Repository
    • read

      public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> T read(String id)
      Specified by:
      read in interface com.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository
      Specified by:
      read in interface com.xebialabs.deployit.plugin.api.services.Repository
    • read

      public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> List<T> read(List<String> ids, Integer depth)
      Specified by:
      read in interface com.xebialabs.deployit.plugin.api.services.Repository
    • create

      @SafeVarargs public final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void create(T... entities)
      Specified by:
      create in interface com.xebialabs.deployit.plugin.api.services.Repository
    • update

      @SafeVarargs public final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void update(T... entities)
      Specified by:
      update in interface com.xebialabs.deployit.plugin.api.services.Repository
    • createOrUpdate

      @SafeVarargs public final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> void createOrUpdate(T... entities)
      Specified by:
      createOrUpdate in interface com.xebialabs.deployit.plugin.api.services.Repository
    • delete

      public void delete(String... ids)
      Specified by:
      delete in interface com.xebialabs.deployit.plugin.api.services.Repository
    • move

      public void move(String id, String newId)
      Specified by:
      move in interface com.xebialabs.deployit.plugin.api.services.Repository
    • rename

      public void rename(String id, String newName)
      Specified by:
      rename in interface com.xebialabs.deployit.plugin.api.services.Repository
    • search

      public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> List<T> search(com.xebialabs.deployit.plugin.api.reflect.Type type)
      Specified by:
      search in interface com.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository
      Specified by:
      search in interface com.xebialabs.deployit.plugin.api.services.Repository
    • search

      public <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> List<T> search(com.xebialabs.deployit.plugin.api.reflect.Type type, String parent)
      Specified by:
      search in interface com.xebialabs.deployit.plugin.api.deployment.planning.ReadOnlyRepository
      Specified by:
      search in interface com.xebialabs.deployit.plugin.api.services.Repository
    • clear

      public void clear()