use of cz.metacentrum.perun.audit.events.ExtSourcesManagerEvents.ExtSourceRemovedFromVo in project perun by CESNET.
the class ExtSourcesManagerBlImpl method removeExtSource.
@Override
public void removeExtSource(PerunSession sess, Vo vo, ExtSource source) throws ExtSourceNotAssignedException, ExtSourceAlreadyRemovedException {
List<Group> groupsWithAssignedExtSource = getPerunBl().getGroupsManagerBl().getGroupsWithAssignedExtSourceInVo(sess, source, vo);
for (Group group : groupsWithAssignedExtSource) {
getPerunBl().getExtSourcesManagerBl().removeExtSource(sess, group, source);
}
getExtSourcesManagerImpl().removeExtSource(sess, vo, source);
getPerunBl().getAuditer().log(sess, new ExtSourceRemovedFromVo(source, vo));
}
Aggregations