use of org.alien4cloud.alm.events.AfterEnvironmentTopologyVersionChanged in project alien4cloud by alien4cloud.
the class ApplicationEnvironmentService method updateTopologyVersion.
public void updateTopologyVersion(ApplicationEnvironment applicationEnvironment, String oldTopologyVersion, String newVersion, String newTopologyVersion, String environmentIdToCopyInput) {
applicationEnvironment.setVersion(newVersion);
applicationEnvironment.setTopologyVersion(newTopologyVersion);
if (environmentIdToCopyInput != null) {
ApplicationEnvironment environmentToCopyInput = checkAndGetApplicationEnvironment(environmentIdToCopyInput, ApplicationRole.APPLICATION_MANAGER);
alienDAO.save(applicationEnvironment);
synchronizeEnvironmentInputs(environmentToCopyInput, applicationEnvironment);
} else {
alienDAO.save(applicationEnvironment);
}
publisher.publishEvent(new AfterEnvironmentTopologyVersionChanged(this, oldTopologyVersion, newTopologyVersion, applicationEnvironment.getId(), applicationEnvironment.getApplicationId()));
resourceUpdateInterceptor.runOnEnvironmentTopologyVersionChanged(new TopologyVersionChangedInfo(applicationEnvironment, oldTopologyVersion, newTopologyVersion));
}
Aggregations