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));
}
Aggregations