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

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


  SPDocument doc;

  protected void setUp() throws Exception {
    super.setUp();
    SharepointClientContext spContext = TestConfiguration.initContext();
    List<SPDocument> allDocs = TestConfiguration.initState(spContext).lookupList(
        TestConfiguration.Site1_URL, TestConfiguration.Site1_List1_GUID).getCrawlQueue();
    assertTrue(allDocs.size() > 0);
    this.doc = allDocs.get(0);
    assertNotNull(this.doc);
View Full Code Here


  private final SPClientFactory clientFactory = new SPClientFactory();

  protected void setUp() throws Exception {
    System.out.println("\n...Setting Up...");
    System.out.println("Initializing SharepointClientContext ...");
    this.sharepointClientContext = new SharepointClientContext(
        clientFactory, TestConfiguration.sharepointUrl, TestConfiguration.domain,
        TestConfiguration.kdcserver, TestConfiguration.username,
        TestConfiguration.password, TestConfiguration.googleConnectorWorkDir,
        TestConfiguration.googleGlobalNamespace,
        TestConfiguration.googleLocalNamespace,
View Full Code Here

 
  public List<SharePointSocialUserProfileDocument> getUpdatedDocuments(
      SharePointSocialCheckpoint checkpoint) throws SharepointException {
    List<SharePointSocialUserProfileDocument> updatedDocuments =
        new ArrayList<SharePointSocialUserProfileDocument>();
    SharepointClientContext spContext =  ctxt.getSpClientContext();
    UserProfileChangeHelper userProfileChange =
        new UserProfileChangeHelper(spContext);
    try {
      Map<String, ActionType> updatedProfiles =
          userProfileChange.getChangedUserProfiles(checkpoint);
View Full Code Here

    }
  }

  public String getCurrentChangeTokenOnSharePoint()
      throws SharepointException {
    SharepointClientContext spContext =  ctxt.getSpClientContext();
    UserProfileChangeHelper userProfileChange =
        new UserProfileChangeHelper(spContext);
    if (userProfileChange != null) {
      try {
        // If no updates then last change token and
View Full Code Here

public class SharepointAuthorizationManagerTest extends TestCase {
  SharepointClientContext sharepointClientContext;
  private final SPClientFactory clientFactory = new SPClientFactory();

  protected void setUp() throws Exception {
    this.sharepointClientContext = new SharepointClientContext(
        clientFactory, TestConfiguration.sharepointUrl, TestConfiguration.domain,
        TestConfiguration.kdcserver, TestConfiguration.username,
        TestConfiguration.password, TestConfiguration.googleConnectorWorkDir,
        TestConfiguration.googleGlobalNamespace,
        TestConfiguration.googleLocalNamespace,
View Full Code Here

  }

  public void testReWriteDisplayUrl_default() throws RepositoryException {
    SharepointConnector connector = TestConfiguration.createConnectorInstance();
    connector.init();
    SharepointClientContext context = connector.getSharepointClientContext();
    assertTrue(context.isReWriteDisplayUrlUsingAliasMappingRules());
  }
View Full Code Here

  public void testReWriteDisplayUrl_false() throws RepositoryException {
    SharepointConnector connector = TestConfiguration.createConnectorInstance();
    connector.setReWriteDisplayUrlUsingAliasMappingRules(false);
    connector.init();
    SharepointClientContext context = connector.getSharepointClientContext();
    assertFalse(context.isReWriteDisplayUrlUsingAliasMappingRules());
  }
View Full Code Here

  }

  public void testReWriteRecordUrl_default() throws RepositoryException {
    SharepointConnector connector = TestConfiguration.createConnectorInstance();
    connector.init();
    SharepointClientContext context = connector.getSharepointClientContext();
    assertFalse(context.isReWriteRecordUrlUsingAliasMappingRules());
  }
View Full Code Here

  public void testReWriteRecordUrl_true() throws RepositoryException {
    SharepointConnector connector = TestConfiguration.createConnectorInstance();
    connector.setReWriteRecordUrlUsingAliasMappingRules(true);
    connector.init();
    SharepointClientContext context = connector.getSharepointClientContext();
    assertTrue(context.isReWriteRecordUrlUsingAliasMappingRules());
  }
View Full Code Here

      ed.set(SPConstants.USERNAME, rb.getString(SPConstants.DUPLICATE_DOMAIN));
      return false;
    }

    try {
      sharepointClientContext = new SharepointClientContext(clientFactory,
          sharepointUrl, domain, kdcServer, username, password, "", "", "",
          includeURL, excludeURL, mySiteUrl, "", feedType,
          Boolean.parseBoolean(useSPSearchVisibility));
    } catch (final Exception e) {
      LOGGER.log(Level.SEVERE,
View Full Code Here

TOP

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

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.