Search in sources :

Example 1 with BeforeApplicationEnvironmentDeleted

use of org.alien4cloud.alm.events.BeforeApplicationEnvironmentDeleted in project alien4cloud by alien4cloud.

the class ApplicationEnvironmentService method deleteEnvironment.

private void deleteEnvironment(ApplicationEnvironment environment) {
    publisher.publishEvent(new BeforeApplicationEnvironmentDeleted(this, environment.getApplicationId(), environment.getId()));
    alienDAO.delete(ApplicationEnvironment.class, environment.getId());
    publisher.publishEvent(new AfterApplicationEnvironmentDeleted(this, environment.getApplicationId(), environment.getId()));
}
Also used : BeforeApplicationEnvironmentDeleted(org.alien4cloud.alm.events.BeforeApplicationEnvironmentDeleted) AfterApplicationEnvironmentDeleted(org.alien4cloud.alm.events.AfterApplicationEnvironmentDeleted)

Aggregations

AfterApplicationEnvironmentDeleted (org.alien4cloud.alm.events.AfterApplicationEnvironmentDeleted)1 BeforeApplicationEnvironmentDeleted (org.alien4cloud.alm.events.BeforeApplicationEnvironmentDeleted)1