Examples of GssPrincipal


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

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

  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

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

    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
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.