use of org.alien4cloud.alm.events.ManagedServiceUnbindEvent in project alien4cloud by alien4cloud.
the class ManagedServiceResourceService method unbind.
/**
* Unbind the service resource from the application environment
*
* 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 unbind(String environmentId) {
ServiceResource serviceResource = getOrFail(environmentId);
serviceResource.setEnvironmentId(null);
serviceResourceService.save(serviceResource);
publisher.publishEvent(new ManagedServiceUnbindEvent(this, serviceResource));
}
Aggregations