com.atlassian.confluence.it.rpc.xmlrpc
Class XmlRpcContentClient

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.xmlrpc.XmlRpcContentClient

public class XmlRpcContentClient
extends Object

Makes XML-RPC calls for Confluence Content.


Constructor Summary
XmlRpcContentClient(ConfluenceRpc rpc)
           
 
Method Summary
 long createAttachment(Attachment attachment)
           
 long createAttachment(long contentId, Attachment attachment)
           
 long createBlogPost(BlogPost blogPost)
           
 long createComment(Comment comment)
           
 long createComment(Comment comment, long parentCommentId)
           
 long createPage(Page page)
           
 Map<String,String> createPage(String spaceKey, String title, String content, long parentPageId)
           
 BlogPost getBlogPost(long pageId)
           
 List<Page> getChildren(long parentPageId)
           
 Comment getComment(AbstractPageEntity pageEntity, long commentId)
           
 Page getExistingPage(long pageId)
          Retrieve the Page object for a page, known to exist in confluence.
 Page getExistingPage(Space space, String pageTitle)
          Retrieve the fully populated Page object for a page, known to exist in confluence.
 String getPageContent(long id)
           
 void purgeFromTrash(Space space, long pageId)
           
 void removeComment(Comment comment)
           
 void removeComment(long commentId)
           
 boolean removePage(long pageId)
           
 boolean removePage(Page page)
           
 long saveBlogPost(BlogPost blogPost)
           
 long saveComment(Comment comment)
           
 long savePage(Page page)
           
 long updatePage(Page page, boolean minorEdit, String versionComment)
          Saves pages, but not blogs, see saveBlogPost(BlogPost).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcContentClient

public XmlRpcContentClient(ConfluenceRpc rpc)
Method Detail

createPage

public long createPage(Page page)

createPage

public Map<String,String> createPage(String spaceKey,
                                     String title,
                                     String content,
                                     long parentPageId)

getExistingPage

public Page getExistingPage(Space space,
                            String pageTitle)
Retrieve the fully populated Page object for a page, known to exist in confluence.


getExistingPage

public Page getExistingPage(long pageId)
Retrieve the Page object for a page, known to exist in confluence.

Returns:
a Page but with no Space information included.

getBlogPost

public BlogPost getBlogPost(long pageId)

getComment

public Comment getComment(AbstractPageEntity pageEntity,
                          long commentId)

createBlogPost

public long createBlogPost(BlogPost blogPost)

saveBlogPost

public long saveBlogPost(BlogPost blogPost)

removePage

public boolean removePage(Page page)

removePage

public boolean removePage(long pageId)

removeComment

public void removeComment(Comment comment)

removeComment

public void removeComment(long commentId)

createComment

public long createComment(Comment comment)

createComment

public long createComment(Comment comment,
                          long parentCommentId)

saveComment

public long saveComment(Comment comment)

savePage

public long savePage(Page page)

updatePage

public long updatePage(Page page,
                       boolean minorEdit,
                       String versionComment)
Saves pages, but not blogs, see saveBlogPost(BlogPost).


getPageContent

public String getPageContent(long id)

getChildren

public List<Page> getChildren(long parentPageId)
Returns:
the children of the specified parent page, in order.

createAttachment

public long createAttachment(Attachment attachment)

createAttachment

public long createAttachment(long contentId,
                             Attachment attachment)

purgeFromTrash

public void purgeFromTrash(Space space,
                           long pageId)


Copyright © 2003–2015 Atlassian. All rights reserved.