use of cz.metacentrum.perun.audit.events.ServicesManagerEvents.ServicesPackageDeleted in project perun by CESNET.
the class ServicesManagerBlImpl method deleteServicesPackage.
@Override
public void deleteServicesPackage(PerunSession sess, ServicesPackage servicesPackage) throws RelationExistsException {
if (getServicesFromServicesPackage(sess, servicesPackage).isEmpty()) {
getServicesManagerImpl().deleteServicesPackage(sess, servicesPackage);
getPerunBl().getAuditer().log(sess, new ServicesPackageDeleted(servicesPackage));
} else {
throw new RelationExistsException("There is one or more services in the services package. ServicesPackage=\"" + servicesPackage + "\"");
}
}
Aggregations