org.pentaho.di.repository.Repository.deleteRepositoryDirectory()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.pentaho.di.repository.Repository.deleteRepositoryDirectory方法的一些代码示例,展示了Repository.deleteRepositoryDirectory的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.deleteRepositoryDirectory方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:deleteRepositoryDirectory

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 );

相关文章

Repository类方法