Search in sources :

Example 6 with RepositoryDirectory

use of org.pentaho.repo.model.RepositoryDirectory in project pentaho-kettle by pentaho.

the class RepositoryBrowserController method loadFilesAndFolders.

public RepositoryDirectory loadFilesAndFolders(String path) {
    RepositoryDirectoryInterface repositoryDirectoryInterface = findDirectory(path);
    RepositoryDirectory repositoryDirectory = RepositoryDirectory.build(null, repositoryDirectoryInterface);
    populateFolders(repositoryDirectory, repositoryDirectoryInterface);
    try {
        populateFiles(repositoryDirectory, repositoryDirectoryInterface, FILTER);
    } catch (KettleException ke) {
        ke.printStackTrace();
    }
    return repositoryDirectory;
}
Also used : RepositoryDirectoryInterface(org.pentaho.di.repository.RepositoryDirectoryInterface) KettleException(org.pentaho.di.core.exception.KettleException) RepositoryDirectory(org.pentaho.repo.model.RepositoryDirectory)

Aggregations

RepositoryDirectory (org.pentaho.repo.model.RepositoryDirectory)6 RepositoryDirectoryInterface (org.pentaho.di.repository.RepositoryDirectoryInterface)5 KettleException (org.pentaho.di.core.exception.KettleException)4 KettleJobException (org.pentaho.di.core.exception.KettleJobException)2 KettleObjectExistsException (org.pentaho.di.core.exception.KettleObjectExistsException)2 KettleTransException (org.pentaho.di.core.exception.KettleTransException)2 RepositoryExtended (org.pentaho.di.repository.RepositoryExtended)2 ArrayList (java.util.ArrayList)1 RepositoryObject (org.pentaho.di.repository.RepositoryObject)1 RepositoryObjectInterface (org.pentaho.di.repository.RepositoryObjectInterface)1 RepositoryFile (org.pentaho.repo.model.RepositoryFile)1 RepositoryTree (org.pentaho.repo.model.RepositoryTree)1