org.pentaho.di.repository.kdr.delegates
Class KettleDatabaseRepositoryDirectoryDelegate

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

public class KettleDatabaseRepositoryDirectoryDelegate
extends KettleDatabaseRepositoryBaseDelegate


Constructor Summary
KettleDatabaseRepositoryDirectoryDelegate(KettleDatabaseRepository repository)
           
 
Method Summary
 org.pentaho.di.repository.RepositoryDirectoryInterface createRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface parentDirectory, String directoryPath)
          Create a new directory, possibly by creating several sub-directies of / at the same time.
 void deleteDirectory(org.pentaho.di.repository.ObjectId id_directory)
           
 void deleteDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir)
           
 void delRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir, boolean deleteNonEmptyFolder)
           
 org.pentaho.di.core.RowMetaAndData getDirectory(org.pentaho.di.repository.ObjectId id_directory)
           
 int getNrSubDirectories(org.pentaho.di.repository.ObjectId id_directory)
           
 org.pentaho.di.repository.ObjectId[] getSubDirectoryIDs(org.pentaho.di.repository.ObjectId id_directory)
           
 org.pentaho.di.repository.RepositoryDirectoryInterface loadPathToRoot(org.pentaho.di.repository.ObjectId id_directory)
           
 void loadRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory repositoryDirectory, org.pentaho.di.repository.ObjectId id_directory)
           
 org.pentaho.di.repository.RepositoryDirectoryInterface loadRepositoryDirectoryTree(org.pentaho.di.repository.RepositoryDirectoryInterface root)
           
 void renameDirectory(org.pentaho.di.repository.ObjectId id_directory, org.pentaho.di.repository.ObjectId id_directory_parent, String newName)
          Move / rename a directory in the repository
 org.pentaho.di.repository.ObjectId renameRepositoryDirectory(org.pentaho.di.repository.ObjectId id, org.pentaho.di.repository.RepositoryDirectoryInterface newParentDir, String newName)
           
 org.pentaho.di.repository.ObjectId renameRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory dir)
          Deprecated. 
 void saveRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir)
           
 
Methods inherited from class org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
quote, quoteTable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KettleDatabaseRepositoryDirectoryDelegate

public KettleDatabaseRepositoryDirectoryDelegate(KettleDatabaseRepository repository)
Method Detail

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

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