本文整理了Java中org.pentaho.di.repository.Repository.getJobObjects
方法的一些代码示例,展示了Repository.getJobObjects
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getJobObjects
方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:getJobObjects
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override
public List<RepositoryElementMetaInterface> getJobObjects( ObjectId objectId, boolean b ) throws KettleException {
return getDelegate().getJobObjects( objectId, b );
}
代码示例来源:origin: pentaho/pentaho-kettle
private List<RepositoryElementMetaInterface> getRepositoryObjects( Repository repository,
RepositoryDirectoryInterface directory, boolean subdirs, String nameMask, String excludeNameMask )
throws KettleException {
List<RepositoryElementMetaInterface> list = new ArrayList<RepositoryElementMetaInterface>();
List<RepositoryElementMetaInterface> objects = new ArrayList<RepositoryElementMetaInterface>();
if ( meta.getObjectTypeSelection().areTransformationsSelected() ) {
objects.addAll( repository.getTransformationObjects( directory.getObjectId(), false ) );
}
if ( meta.getObjectTypeSelection().areJobsSelected() ) {
objects.addAll( repository.getJobObjects( directory.getObjectId(), false ) );
}
for ( RepositoryElementMetaInterface object : objects ) {
boolean add = false;
if ( Utils.isEmpty( nameMask ) || object.getName().matches( nameMask ) ) {
add = true;
}
if ( !Utils.isEmpty( excludeNameMask ) && object.getName().matches( excludeNameMask ) ) {
add = false;
}
if ( add ) {
list.add( object );
}
}
if ( subdirs ) {
for ( RepositoryDirectoryInterface child : directory.getChildren() ) {
list.addAll( getRepositoryObjects( repository, child, subdirs, nameMask, excludeNameMask ) );
}
}
return list;
}
内容来源于网络,如有侵权,请联系作者删除!