Class XmlRpcContentClient
- java.lang.Object
-
- com.atlassian.confluence.it.rpc.xmlrpc.XmlRpcContentClient
-
public class XmlRpcContentClient extends Object
Makes XML-RPC calls for Confluence Content.
-
-
Constructor Summary
Constructors Constructor Description XmlRpcContentClient(ConfluenceRpc rpc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
createAttachment(long contentId, Attachment attachment)
long
createAttachment(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 thePage
object for a page, known to exist in confluence.Page
getExistingPage(Space space, String pageTitle)
Retrieve the fully populatedPage
object for a page, known to exist in confluence.String
getPageContent(long id)
void
purgeFromTrash(Space space, long pageId)
void
removeComment(long commentId)
void
removeComment(Comment comment)
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, seesaveBlogPost(BlogPost)
.
-
-
-
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 populatedPage
object for a page, known to exist in confluence.
-
getExistingPage
public Page getExistingPage(long pageId)
Retrieve thePage
object for a page, known to exist in confluence.
-
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, seesaveBlogPost(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)
-
-