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

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

public class XmlRpcContentClient
extends java.lang.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)
           
 java.util.Map<java.lang.String,java.lang.String> createPage(java.lang.String spaceKey, java.lang.String title, java.lang.String content, long parentPageId)
           
 BlogPost getBlogPost(long pageId)
           
 java.util.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, java.lang.String pageTitle)
          Retrieve the fully populated Page object for a page, known to exist in confluence.
 java.lang.String getPageContent(long id)
           
 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, java.lang.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 java.util.Map<java.lang.String,java.lang.String> createPage(java.lang.String spaceKey,
                                                                   java.lang.String title,
                                                                   java.lang.String content,
                                                                   long parentPageId)

getExistingPage

public Page getExistingPage(Space space,
                            java.lang.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,
                       java.lang.String versionComment)
Saves pages, but not blogs, see saveBlogPost(BlogPost).


getPageContent

public java.lang.String getPageContent(long id)

getChildren

public java.util.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)


Copyright © 2003-2014 Atlassian. All Rights Reserved.