org.pentaho.di.repository.kdr.delegates
Class KettleDatabaseRepositoryDirectoryDelegate
java.lang.Object
  
org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
      
org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryDirectoryDelegate
public class KettleDatabaseRepositoryDirectoryDelegate
- extends KettleDatabaseRepositoryBaseDelegate
 
 
 
 
 
KettleDatabaseRepositoryDirectoryDelegate
public KettleDatabaseRepositoryDirectoryDelegate(KettleDatabaseRepository repository)
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/renamedid_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 directorydirectoryPath - The path to the new Repository Directory, to be created.
- Returns:
 - The created sub-directory
 - Throws:
 KettleException - In case something goes wrong