use of org.pentaho.di.resource.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryFTP 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.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryFTPSPUT 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.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryGetPOP 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.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntryPGPVerify method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (!Utils.isEmpty(gpglocation)) {
String realFileName = jobMeta.environmentSubstitute(gpglocation);
ResourceReference reference = new ResourceReference(this);
reference.getEntries().add(new ResourceEntry(realFileName, ResourceType.FILE));
references.add(reference);
}
return references;
}
use of org.pentaho.di.resource.ResourceEntry in project pentaho-kettle by pentaho.
the class JobEntrySetVariables method getResourceDependencies.
public List<ResourceReference> getResourceDependencies(JobMeta jobMeta) {
List<ResourceReference> references = super.getResourceDependencies(jobMeta);
if (variableName != null) {
ResourceReference reference = null;
for (int i = 0; i < variableName.length; i++) {
String filename = jobMeta.environmentSubstitute(variableName[i]);
if (reference == null) {
reference = new ResourceReference(this);
references.add(reference);
}
reference.getEntries().add(new ResourceEntry(filename, ResourceType.FILE));
}
}
return references;
}
Aggregations