Package com.google.enterprise.connector.sharepoint.generated.gssacl

Examples of com.google.enterprise.connector.sharepoint.generated.gssacl.GssPrincipal


          }
        }
      }
      for (GssAce ace : allAces) {
        // Handle Principal
        GssPrincipal principal = ace.getPrincipal();
        if (null == principal) {
          LOGGER.log(Level.WARNING, "No Principal found in ace.");
          continue;
        }
        if (null == principal.getType() || null == principal.getName()) {
          LOGGER.log(Level.WARNING, "Either Principal Name [ "
              + principal.getName() + " ] or Principal Type [ "
              + principal.getType() + " ]  is unavailable");
          continue;
        }

        // Handle Permissions
        GssSharepointPermission permissions = ace.getPermission();
        if (null == permissions) {
          LOGGER.log(Level.WARNING, "No permissions found for Principal [ "
              + principal.getName() + " ] ");
          continue;
        }
        // Check to determine whether the object-type of the document is list
        // list-item or site.
View Full Code Here


  public void runBatchForGetPrincipalName(String principalname,
      String expectedPrincipalname, PrincipalType principalType,
      String usernameFormat, String groupnameFormat) {
    sharepointClientContext.setUsernameFormatInAce(usernameFormat);
    sharepointClientContext.setGroupnameFormatInAce(groupnameFormat);
    GssPrincipal principal = new GssPrincipal();
    principal.setType(principalType);
    principal.setName(principalname);
    assertEquals(expectedPrincipalname, aclHelper.getPrincipalName(principal));
  }
View Full Code Here

    replay(dao, webState);

    SharepointClientContext clientContext =
        TestConfiguration.initContext(new MockClientFactory());
    clientContext.setUserDataStoreDAO(dao);
    GssPrincipal principal = new GssPrincipal(principalId, principalName,
        PrincipalType.SPGROUP, new GssPrincipal[0], null);
    Set<Principal> users = ImmutableSet.of(); // unwritable
    Set<Principal> groups = Sets.newHashSet();
    Set<UserGroupMembership> memberships = ImmutableSet.of(); // unwritable
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.generated.gssacl.GssPrincipal

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.