Class ContentRpc
java.lang.Object
com.atlassian.confluence.it.rpc.delegates.ContentRpc
Makes remote calls to perform CRUD operations on Content entities.
This class should be the only one in test-support that knows about Content Expansion
s.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBlogPost
(BlogPost blogPost, ContentRepresentation format) createComment
(Comment comment, ContentRepresentation format) createContent
(Content content) createPage
(Page page, ContentRepresentation format) boolean
Trashes trashable content and purges forever un-trashable content.getBlogPost
(ContentId id) getChildren
(ContentId parentPageId) getComment
(ContentId id) getWithAnyStatus
(ContentId contentId, Expansion... expansions) void
Purges trashed content from the system forever.updateBlogPost
(BlogPost blogPost, boolean minorEdit, String versionComment, ContentRepresentation format) updateComment
(Comment comment, ContentRepresentation format) updatePage
(Page page, boolean minorEdit, String versionComment, ContentRepresentation format)
-
Field Details
-
DEFAULT_REPRESENTATION
-
-
Constructor Details
-
ContentRpc
-
-
Method Details
-
getPage
-
getPage
-
getBlogPost
-
getComment
-
createContent
-
createPage
-
createBlogPost
-
createComment
-
updatePage
public Page updatePage(Page page, boolean minorEdit, String versionComment, ContentRepresentation format) -
updateBlogPost
public BlogPost updateBlogPost(BlogPost blogPost, boolean minorEdit, String versionComment, ContentRepresentation format) -
updateComment
-
delete
Trashes trashable content and purges forever un-trashable content.Purge trashable content with
purge(ContentId)
. -
purge
Purges trashed content from the system forever. -
getChildren
-
get
-
getWithAnyStatus
-