Package org.jasig.portal.groups

Examples of org.jasig.portal.groups.IEntityGroup.removeMember()


             if ( group.isEditable() ) {
               IEntityGroup lg =
                 GroupService.findLockableGroup( group.getKey(), this.getClass().getName() );

               lg.removeMember( gm );
               lg.update();

               LOG.info("Removed " + userName + " from " + group.getKey());
             }// if
          }// for
View Full Code Here


            if (!newChannel) {
                @SuppressWarnings("unchecked")
                final Iterator<IEntityGroup> iter = portletDefEntity.getAllContainingGroups();
                while (iter.hasNext()) {
                    final IEntityGroup group = iter.next();
                    group.removeMember(portletDefEntity);
                    group.update();
                }
            }
   
            // For each category ID, add channel to category
View Full Code Here

        IEntity channelDefEntity = GroupService.getEntity(portletDefinitionId, IPortletDefinition.class);
        @SuppressWarnings("unchecked")
        Iterator<IEntityGroup> iter = channelDefEntity.getAllContainingGroups();
        while (iter.hasNext()) {
            IEntityGroup group = iter.next();
            group.removeMember(channelDefEntity);
            group.update();
        }

        // remove permissions
        AuthorizationService authService = AuthorizationService.instance();
View Full Code Here

    public void removeCategoryFromCategory(PortletCategory child, PortletCategory parent) {
        String childKey = String.valueOf(child.getId());
        IEntityGroup childGroup = GroupService.findGroup(childKey);
        String parentKey = String.valueOf(parent.getId());
        IEntityGroup parentGroup = GroupService.findGroup(parentKey);
        parentGroup.removeMember(childGroup);
        parentGroup.updateMembers();
    }

    /* (non-Javadoc)
   * @see org.jasig.portal.portlet.registry.IPortletCategoryRegistry#updatePortletCategory(org.jasig.portal.portlet.om.PortletCategory)
View Full Code Here

    // groups
    @SuppressWarnings("unchecked")
    Iterator<IEntityGroup> iter = (Iterator<IEntityGroup>) group.getContainingGroups();
    while (iter.hasNext()) {
      IEntityGroup parent = (IEntityGroup) iter.next();
      parent.removeMember(group);
      parent.updateMembers();
    }
   
    // delete the group
    group.delete();
View Full Code Here

    // clear the current group membership list
    @SuppressWarnings("unchecked")
    Iterator<IGroupMember> groupIter = (Iterator<IGroupMember>) group.getMembers();
    while (groupIter.hasNext()) {
      IGroupMember child = groupIter.next();
      group.removeMember(child);
    }
   
    // add all the group membership information from the group form
    // to the group
    for (JsonEntityBean child : groupForm.getMembers()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.