XWikiXMLRPC Changes

Last modified by Venkatesh Nandakumar on 2009/08/02 22:54

See http://jira.xwiki.org/jira/browse/XWIKI-1559

The changes are in the patch.

Changes are:-

  • getPages(String spaceName, int start, int limit) Get pages in space, with range specified by start and limit. Range->[start,start+limit]
    • getPages(SpaceSummary space, int start, int limit)
  • getPage(String spaceName, int index) Get a particular page in a space, indexed by number.
  • getNumberOfPages(String spaceKey) Return the number of pages in a space.
  • search(String query, Map parameters, int maxResults) Search pages, with specified parameters.
    • @param query Specifies the string to be searched according to searchedField key of Map parameters argument. Current Implementation supports only fullName property of document as the searchedField key. If it is "__ALL_PAGES__" the search will return all the page Ids available.
    • @param parameters Map containing specific parameters like the space to be searched, modified on (today, week, month), startIndex of results to be returned, the maximum Number of Results to be returned (which overrides maxResults parameter if present) and the field to be searched for 'query' argument given.
    • @param maxResults Sets the maximum number of results. Is overridden if maxResults key is specified in Map parameters argument above
  • moveAttachment(String oldpageId, String oldfileName, String newpageId, String newfileName) Move/Rename Attachment from first pageId to same/another (second) pageId
    • moveAttachment(String pageId, String oldfileName, String newfileName)
    • moveAttachment(Attachment attachment, String newpageId)
  • copyAttachment(String oldpageId, String oldfileName, String newpageId, String newfileName) Copy attachment from one page to another page.
    • copyAttachment(String oldpageId, String fileName, String newpageId)
    • copyAttachment(Attachment attachment, String newpageId)
    • copyAttachment(Attachment attachment, String newpageId, String newfileName)
  • copyPage(String oldpageId, String newpageId) Copy Page from one space to another, very generic.
  • movePage(String oldpageId, String newpageId) Move Page from one space to another