本文整理了Java中org.pentaho.di.repository.Repository.deleteRepositoryDirectory
方法的一些代码示例,展示了Repository.deleteRepositoryDirectory
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.deleteRepositoryDirectory
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:deleteRepositoryDirectory
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public void deleteRepositoryDirectory( RepositoryDirectoryInterface repositoryDirectoryInterface ) throws KettleException {
getDelegate().deleteRepositoryDirectory( repositoryDirectoryInterface );
}
代码示例来源:origin: pentaho/pentaho-kettle
public void delDirectory( TreeItem ti, RepositoryDirectoryInterface repdir ) {
try {
rep.deleteRepositoryDirectory( repdir );
refreshTree();
} catch ( KettleException e ) {
new ErrorDialog( shell,
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Directory.Delete.ErrorRemoving.Title" ),
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Directory.Delete.ErrorRemoving.Message1" ), e );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent e ) {
if ( !readOnly ) {
TreeItem ti = wTree.getSelection()[ 0 ];
String[] str = ConstUI.getTreeStrings( ti );
RepositoryDirectoryInterface dir = repositoryTree.findDirectory( str );
if ( dir != null ) {
try {
rep.deleteRepositoryDirectory( dir );
ti.dispose();
} catch ( KettleException exception ) {
new ErrorDialog( shell,
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Directory.Delete.ErrorRemoving.Title" ),
BaseMessages.getString( PKG, "RepositoryExplorerDialog.Directory.Delete.ErrorRemoving.Message1" ),
exception );
}
}
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void delete() throws Exception {
if ( uiParent.checkDirNameExistsInRepo( getName() ) != null ) {
rep.deleteRepositoryDirectory( getDirectory() );
}
uiParent.getChildren().remove( this );
if ( uiParent.getRepositoryObjects().contains( this ) ) {
uiParent.getRepositoryObjects().remove( this );
}
uiParent.refresh();
}
代码示例来源:origin: pentaho/pentaho-kettle
public void delete( boolean deleteHomeDirectories ) throws Exception {
if ( rep instanceof RepositoryExtended ) {
( (RepositoryExtended) rep ).deleteRepositoryDirectory( getDirectory(), deleteHomeDirectories );
} else {
rep.deleteRepositoryDirectory( getDirectory() );
}
if ( getParent().getChildren().contains( this ) ) {
getParent().getChildren().remove( this );
}
if ( getParent().getRepositoryObjects().contains( this ) ) {
getParent().getRepositoryObjects().remove( this );
}
getParent().refresh();
}
代码示例来源:origin: pentaho/pentaho-kettle
( (RepositoryExtended) getRepository() ).deleteRepositoryDirectory( repositoryDirectoryInterface, true );
} else {
getRepository().deleteRepositoryDirectory( repositoryDirectoryInterface );
内容来源于网络,如有侵权,请联系作者删除!