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
 RepositoryDirectoryInterface createRepositoryDirectory(RepositoryDirectoryInterface parentDirectory, String directoryPath)
          Create a new directory, possibly by creating several sub-directies of / at the same time.
 void deleteDirectory(ObjectId id_directory)
           
 void deleteDirectory(RepositoryDirectoryInterface dir)
           
 void delRepositoryDirectory(RepositoryDirectoryInterface dir, boolean deleteNonEmptyFolder)
           
 RowMetaAndData getDirectory(ObjectId id_directory)
           
 int getNrSubDirectories(ObjectId id_directory)
           
 ObjectId[] getSubDirectoryIDs(ObjectId id_directory)
           
 RepositoryDirectoryInterface loadPathToRoot(ObjectId id_directory)
           
 void loadRepositoryDirectory(RepositoryDirectory repositoryDirectory, ObjectId id_directory)
           
 RepositoryDirectoryInterface loadRepositoryDirectoryTree(RepositoryDirectoryInterface root)
           
 void renameDirectory(ObjectId id_directory, ObjectId id_directory_parent, String newName)
          Move / rename a directory in the repository
 ObjectId renameRepositoryDirectory(ObjectId id, RepositoryDirectoryInterface newParentDir, String newName)
           
 ObjectId renameRepositoryDirectory(RepositoryDirectory dir)
          Deprecated. 
 void saveRepositoryDirectory(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 RowMetaAndData getDirectory(ObjectId id_directory)
                            throws KettleException
Throws:
KettleException

loadPathToRoot

public RepositoryDirectoryInterface loadPathToRoot(ObjectId id_directory)
                                            throws KettleException
Throws:
KettleException

loadRepositoryDirectoryTree

public RepositoryDirectoryInterface loadRepositoryDirectoryTree(RepositoryDirectoryInterface root)
                                                         throws KettleException
Throws:
KettleException

loadRepositoryDirectory

public void loadRepositoryDirectory(RepositoryDirectory repositoryDirectory,
                                    ObjectId id_directory)
                             throws KettleException
Throws:
KettleException

deleteDirectory

public void deleteDirectory(ObjectId id_directory)
                     throws KettleException
Throws:
KettleException

deleteDirectory

public void deleteDirectory(RepositoryDirectoryInterface dir)
                     throws KettleException
Throws:
KettleException

renameDirectory

public void renameDirectory(ObjectId id_directory,
                            ObjectId id_directory_parent,
                            String newName)
                     throws 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:
KettleException

getNrSubDirectories

public int getNrSubDirectories(ObjectId id_directory)
                        throws KettleException
Throws:
KettleException

getSubDirectoryIDs

public ObjectId[] getSubDirectoryIDs(ObjectId id_directory)
                              throws KettleException
Throws:
KettleException

saveRepositoryDirectory

public void saveRepositoryDirectory(RepositoryDirectoryInterface dir)
                             throws KettleException
Throws:
KettleException

delRepositoryDirectory

public void delRepositoryDirectory(RepositoryDirectoryInterface dir,
                                   boolean deleteNonEmptyFolder)
                            throws KettleException
Throws:
KettleException

renameRepositoryDirectory

@Deprecated
public ObjectId renameRepositoryDirectory(RepositoryDirectory dir)
                                   throws KettleException
Deprecated. 

Throws:
KettleException

renameRepositoryDirectory

public ObjectId renameRepositoryDirectory(ObjectId id,
                                          RepositoryDirectoryInterface newParentDir,
                                          String newName)
                                   throws KettleException
Throws:
KettleException

createRepositoryDirectory

public RepositoryDirectoryInterface createRepositoryDirectory(RepositoryDirectoryInterface parentDirectory,
                                                              String directoryPath)
                                                       throws 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:
KettleException - In case something goes wrong