Class KettleDatabaseRepositoryDirectoryDelegate

java.lang.Object
org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryDirectoryDelegate

public class KettleDatabaseRepositoryDirectoryDelegate extends KettleDatabaseRepositoryBaseDelegate
  • Constructor Details

    • KettleDatabaseRepositoryDirectoryDelegate

      public KettleDatabaseRepositoryDirectoryDelegate(KettleDatabaseRepository repository)
  • Method Details

    • getDirectory

      public org.pentaho.di.core.RowMetaAndData getDirectory(org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • loadPathToRoot

      public org.pentaho.di.repository.RepositoryDirectoryInterface loadPathToRoot(org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • loadRepositoryDirectoryTree

      public org.pentaho.di.repository.RepositoryDirectoryInterface loadRepositoryDirectoryTree(org.pentaho.di.repository.RepositoryDirectoryInterface root) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • loadRepositoryDirectory

      public void loadRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory repositoryDirectory, org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • deleteDirectory

      public void deleteDirectory(org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • deleteDirectory

      public void deleteDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • renameDirectory

      public void renameDirectory(org.pentaho.di.repository.ObjectId id_directory, org.pentaho.di.repository.ObjectId id_directory_parent, String newName) throws org.pentaho.di.core.exception.KettleException
      Move / rename a directory in the repository
      Parameters:
      id_directory - Id of the directory to be moved/renamed
      id_directory_parent - Id of the new parent directory (null if the parent does not change)
      newName - New name for this directory (null if the name does not change)
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getNrSubDirectories

      public int getNrSubDirectories(org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • getSubDirectoryIDs

      public org.pentaho.di.repository.ObjectId[] getSubDirectoryIDs(org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • saveRepositoryDirectory

      public void saveRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • delRepositoryDirectory

      public void delRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir, boolean deleteNonEmptyFolder) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • renameRepositoryDirectory

      @Deprecated public org.pentaho.di.repository.ObjectId renameRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory dir) throws org.pentaho.di.core.exception.KettleException
      Parameters:
      dir -
      Returns:
      Throws:
      org.pentaho.di.core.exception.KettleException
    • renameRepositoryDirectory

      public org.pentaho.di.repository.ObjectId renameRepositoryDirectory(org.pentaho.di.repository.ObjectId id, org.pentaho.di.repository.RepositoryDirectoryInterface newParentDir, String newName) throws org.pentaho.di.core.exception.KettleException
      Throws:
      org.pentaho.di.core.exception.KettleException
    • createRepositoryDirectory

      public org.pentaho.di.repository.RepositoryDirectoryInterface createRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface parentDirectory, String directoryPath) throws org.pentaho.di.core.exception.KettleException
      Create a new directory, possibly by creating several sub-directies of / at the same time.
      Parameters:
      parentDirectory - the parent directory
      directoryPath - The path to the new Repository Directory, to be created.
      Returns:
      The created sub-directory
      Throws:
      org.pentaho.di.core.exception.KettleException - In case something goes wrong