manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1368928 - /manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
Date Fri, 03 Aug 2012 13:02:41 GMT
Author: kwright
Date: Fri Aug  3 13:02:41 2012
New Revision: 1368928

URL: http://svn.apache.org/viewvc?rev=1368928&view=rev
Log:
Allow SharePoint 2010 to get at folder children.

Modified:
    manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java

Modified: manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java?rev=1368928&r1=1368927&r2=1368928&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
(original)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
Fri Aug  3 13:02:41 2012
@@ -1653,7 +1653,7 @@ public class SPSProxyHelper {
         GetListItemsQuery q = buildMatchQuery("FileRef","Text",docId);
         GetListItemsViewFields viewFields = buildViewFields(fieldNames);
 
-        GetListItemsResponseGetListItemsResult items =  stub1.getListItems(docLibrary, "",
q, viewFields, "1", null, null);
+        GetListItemsResponseGetListItemsResult items =  stub1.getListItems(docLibrary, "",
q, viewFields, "1", buildNonPagingQueryOptions(), null);
         if (items == null)
           return result;
 
@@ -2159,6 +2159,32 @@ public class SPSProxyHelper {
       MessageElement pagingNode = new MessageElement((String)null,"Paging");
       queryOptionsNode.addChild(pagingNode);
       pagingNode.addAttribute(null,"ListItemCollectionPositionNext",pageNextString);
+      MessageElement viewAttributesNode = new MessageElement((String)null,"ViewAttributes");
+      queryOptionsNode.addChild(viewAttributesNode);
+      viewAttributesNode.addAttribute(null,"Scope","Recursive");
+
+      return rval;
+    }
+    catch (javax.xml.soap.SOAPException e)
+    {
+      throw new ManifoldCFException(e.getMessage(),e);
+    }
+  }
+
+  /** Build queryOptions XML object that specifies no paging value.
+  */
+  protected static GetListItemsQueryOptions buildNonPagingQueryOptions()
+    throws ManifoldCFException
+  {
+    try
+    {
+      GetListItemsQueryOptions rval = new GetListItemsQueryOptions();
+      MessageElement queryOptionsNode = new MessageElement((String)null,"QueryOptions");
+      rval.set_any(new MessageElement[]{queryOptionsNode});
+      MessageElement viewAttributesNode = new MessageElement((String)null,"ViewAttributes");
+      queryOptionsNode.addChild(viewAttributesNode);
+      viewAttributesNode.addAttribute(null,"Scope","Recursive");
+
       return rval;
     }
     catch (javax.xml.soap.SOAPException e)



Mime
View raw message