Index: xword/Connectivity/Clients/IXWikiClient.cs
===================================================================
--- xword/Connectivity/Clients/IXWikiClient.cs (revision 22280)
+++ xword/Connectivity/Clients/IXWikiClient.cs (working copy)
@@ -148,8 +148,23 @@
/// An XWikiObject of type 'className' from the specified page.
XWikiObject GetObject(String pageId, String className, int id);
+ ///
+ /// Gets the objects from a page.
+ ///
+ /// Full page name - SpanceName.PageName
+ /// An array of XWikiObjectSummary
- summary data for object in the given page.
+ XWikiObjectSummary[] GetObjects(String pageId);
///
+ /// Removes an object from a page.
+ ///
+ /// Full page name - SpaceName.PageName.
+ /// XWiki class name.
+ /// Index number of the object.
+ void RemoveObject(String pageId, String className, int id);
+
+
+ ///
/// Gets the binary data of the attached file.
///
/// Wiki page name - SpaceName.PageName
Index: xword/Connectivity/Clients/XWikiHTTPClient.cs
===================================================================
--- xword/Connectivity/Clients/XWikiHTTPClient.cs (revision 22280)
+++ xword/Connectivity/Clients/XWikiHTTPClient.cs (working copy)
@@ -500,6 +500,29 @@
}
///
+ /// Removes an object from a page.
+ ///
+ /// Full page name - SpaceName.PageName.
+ /// XWiki class name.
+ /// Index number of the object.
+ /// Thrown every time. Method is not implemented for XWikiHTTPClient.
+ public void RemoveObject(String pageId, String className, int id)
+ {
+ throw new NotImplementedException("Operation not implemented for Velocity Services. Please use XML-RPC connectivity option!");
+ }
+
+ ///
+ /// Gets the objects from a page.
+ ///
+ /// Full page name - SpanceName.PageName
+ /// An array of XWikiObjectSummary
- summary data for object in the given page.
+ /// Thrown every time. Method is not implemented for XWikiHTTPClient.
+ public XWikiObjectSummary[] GetObjects(String pageId)
+ {
+ throw new NotImplementedException("Operation not implemented for Velocity Services. Please use XML-RPC connectivity option!");
+ }
+
+ ///
/// Gets a list with the attachmets' names of the specified page.
///
/// THe full name of the wiki page.
Index: xword/Connectivity/Clients/XWikiXMLRPCClient.cs
===================================================================
--- xword/Connectivity/Clients/XWikiXMLRPCClient.cs (revision 22280)
+++ xword/Connectivity/Clients/XWikiXMLRPCClient.cs (working copy)
@@ -264,8 +264,30 @@
return proxy.GetObject(token, pageId, className, id);
}
+ ///
+ /// Gets the objects from a page.
+ ///
+ /// Full page name - SpanceName.PageName
+ /// An array of XWikiObjectSummary
- summary data for object in the given page.
+ public XWikiObjectSummary[] GetObjects(String pageId)
+ {
+ return proxy.GetObjects(token, pageId);
+ }
+
///
+ /// Removes an object from a page.
+ ///
+ /// Full page name - SpaceName.PageName.
+ /// XWiki class name.
+ /// Index number of the object.
+ public void RemoveObject(String pageId, String className, int id)
+ {
+ proxy.RemoveObject(token, pageId, className, id);
+ }
+
+
+ ///
/// Gets the names of the attached files of a wiki page.
///
/// The full name of the wiki page.