/** * Save the site's azg if modified. * * @param site * The site to save. */ protected void saveSiteAzg(Site site) { if (((BaseSite) site).m_azgChanged) { try { authzGroupService().save(((BaseSite) site).m_azg); } catch (Exception t) { log.warn(".saveAzgs - site: " + t); } ((BaseSite) site).m_azgChanged = false; } }
/** * Save group azgs that are modified. * * @param site * The site to save. */ protected void saveGroupAzgs(Site site) { for (Iterator i = site.getGroups().iterator(); i.hasNext();) { BaseGroup group = (BaseGroup) i.next(); if (group.m_azgChanged) { try { authzGroupService().save(group.m_azg); } catch (Exception t) { log.warn(".saveAzgs - group: " + group.getTitle() + " : " + t); } group.m_azgChanged = false; } } }
authzGroupService.save(authz);
authzGroupService.save(authzGroup); } catch (AuthzPermissionException ape) { throw new SecurityException("The permissions for this site (" + siteId + ") cannot be updated by the current user.");
authzGroupService.save(groupToRefresh); groupsUpdated++; } catch (GroupNotDefinedException e) {
siteRole.allowFunction(CommonsFunctions.COMMENT_UPDATE_OWN); siteRole.allowFunction(CommonsFunctions.COMMENT_DELETE_OWN); authzGroupService.save(siteRealm);
authzGroupService.save(groupToRefresh); groupsUpdated++; } catch (GroupNotDefinedException e) {
authzGroupService.save(group);
authzGroupService.save(realmEdit); } catch (Exception exc) { log.warn("SiteParticipantHelper:addParticipantsFromMembers " + exc.getMessage());
AuthzGroup group = authzGroupService.getAuthzGroup(it.next()); group.removeMember(id); authzGroupService.save(group);
authzGroupService.save(realmEdit);
authzGroupService.save(realmEdit);
m_authzGroupService.save(edit);
re.addMember(userDirectoryService().getCurrentUser().getId(), re.getMaintainRole(), true, false); authzGroupService().save(re);