com.atlassian.confluence.it.rpc.delegates
Class ContentRpc

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.delegates.ContentRpc

public class ContentRpc
extends Object

Makes remote calls to perform CRUD operations on Content entities. This class should be the only one in test-support that knows about Content Expansions.


Field Summary
static ContentRepresentation DEFAULT_REPRESENTATION
           
 
Constructor Summary
ContentRpc(AuthenticatedWebResourceProvider provider)
           
 
Method Summary
 BlogPost createBlogPost(BlogPost blogPost, ContentRepresentation format)
           
 Comment createComment(Comment comment, ContentRepresentation format)
           
 Page createPage(Page page, ContentRepresentation format)
           
 boolean delete(ContentId contentId)
          Trashes trashable content and purges forever un-trashable content.
 BlogPost getBlogPost(ContentId id)
           
 List<Page> getChildren(ContentId parentPageId)
           
 Comment getComment(ContentId id)
           
 Page getPage(ContentId pageId)
           
 Page getPage(String spaceKey, String title)
           
 void purge(ContentId id)
          Purges trashed content from the system forever.
 BlogPost updateBlogPost(BlogPost blogPost, boolean minorEdit, String versionComment, ContentRepresentation format)
           
 Comment updateComment(Comment comment, ContentRepresentation format)
           
 Page updatePage(Page page, boolean minorEdit, String versionComment, ContentRepresentation format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REPRESENTATION

public static final ContentRepresentation DEFAULT_REPRESENTATION
Constructor Detail

ContentRpc

public ContentRpc(AuthenticatedWebResourceProvider provider)
Method Detail

getPage

public Page getPage(ContentId pageId)

getPage

public Page getPage(String spaceKey,
                    String title)

getBlogPost

public BlogPost getBlogPost(ContentId id)

getComment

public Comment getComment(ContentId id)

createPage

public Page createPage(Page page,
                       ContentRepresentation format)

createBlogPost

public BlogPost createBlogPost(BlogPost blogPost,
                               ContentRepresentation format)

createComment

public Comment createComment(Comment comment,
                             ContentRepresentation format)

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

public Comment updateComment(Comment comment,
                             ContentRepresentation format)

delete

public boolean delete(ContentId contentId)
Trashes trashable content and purges forever un-trashable content. Purge trashable content with purge(ContentId).


purge

public void purge(ContentId id)
Purges trashed content from the system forever.


getChildren

public List<Page> getChildren(ContentId parentPageId)


Copyright © 2003–2015 Atlassian. All rights reserved.