use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryFTPSGet method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (!Utils.isEmpty(serverName)) {
String realServerName = jobMeta.environmentSubstitute(serverName);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realServerName, ResourceType.SERVER));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryHTTP method getResourceDependencies.
@Override
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
String realUrl = jobMeta.environmentSubstitute(url);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realUrl, ResourceType.URL));
references.add(reference);
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntryMail method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
String realServername = jobMeta.environmentSubstitute(server);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realServername, ResourceType.SERVER));
references.add(reference);
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class JobEntrySSH2GET method getResourceDependencies.
@Override
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (!Utils.isEmpty(serverName)) {
String realServerName = jobMeta.environmentSubstitute(serverName);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realServerName, ResourceType.SERVER));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceReference in project pentaho-kettle by pentaho.
the class MappingMeta method getResourceDependencies.
@Override
public List<ResourceReference> getResourceDependencies(TransMeta transMeta, StepMeta stepInfo) {
List<ResourceReference> references = new ArrayList<ResourceReference>(5);
String realFilename = transMeta.environmentSubstitute(fileName);
String realTransname = transMeta.environmentSubstitute(transName);
ResourceReference reference = new ResourceReference(stepInfo);
references.add(reference);
if (!Utils.isEmpty(realFilename)) {
// Add the filename to the references, including a reference to this step
// meta data.
//
reference.getEntries().add(new ResourceEntry(realFilename, ResourceType.ACTIONFILE));
} else if (!Utils.isEmpty(realTransname)) {
// Add the filename to the references, including a reference to this step
// meta data.
//
reference.getEntries().add(new ResourceEntry(realTransname, ResourceType.ACTIONFILE));
references.add(reference);
}
return references;
}
Aggregations