Class KettleDatabaseRepositoryDirectoryDelegate
- java.lang.Object
-
- org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
-
- org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryDirectoryDelegate
-
public class KettleDatabaseRepositoryDirectoryDelegate extends KettleDatabaseRepositoryBaseDelegate
-
-
Field Summary
-
Fields inherited from class org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
log, repository
-
-
Constructor Summary
Constructors Constructor Description KettleDatabaseRepositoryDirectoryDelegate(KettleDatabaseRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.pentaho.di.repository.RepositoryDirectoryInterfacecreateRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface parentDirectory, String directoryPath)Create a new directory, possibly by creating several sub-directies of / at the same time.voiddeleteDirectory(org.pentaho.di.repository.ObjectId id_directory)voiddeleteDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir)voiddelRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir, boolean deleteNonEmptyFolder)org.pentaho.di.core.RowMetaAndDatagetDirectory(org.pentaho.di.repository.ObjectId id_directory)intgetNrSubDirectories(org.pentaho.di.repository.ObjectId id_directory)org.pentaho.di.repository.ObjectId[]getSubDirectoryIDs(org.pentaho.di.repository.ObjectId id_directory)org.pentaho.di.repository.RepositoryDirectoryInterfaceloadPathToRoot(org.pentaho.di.repository.ObjectId id_directory)voidloadRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory repositoryDirectory, org.pentaho.di.repository.ObjectId id_directory)org.pentaho.di.repository.RepositoryDirectoryInterfaceloadRepositoryDirectoryTree(org.pentaho.di.repository.RepositoryDirectoryInterface root)voidrenameDirectory(org.pentaho.di.repository.ObjectId id_directory, org.pentaho.di.repository.ObjectId id_directory_parent, String newName)Move / rename a directory in the repositoryorg.pentaho.di.repository.ObjectIdrenameRepositoryDirectory(org.pentaho.di.repository.ObjectId id, org.pentaho.di.repository.RepositoryDirectoryInterface newParentDir, String newName)org.pentaho.di.repository.ObjectIdrenameRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectory dir)voidsaveRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface dir)-
Methods inherited from class org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
quote, quoteTable
-
-
-
-
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.KettleExceptionMove / 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:
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.KettleExceptionCreate 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:
org.pentaho.di.core.exception.KettleException- In case something goes wrong
-
-