public class XmlRpcContentClient extends Object
Constructor and Description |
---|
XmlRpcContentClient(ConfluenceRpc rpc) |
Modifier and Type | Method and Description |
---|---|
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) . |
public XmlRpcContentClient(ConfluenceRpc rpc)
public long createPage(Page page)
public Map<String,String> createPage(String spaceKey, String title, String content, long parentPageId)
public Page getExistingPage(Space space, String pageTitle)
Page
object for a page, known to
exist in confluence.public Page getExistingPage(long pageId)
Page
object for a page, known to
exist in confluence.public BlogPost getBlogPost(long pageId)
public Comment getComment(AbstractPageEntity pageEntity, long commentId)
public long createBlogPost(BlogPost blogPost)
public long saveBlogPost(BlogPost blogPost)
public boolean removePage(Page page)
public boolean removePage(long pageId)
public void removeComment(Comment comment)
public void removeComment(long commentId)
public long createComment(Comment comment)
public long createComment(Comment comment, long parentCommentId)
public long saveComment(Comment comment)
public long savePage(Page page)
public long updatePage(Page page, boolean minorEdit, String versionComment)
saveBlogPost(BlogPost)
.public String getPageContent(long id)
public List<Page> getChildren(long parentPageId)
public long createAttachment(Attachment attachment)
public long createAttachment(long contentId, Attachment attachment)
public void purgeFromTrash(Space space, long pageId)
Copyright © 2003–2018 Atlassian. All rights reserved.