Package com.google.enterprise.connector.sharepoint.generated.lists

Examples of com.google.enterprise.connector.sharepoint.generated.lists.GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult


      tmpfolderLevel = null;
    }
    final String folderLevel = tmpfolderLevel;
    String tmpNextPage = null;
    do {
      final GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult res =
          getChildFolders(folderLevel, list, tmpNextPage);

      if (res == null) {
        LOGGER.log(Level.INFO, "No child items found @ ["
            + folderLevel + "] with next page as [" + tmpNextPage + "]");     
        break;
      }
      tmpNextPage = null;
      final MessageElement[] me = res.get_any();
      if ((me != null) && (me.length > 0)) {
        Iterator<?> itChilds = me[0].getChildElements();
        while (itChilds.hasNext()) {
          final MessageElement child = (MessageElement) itChilds.next();
          if (!SPConstants.DATA.equalsIgnoreCase(child.getLocalName())) {
View Full Code Here


      LOGGER.log(Level.WARNING, "Unable to get folder hierarchy at folderLevel [ "
          + folderLevel + " ], list [ " + list.getListURL() + " ].", e);
      return null;
    }
    // Make the getListItemChangesSinceToken request.
    final GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult res =
        Util.makeWSRequest(sharepointClientContext, this, new Util.RequestExecutor<
        GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult>() {
          public GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult
              onRequest(final BaseWS ws) throws Throwable {
            return stub.getListItemChangesSinceToken(listName, viewName,
View Full Code Here

          + "], token [ " + token + " ] ");
    } catch (final Throwable e) {
      return Collections.emptyList();
    }

    GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult
        res = stub.getListItemChangesSinceToken(listName, viewName, query,
        viewFields, rowLimit, queryOptions, token, null);

    List<MessageElement> updatedListItems = null;
    if (res != null) {
      final MessageElement[] me = res.get_any();
      if ((me != null) && (me.length > 0)) {
        // To ensure that Changes are accessed before documents
        boolean inSequence = false;
        Iterator<?> itChilds = me[0].getChildElements();
        while (itChilds.hasNext()) {
View Full Code Here

              + folderPath + " ], list [ " + list.getListURL() + " ].", e);
      currentFolder.setNextPage(null);
      return listItems;
    }

    final GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult res =
        Util.makeWSRequest(sharepointClientContext, this, new Util.RequestExecutor<
            GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult>() {
          public GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult
          onRequest(final BaseWS ws) throws Throwable {
            return stub.getListItemChangesSinceToken(listName, viewName,
                query, viewFields, rowLimit, queryOptions, token, contains);
          }

          public void onError(final Throwable e) {
            LOGGER.log(Level.WARNING, "Unable to get folder hierarchy at folderLevel [ "
                + folderPath + " ], list [ " + listUrl + " ].", e);
          }
        });

    if (res == null) {
      LOGGER.log(Level.INFO, "No child items found @ ["
          + folderPath + "] from folder [" + currentFolder + "]");
      currentFolder.setNextPage(null);
      return listItems;
    }
   
    String nextPage = null;
    final MessageElement[] me = res.get_any();
    if ((me != null) && (me.length > 0)) {
      Iterator<?> itChilds = me[0].getChildElements();
      while (itChilds.hasNext()) {
        final MessageElement child = (MessageElement) itChilds.next();
        if (!SPConstants.DATA.equalsIgnoreCase(child.getLocalName())) {
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.sharepoint.generated.lists.GetListItemChangesSinceTokenResponseGetListItemChangesSinceTokenResult

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.