Search in sources :

Example 1 with ManagedServiceDeletedEvent

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

the class ManagedServiceResourceService method delete.

/**
 * Delete the managed service resource
 *
 * Note that the service will still exists, but will only be updatable via service api
 *
 * @param environmentId The environment for which to get the service resource.
 */
public void delete(String environmentId) {
    ServiceResource serviceResource = getOrFail(environmentId);
    serviceResourceService.delete(serviceResource.getId());
    publisher.publishEvent(new ManagedServiceDeletedEvent(this, serviceResource));
}
Also used : ManagedServiceDeletedEvent(org.alien4cloud.alm.events.ManagedServiceDeletedEvent) ServiceResource(alien4cloud.model.service.ServiceResource)

Aggregations

ServiceResource (alien4cloud.model.service.ServiceResource)1 ManagedServiceDeletedEvent (org.alien4cloud.alm.events.ManagedServiceDeletedEvent)1