Package org.jasig.portal.groups

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


      Iterator templateGroups = template.getContainingGroups();
      while (templateGroups.hasNext()) {
          IEntityGroup eg = (IEntityGroup)templateGroups.next();
          if (eg.isEditable()) {
            eg.addMember(me);
            eg.updateMembers();
          }       
      }       
     
      Connection con = null;
      try {
View Full Code Here


      Iterator templateGroups = template.getContainingGroups();
      while (templateGroups.hasNext()) {
          IEntityGroup eg = (IEntityGroup)templateGroups.next();
          if (eg.isEditable()) {
              eg.addMember(me);
              eg.updateMembers();
          }
      }
     
      int uPortalUID = -1;
      Connection con = null;
View Full Code Here

   
            // For each category ID, add channel to category
            for (PortletCategory category : categories) {
                final IEntityGroup categoryGroup = GroupService.findGroup(category.getId());
                categoryGroup.addMember(portletDefEntity);
                categoryGroup.updateMembers();
            }
   
            // Set groups
            final AuthorizationService authService = AuthorizationService.instance();
            final String target = PermissionHelper.permissionTargetIdForPortletDefinition(definition);
View Full Code Here

        String childKey = String.valueOf(child.getId());
        IEntityGroup childGroup = GroupService.findGroup(childKey);
        String parentKey = String.valueOf(parent.getId());
        IEntityGroup parentGroup = GroupService.findGroup(parentKey);
        parentGroup.addMember(childGroup);
        parentGroup.updateMembers();
    }

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

        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

    @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

   
    // add this group to the membership list for the specified
    // parent
    IEntityGroup parentGroup = GroupService.findGroup(parent.getId());
    parentGroup.addMember(group);
    parentGroup.updateMembers();

  }

    public boolean canEditGroup(IPerson currentUser, String target) {
       
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.