Java Code Examples for org.pentaho.di.repository.Repository#getTransformationID()
The following examples show how to use
org.pentaho.di.repository.Repository#getTransformationID() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RunTransServlet.java From pentaho-kettle with Apache License 2.0 | 5 votes |
private TransMeta loadTrans( Repository repository, String transformationName ) throws KettleException { if ( repository == null ) { throw new KettleException( "Repository required." ); } else { synchronized ( repository ) { // With a repository we need to load it from /foo/bar/Transformation // We need to extract the folder name from the path in front of the // name... // String directoryPath; String name; int lastSlash = transformationName.lastIndexOf( RepositoryDirectory.DIRECTORY_SEPARATOR ); if ( lastSlash < 0 ) { directoryPath = "/"; name = transformationName; } else { directoryPath = transformationName.substring( 0, lastSlash ); name = transformationName.substring( lastSlash + 1 ); } RepositoryDirectoryInterface directory = repository.loadRepositoryDirectoryTree().findDirectory( directoryPath ); ObjectId transformationId = repository.getTransformationID( name, directory ); TransMeta transMeta = repository.loadTransformation( transformationId, null ); return transMeta; } } }
Example 2
Source File: JobEntryTrans.java From pentaho-kettle with Apache License 2.0 | 5 votes |
/** * Look up the references after import * * @param repository the repository to reference. */ @Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directory ); transObjectId = repository.getTransformationID( transname, repositoryDirectoryInterface ); }
Example 3
Source File: MappingMeta.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
Example 4
Source File: TransExecutorMeta.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
Example 5
Source File: SingleThreaderMeta.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
Example 6
Source File: JobExecutorMeta.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); jobObjectId = repository.getTransformationID( jobName, repositoryDirectoryInterface ); }
Example 7
Source File: SimpleMappingMeta.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }