authzGroupAdvisor.update(azGroup); } catch (Exception e) { log.error("Advisor error during completeSave()", e);
authzGroupAdvisor.groupUpdate(azGroup, userId, roleId); } catch (Exception e) { log.error("Advisor error during addMemberToGroup()", e);
/** * {@inheritDoc} */ public void removeAuthzGroup(AuthzGroup azGroup) throws AuthzPermissionException { // check security (throws if not permitted) unlock(SECURE_REMOVE_AUTHZ_GROUP, azGroup.getReference()); // allow any advisors to make last minute changes for (AuthzGroupAdvisor authzGroupAdvisor : authzGroupAdvisors) { try { authzGroupAdvisor.remove(azGroup); } catch (Exception e) { log.error("Advisor error during removeAuthzGroup()", e); } } // KNL-1230 handle removal of authzgroups by processing caching changes try { ((SakaiSecurity) securityService()).notifyRealmRemoved(azGroup.getId()); } catch (Exception e) { log.warn("Failure while trying to notify SS about realm removal for AZG(" + azGroup.getId() + "): " + e, e); } // End KNL-1230 // complete the azGroup m_storage.remove(azGroup); // track it eventTrackingService().post(eventTrackingService().newEvent(SECURE_REMOVE_AUTHZ_GROUP, azGroup.getReference(), true)); // close the azGroup object ((BaseAuthzGroup) azGroup).closeEdit(); // clear any site security based on this (if a site) azGroup removeSiteSecurity(azGroup); }
authzGroupAdvisor.groupUpdate(azGroup, userId, azGroup.getMember(userId).getRole().getId()); } catch (Exception e) { log.error("Advisor error during removeMemberFromGroup()", e);