Package com.google.enterprise.connector.sharepoint.dao

Examples of com.google.enterprise.connector.sharepoint.dao.UserGroupMembership


          // If SharePoint group does not have any members
          // then such groups will be resolved later.
          webState.addSPGroupToResolve (Integer.toString(principal.getID()));        
        } else {
          for (GssPrincipal member : members) {
            memberships.add(new UserGroupMembership(member.getID(),
                getPrincipalName(member), principal.getID(), principalName,
                webStateUrl));
          }
        }
      }
View Full Code Here


        GssPrincipal[] groups = wsResult.getPrinicpals();
        if (null != groups && groups.length > 0) {
          for (GssPrincipal group : groups) {
            Set<UserGroupMembership> memberships = new TreeSet<UserGroupMembership>();
            for (GssPrincipal member : group.getMembers()) {
              memberships.add(new UserGroupMembership(member.getID(),
                  getPrincipalName(member), group.getID(), group.getName(),
                  wsResult.getSiteCollectionUrl()));
            }
            groupsToMemberships.put(group.getID(), memberships);
          }
View Full Code Here

        if (groups !=null && groups.length > 0) {
          Set<UserGroupMembership> memberships =
              new TreeSet<UserGroupMembership>();
          for (GssPrincipal group : groups) {        
            for (GssPrincipal member : group.getMembers()) {
              memberships.add(new UserGroupMembership(member.getID(),
                  getPrincipalName(member), group.getID(), group.getName(),
                  result.getSiteCollectionUrl()));
            }
            webState.removeSPGroupToResolve(Integer.toString(group.getID()));
          }
View Full Code Here

  }

  public static Set<UserGroupMembership> getMembershipsForNameSpace(
      String namespace) throws SharepointException {
    Set<UserGroupMembership> memberships = new TreeSet<UserGroupMembership>();
    UserGroupMembership membership1 = new UserGroupMembership(1, "user1", 2,
        "group1", namespace);
    memberships.add(membership1);
    UserGroupMembership membership2 = new UserGroupMembership(2, "user2", 2,
        "group1", namespace);
    memberships.add(membership2);
    UserGroupMembership membership3 = new UserGroupMembership(3, "user3", 2,
        "group2", namespace);
    memberships.add(membership3);

    return memberships;
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.dao.UserGroupMembership

Copyright © 2018 www.massapicom. 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.