updatedData.setPipelinePluginEntityAssociations(EntityPipelinePlugin
.getInterchangeDataTable(m_entityPipelinePlugins));
DeployLog.LOG.info("Now sending the project data to the server");
// Call deploy web service.
CDeployResults deployResults = deployer.deployInterchangeData(user, password, deletedData, updatedData);
DeployLog.LOG.info("The server has acknowledged that it receieved the data");
if (Thread.currentThread().isInterrupted()) {
callback.cancelled();
return;
}
// Upload Jtr files if we have any.
CDeployResults jtrDeployResults = null;
if (m_transformationJtrs.size() > 0) {
CJtrFiles jtrFilesToUpload = new CJtrFiles();
jtrFilesToUpload.setJtrFiles(m_transformationJtrs
.toArray(new CJtrFile[m_transformationJtrs.size()]));
DeployLog.LOG.info("Now sending JTR files to the server");
jtrDeployResults = deployer.uploadJtrFiles(user, password, jtrFilesToUpload);
DeployLog.LOG.info("The server has acknowledged that it receieved the JTR files");
if (Thread.currentThread().isInterrupted()) {
callback.cancelled();
return;
}
}
// Extract renamed items.
CDeployRename[] deployRenames = deployResults.getRenamedItems();
List<RenamedEntity> renamedEntities = Lists.newArrayList();
if (deployRenames != null) {
for (CDeployRename rename : deployRenames) {
renamedEntities.add(new RenamedEntityImpl(getIntegrationEntityId(rename.getEntity()), rename
.getOldName(), rename.getNewName()));
}
}
// Extract warnings from deploy.
CDeployWarning[] deployWarnings = deployResults.getWarnings();
Set<EntityWarning> itemWarnings = new LinkedHashSet<EntityWarning>();
List<String> warnings = Lists.newArrayList();
if (deployWarnings != null) {
for (CDeployWarning warning : deployWarnings) {
fillDeployWarning(warning, itemWarnings, warnings);
}
}
// Extract warnings from JTR upload.
if (jtrDeployResults != null) {
deployWarnings = jtrDeployResults.getWarnings();
if (deployWarnings != null) {
for (CDeployWarning warning : deployWarnings) {
fillDeployWarning(warning, itemWarnings, warnings);
}
}