Package com.google.enterprise.connector.sharepoint.client

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


  }

  // TODO: What is the difference between testAuthorizeDocids and testAuthorizeDocidsForMandUFeeds.
  // Need to gather more details on the difference in the data so that we can create if for the tests.
  public void testAuthorizeDocids() throws Throwable {
    SiteDiscoveryHelper siteDisc =
        new SiteDiscoveryHelper(sharepointClientContext, null);
    SharepointAuthorizationManager authMan = new SharepointAuthorizationManager(
        clientFactory, this.sharepointClientContext,
        siteDisc.getMatchingSiteCollections());
    AuthenticationIdentity authID = new SimpleAuthenticationIdentity(
        TestConfiguration.searchUserID, TestConfiguration.searchUserPwd);

    Set<String> docids = new HashSet<String>();
    docids.add(TestConfiguration.SearchDocID1);
View Full Code Here


    }
  }

  public void testAuthorizeDocidsForMandUFeeds() throws Throwable {
    sharepointClientContext.setFeedType(FeedType.METADATA_URL_FEED);
    SiteDiscoveryHelper siteDisc =
        new SiteDiscoveryHelper(sharepointClientContext, null);
    SharepointAuthorizationManager authMan = new SharepointAuthorizationManager(
        clientFactory, this.sharepointClientContext,
        siteDisc.getMatchingSiteCollections());
    AuthenticationIdentity authID = new SimpleAuthenticationIdentity(
        TestConfiguration.searchUserID, TestConfiguration.searchUserPwd);

    Set<String> docids = new HashSet<String>();
    docids.add(TestConfiguration.SearchDocID4);
View Full Code Here

   */
  public AuthorizationManager getAuthorizationManager()
      throws RepositoryException {
    LOGGER.info("getAuthorizationManager()");
    ClientFactory clientFactory = connector.getClientFactory();
    SiteDiscoveryHelper siteDiscovery =
        new SiteDiscoveryHelper(sharepointClientContext, null);
    return new SharepointAuthorizationManager(clientFactory,
        sharepointClientContext, siteDiscovery.getMatchingSiteCollections());
  }
View Full Code Here

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

    this.siteDisc = new SiteDiscoveryHelper(this.sharepointClientContext,
        TestConfiguration.sharepointUrl);
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.client.SiteDiscoveryHelper

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.