addDataStagingSourceElement(value, uri, fileSystem, file, 0);
}
public static void addDataStagingSourceElement(JobDefinitionType value, String uri, String fileSystem, String file,
int flags) {
JobDescriptionType jobDescr = getOrCreateJobDescription(value);
try {
uri = (uri == null) ? null : URIUtils.encodeAll(uri);
} catch (URIException e) {
}
DataStagingType newDS = jobDescr.addNewDataStaging();
CreationFlagEnumeration.Enum creationFlag = CreationFlagEnumeration.DONT_OVERWRITE;
if ((flags & FLAG_OVERWRITE) != 0)
creationFlag = CreationFlagEnumeration.OVERWRITE;
if ((flags & FLAG_APPEND) != 0)
creationFlag = CreationFlagEnumeration.APPEND;