use of cz.metacentrum.perun.audit.events.MembersManagerEvents.MemberUnsuspended in project perun by CESNET.
the class VosManagerBlImpl method removeBan.
@Override
public void removeBan(PerunSession sess, int banId) throws BanNotExistsException {
BanOnVo ban = vosManagerImpl.getBanById(sess, banId);
vosManagerImpl.removeBan(sess, banId);
Member member;
try {
member = perunBl.getMembersManagerBl().getMemberById(sess, ban.getMemberId());
} catch (MemberNotExistsException e) {
// shouldn't happen
log.error("Failed to find member who was just banned.", e);
throw new ConsistencyErrorException("Failed to find member who was just banned.", e);
}
perunBl.getAuditer().log(sess, new MemberUnsuspended(member));
}
Aggregations