• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java UIObjectCreationException类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException的典型用法代码示例。如果您正苦于以下问题:Java UIObjectCreationException类的具体用法?Java UIObjectCreationException怎么用?Java UIObjectCreationException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

UIObjectCreationException类属于org.pentaho.di.ui.repository.repositoryexplorer.model包,在下文中一共展示了UIObjectCreationException类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: init

点赞 3

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
public void init(Repository repository) throws ControllerInitializationException {
  try {
    this.repository = repository;

    mainController = (MainController) this.getXulDomContainer().getEventHandler("mainController");
    try {
      this.repositoryDirectory = UIObjectRegistry.getInstance().constructUIRepositoryDirectory(
          repository.loadRepositoryDirectoryTree(), null, repository);
    } catch (UIObjectCreationException uoe) {
      this.repositoryDirectory = new UIRepositoryDirectory(repository.loadRepositoryDirectoryTree(), null, repository);
    }
    dirMap = new HashMap<ObjectId, UIRepositoryDirectory>();
    populateDirMap(repositoryDirectory);

    bf = new SwtBindingFactory();
    bf.setDocument(this.getXulDomContainer().getDocumentRoot());
    messageBox = (XulMessageBox) document.createElement("messagebox");//$NON-NLS-1$
    createBindings();
  } catch (Exception e) {
    throw new ControllerInitializationException(e);
  }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:23,
代码来源:BrowseController.java

示例2: createUISupport

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
public IRepositoryExplorerUISupport createUISupport(Class<? extends IRepositoryService> service) throws UIObjectCreationException {
  Class<? extends IRepositoryExplorerUISupport> supportClass = uiSupportMap.get(service);
  if(supportClass != null) {
    return contruct(supportClass);  
  } else {
    return null;
  }
  
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:10,
代码来源:UISupportRegistery.java

示例3: contruct

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
private IRepositoryExplorerUISupport contruct(Class<? extends IRepositoryExplorerUISupport> supportClass) throws UIObjectCreationException {
  try {
    return  (IRepositoryExplorerUISupport) supportClass.newInstance();
  } catch (Throwable th) {
    throw new UIObjectCreationException(th);
    
  }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:9,
代码来源:UISupportRegistery.java

示例4: createUISupport

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
public IRepositoryExplorerUISupport createUISupport( Class<? extends IRepositoryService> service ) throws UIObjectCreationException {
  Class<? extends IRepositoryExplorerUISupport> supportClass = uiSupportMap.get( service );
  if ( supportClass != null ) {
    return contruct( supportClass );
  } else {
    return null;
  }

}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:10,
代码来源:UISupportRegistery.java

示例5: contruct

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
private IRepositoryExplorerUISupport contruct( Class<? extends IRepositoryExplorerUISupport> supportClass ) throws UIObjectCreationException {
  try {
    return supportClass.newInstance();
  } catch ( Throwable th ) {
    throw new UIObjectCreationException( th );

  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:9,
代码来源:UISupportRegistery.java

示例6: init

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
@SuppressWarnings( "deprecation" )
public void init( Repository repository ) throws ControllerInitializationException {
  try {
    this.repository = repository;

    mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" );

    RepositoryDirectoryInterface root;
    try {
      if ( repository instanceof RepositoryExtended ) {
        root = ( (RepositoryExtended) repository ).loadRepositoryDirectoryTree(  "/", "*.ktr|*.kjb", -1,
                BooleanUtils.isTrue( repository.getUserInfo().isAdmin() ), true, true );
      } else {
        root = repository.loadRepositoryDirectoryTree();
      }
      this.repositoryDirectory =
          UIObjectRegistry.getInstance().constructUIRepositoryDirectory( root,
              null, repository );
    } catch ( UIObjectCreationException uoe ) {
      this.repositoryDirectory =
          new UIRepositoryDirectory( repository.loadRepositoryDirectoryTree(), null, repository );
    }
    dirMap = new HashMap<ObjectId, UIRepositoryDirectory>();
    populateDirMap( repositoryDirectory );

    bf = new SwtBindingFactory();
    bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
    messageBox = (XulMessageBox) document.createElement( "messagebox" );
    createBindings();
  } catch ( Exception e ) {
    throw new ControllerInitializationException( e );
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:34,
代码来源:BrowseController.java

示例7: convertToUIRoleModel

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
private List<IUIRole> convertToUIRoleModel( List<IRole> roles ) throws UIObjectCreationException {
  List<IUIRole> rroles = new ArrayList<IUIRole>();
  for ( IRole role : roles ) {
    rroles.add( UIEEObjectRegistery.getInstance().constructUIRepositoryRole( role ) );
  }
  return rroles;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:8,
代码来源:EESecurityController.java

示例8: convertToUIUserModel

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
private List<IUIUser> convertToUIUserModel( List<IUser> users ) throws UIObjectCreationException {
  List<IUIUser> rusers = new ArrayList<IUIUser>();
  for ( IUser user : users ) {
    rusers.add( UIObjectRegistry.getInstance().constructUIRepositoryUser( user ) );
  }
  return rusers;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:8,
代码来源:EESecurityController.java

示例9: getRoles

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
public Set<IUIRole> getRoles() {
  Set<IUIRole> rroles = new HashSet<IUIRole>();
  for ( IRole role : eeUser.getRoles() ) {
    try {
      rroles.add( UIEEObjectRegistery.getInstance().constructUIRepositoryRole( role ) );
    } catch ( UIObjectCreationException uex ) {

    }
  }
  return rroles;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:12,
代码来源:UIEERepositoryUser.java

示例10: getUsers

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
public Set<IUIUser> getUsers() {
  Set<IUIUser> rusers = new HashSet<IUIUser>();
  for ( IUser userInfo : rri.getUsers() ) {
    try {
      rusers.add( UIObjectRegistry.getInstance().constructUIRepositoryUser( userInfo ) );
    } catch ( UIObjectCreationException e ) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
  return rusers;
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:13,
代码来源:UIRepositoryRole.java

示例11: constructUIRepositoryRole

点赞 2

import org.pentaho.di.ui.repository.repositoryexplorer.model.UIObjectCreationException; //导入依赖的package包/类
public IUIRole constructUIRepositoryRole( IRole role ) throws UIObjectCreationException {
  try {
    if ( repositoryRoleClass == null ) {
      repositoryRoleClass = DEFAULT_UIREPOSITORYROLE_CLASS;
    }
    Constructor<?> constructor = repositoryRoleClass.getConstructor( IRole.class );
    if ( constructor != null ) {
      return (IUIRole) constructor.newInstance( role );
    } else {
      throw new UIObjectCreationException( "Unable to get the constructor for " + repositoryRoleClass );
    }
  } catch ( Exception e ) {
    throw new UIObjectCreationException( "Unable to instantiate object for " + repositoryRoleClass );
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:16,
代码来源:UIEEObjectRegistery.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)