Examples of BulkAuthorizationHelper


Examples of com.google.enterprise.connector.sharepoint.client.BulkAuthorizationHelper

      return rb.getString(SPConstants.ENDPOINT_NOT_FOUND);
    }

    try {
      sharepointClientContext.setSiteURL(endpoint);
      final BulkAuthorizationHelper testBulkAuth =
          new BulkAuthorizationHelper(sharepointClientContext);
      return testBulkAuth.checkConnectivity();
    } catch (final Exception e) {
      final String logMessage = "Problem while connecting.";
      LOGGER.log(Level.WARNING, logMessage, e);
      return e.getLocalizedMessage();
    }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.BulkAuthorizationHelper

    if (!Strings.isNullOrEmpty(password)) {
      final String userName = Util.getUserNameWithDomain(user, domain);
      LOGGER.log(Level.INFO, "Authenticating User: " + userName);
      sharepointClientContext.setUsername(userName);
      sharepointClientContext.setPassword(password);
      BulkAuthorizationHelper bulkAuth = new BulkAuthorizationHelper(
          sharepointClientContext);

      /*
       * If you can make a call to Web Service with the given credential, the
       * user is valid user. This should not be assumed as a valid SharePoint
       * user. A valid user is any user who is identified on the SharePoint
       * server.The Google Services deployed on the SharePoint server can be
       * called with such user credentials.
       *
       * If Authentication is successful get groups information from
       * UserDataStore data base for a given user and add it to
       * AuthenticationResponse. *
       */
      if (SPConstants.CONNECTIVITY_SUCCESS.equalsIgnoreCase(bulkAuth.checkConnectivity())) {
        LOGGER.log(Level.INFO, "Authentication succeeded for the user : "
            + user + " with identity : " + userName);
        if (sharepointClientContext.isPushAcls() && null != this.ldapService) {
          return getAllGroupsForTheUser(user);
        } else {
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.BulkAuthorizationHelper

        continue;
      }

      try {
        sharepointClientContext.setSiteURL(webapp);
        BulkAuthorizationHelper bulkAuth =
            new BulkAuthorizationHelper(sharepointClientContext);
        authDataPacketArray = bulkAuth.authorize(authDataPacketArray, userName);
      } catch (final Exception e) {
        LOGGER.log(Level.WARNING, "WS call failed for GSBulkAuthorization using webapp [ "
            + webapp + " ] ", e);
        continue;
      }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.BulkAuthorizationHelper

    assertNotNull(this.sharepointClientContext);
    sharepointClientContext.setIncluded_metadata(TestConfiguration.whiteList);
    sharepointClientContext.setExcluded_metadata(TestConfiguration.blackList);

    System.out.println("Initializing BulkAuthorizationHelper ...");
    this.bulkAuth = new BulkAuthorizationHelper(this.sharepointClientContext);
  }
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.BulkAuthorizationHelper

  }

  public final void testBulkAuthorization() throws Throwable {
    System.out.println("Testing BulkAuthorizationHelper(SharepointClientContext, siteName)...");
    sharepointClientContext.setSiteURL(TestConfiguration.Site1_URL);
    this.bulkAuth = new BulkAuthorizationHelper(this.sharepointClientContext);
    assertNotNull(this.bulkAuth);
    System.out.println("[ BulkAuthorizationHelper(SharepointClientContext, siteName) ] Test Passed");
  }
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.