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 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

    Modifier and Type
    Method
    Description
    final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    void
    create(T... entity)
     
    final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    void
    createOrUpdate(T... entity)
     
    void
    delete(String... id)
     
    boolean
     
    void
    move(String id, String newId)
     
    <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    T
     
    <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    List<T>
    read(List<String> ids, Integer depth)
     
    void
    rename(String id, String newName)
     
    <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    List<T>
    search(com.xebialabs.deployit.plugin.api.reflect.Type type)
     
    <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    List<T>
    search(com.xebialabs.deployit.plugin.api.reflect.Type type, String parent)
     
    final <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
    void
    update(T... entity)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RepositoryAdapter

      public RepositoryAdapter(RepositoryService repositoryService, com.xebialabs.deployit.service.validation.Validator validator, ExternalPropertiesResolver externalPropertiesResolver, com.xebialabs.deployit.repository.WorkDir workDir)
  • Method Details

    • 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... entity)
      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... entity)
      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... entity)
      Specified by:
      createOrUpdate in interface com.xebialabs.deployit.plugin.api.services.Repository
    • delete

      public void delete(String... id)
      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