Class KettleDatabaseRepositoryDirectoryDelegate
java.lang.Object
org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryDirectoryDelegate
-
Field Summary
Fields inherited from class org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryBaseDelegate
log, repository
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.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 repositoryorg.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
-
Constructor Details
-
KettleDatabaseRepositoryDirectoryDelegate
-
-
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/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.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:
org.pentaho.di.core.exception.KettleException
- In case something goes wrong
-
renameRepositoryDirectory(ObjectId, RepositoryDirectoryInterface, String)