/** * @return true if the report subject is a transformation. */ public boolean isTransformation() { if ( objectType.equals( RepositoryObjectType.TRANSFORMATION ) ) { return true; } return false; }
/** * Validates if {@code engineMetaInterface} is Job or Transformation. * * @param engineMetaInterface * @return true if engineMetaInterface instance is Job or Transformation, otherwise false. */ public static boolean isJobOrTransformation( EngineMetaInterface engineMetaInterface ) { if ( engineMetaInterface == null || engineMetaInterface.getRepositoryElementType() == null ) { return false; } RepositoryObjectType objectType = engineMetaInterface.getRepositoryElementType(); return RepositoryObjectType.TRANSFORMATION.equals( objectType ) || RepositoryObjectType.JOB.equals( objectType ); }
public boolean canExport( RepositoryFile file ) throws KettleException { return RepositoryObjectType.JOB.equals( repository.getObjectType( file.getName() ) ); }
public boolean canExport( RepositoryFile file ) throws KettleException { return RepositoryObjectType.TRANSFORMATION.equals( repository.getObjectType( file.getName() ) ); }
private static void getAllTransformations( RepositoryDirectoryInterface repositoryObject, List<RepositoryElementMetaInterface> objectsTransformations ) throws KettleException { //test if has sub-directories if ( repositoryObject.getChildren() != null && repositoryObject.getChildren().size() > 0 ) { for ( RepositoryDirectoryInterface subDirectory : repositoryObject.getChildren() ) { getAllTransformations( subDirectory, objectsTransformations ); } } //getting all the transformations repositoryObject.getRepositoryObjects().stream() .filter( e -> RepositoryObjectType.TRANSFORMATION.equals( e.getObjectType() ) ) .forEach( objectsTransformations::add ); }
try { String idField; if ( RepositoryObjectType.TRANSFORMATION.equals( objectType ) ) { idField = KettleDatabaseRepository.FIELD_TRANSFORMATION_ID_TRANSFORMATION; } else {
if ( child.getObjectType().equals( RepositoryObjectType.TRANSFORMATION ) ) { try { kidElementCache.add( UIObjectRegistry.getInstance().constructUITransformation( child, this, rep ) ); kidElementCache.add( new UITransformation( child, this, rep ) ); } else if ( child.getObjectType().equals( RepositoryObjectType.JOB ) ) { try { kidElementCache.add( UIObjectRegistry.getInstance().constructUIJob( child, this, rep ) );
public void loadObjectFromRepository( String objName, RepositoryObjectType objectType, RepositoryDirectoryInterface repDir, String versionLabel ) throws Exception { if ( objectType.equals( RepositoryObjectType.TRANSFORMATION ) ) { try { TransLoadProgressDialog progressDialog = } else if ( objectType.equals( RepositoryObjectType.JOB ) ) {
public void loadObjectFromRepository( ObjectId objectId, RepositoryObjectType objectType, String revision ) throws Exception { if ( objectType.equals( RepositoryObjectType.TRANSFORMATION ) ) { try { TransLoadProgressDialog progressDialog = new TransLoadProgressDialog( shell, rep, objectId, revision ); } else if ( objectType.equals( RepositoryObjectType.JOB ) ) { try { JobLoadProgressDialog progressDialog = new JobLoadProgressDialog( shell, rep, objectId, revision );