use of cz.metacentrum.perun.audit.events.GeneralServiceManagerEvents.BanServiceOnFacility in project perun by CESNET.
the class ServicesManagerBlImpl method blockAllServicesOnFacility.
@Override
public void blockAllServicesOnFacility(PerunSession sess, Facility facility) {
List<Service> services = getAssignedServices(sess, facility);
for (Service service : services) {
try {
getServicesManagerImpl().blockServiceOnFacility(sess, service.getId(), facility.getId());
sess.getPerun().getAuditer().log(sess, new BanServiceOnFacility(service, facility));
} catch (ServiceAlreadyBannedException e) {
// we ignore, that service was already blocked
}
}
}
use of cz.metacentrum.perun.audit.events.GeneralServiceManagerEvents.BanServiceOnFacility in project perun by CESNET.
the class ServicesManagerBlImpl method blockServiceOnFacility.
@Override
public void blockServiceOnFacility(PerunSession sess, Service service, Facility facility) throws ServiceAlreadyBannedException {
getServicesManagerImpl().blockServiceOnFacility(sess, service.getId(), facility.getId());
sess.getPerun().getAuditer().log(sess, new BanServiceOnFacility(service, facility));
}
Aggregations