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

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


    final SiteDataHelper siteData = new SiteDataHelper(sharepointClientContext);
    List<ListState> listCollection = siteData.getNamedLists(ws);
    assertNotNull(listCollection);
    for (ListState baseList : listCollection) {
      ListsHelper listHelper = new ListsHelper(this.sharepointClientContext);
      List<SPDocument> listItems = listHelper.getListItems(baseList, null, null, null);
      if (listItems.size() > 0) {
        for (SPDocument spdoc : listItems) {
          spdoc.setParentWeb(ws);
          spdoc.setParentList(baseList);
        }
View Full Code Here


    sharepointClientContext.setBatchHint(10);
    sharepointClientContext.setFeedType(FeedType.CONTENT_FEED);
    sharepointClientContext.setFeedUnPublishedDocuments(false);

    System.out.println("Initializing SPListsWS ...");
    listsHelper = new ListsHelper(this.sharepointClientContext);

    System.out.println("Creating test List ...");
    final SiteDataHelper siteData = new SiteDataHelper(this.sharepointClientContext);

    final GlobalState state = new GlobalState(clientFactory,
View Full Code Here

  }

  public final void testListsWS() throws Throwable {
    System.out.println("Testing SPListsWS(SharepointClientContext, siteName)...");
    sharepointClientContext.setSiteURL(TestConfiguration.Site1_URL);
    listsHelper = new ListsHelper(this.sharepointClientContext);
    assertNotNull(listsHelper);
    System.out.println("[ SPListsWS(SharepointClientContext, siteName) ] Test Passed");
  }
View Full Code Here

  public void testGetListItemsForPublishedContent()
      throws MalformedURLException, RepositoryException {
    System.out.println("Testing getListItems() by setting FeedUnPublishedDocuments to false.");
    this.sharepointClientContext.setFeedUnPublishedDocuments(false);
    listsHelper = new ListsHelper(this.sharepointClientContext);
    List<SPDocument> items =
        listsHelper.getListItems(this.testList, null, null, null);
    assertNotNull(items);
    assertEquals(TestConfiguration.Site1_List1_Published_Item_Count,
        items.size());
View Full Code Here

  public void testGetListItemsForUnPublishedContent()
      throws MalformedURLException, RepositoryException {
    System.out.println("Testing getListItems() by setting FeedUnPublishedDocuments true");
    this.sharepointClientContext.setFeedUnPublishedDocuments(true);
    listsHelper = new ListsHelper(this.sharepointClientContext);
    List<SPDocument> items =
        listsHelper.getListItems(this.testList, null, null, null);
    assertNotNull(items);
    assertEquals(TestConfiguration.Site1_List1_Unpublished_Item_Count,
        items.size());
View Full Code Here

  }

  private List<SPDocument> getSite1TestListChangesSinceToken()
      throws SharepointException {
    sharepointClientContext.setSiteURL(TestConfiguration.Site1_URL);
    listsHelper = new ListsHelper(sharepointClientContext);
    return listsHelper.getListItemChangesSinceToken(testList, null);
  }
View Full Code Here

  public void testGetListItemsWithInheritingRoleAssignments()
      throws SharepointException {
    ListState listState = globalState.lookupList(TestConfiguration.Site1_URL, TestConfiguration.Site1_List1_GUID);
    assertNotNull(listState);
    listState.startAclCrawl();
    ListsHelper listHelper = new ListsHelper(sharepointClientContext);
    assertNotNull(listHelper);
    aclHelper = new AclHelper(this.sharepointClientContext,
        listState.getParentWebState().getWebUrl());
    List<SPDocument> docs = aclHelper.getListItemsForAclChangeAndUpdateState(
        listState, listHelper);
View Full Code Here

    sharepointClientContext.setExcluded_metadata(TestConfiguration.blackList);
    sharepointClientContext.setBatchHint(10);
    sharepointClientContext.setFeedType(FeedType.CONTENT_FEED);
    sharepointClientContext.setFeedUnPublishedDocuments(false);

    listsHelper = new ListsHelper(sharepointClientContext);

    final SiteDataHelper siteData =
        new SiteDataHelper(sharepointClientContext);

    final GlobalState state = new GlobalState(clientFactory,
View Full Code Here

TOP

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

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.