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

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

public class ContentRpc
extends java.lang.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)
           
 BlogPost getBlogPost(ContentId id)
           
 java.util.List<Page> getChildren(ContentId parentPageId)
           
 Comment getComment(ContentId id)
           
 Page getPage(ContentId pageId)
           
 Page getPage(java.lang.String spaceKey, java.lang.String title)
           
 BlogPost updateBlogPost(BlogPost blogPost, boolean minorEdit, java.lang.String versionComment, ContentRepresentation format)
           
 Comment updateComment(Comment comment, ContentRepresentation format)
           
 Page updatePage(Page page, boolean minorEdit, java.lang.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(java.lang.String spaceKey,
                    java.lang.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,
                       java.lang.String versionComment,
                       ContentRepresentation format)

updateBlogPost

public BlogPost updateBlogPost(BlogPost blogPost,
                               boolean minorEdit,
                               java.lang.String versionComment,
                               ContentRepresentation format)

updateComment

public Comment updateComment(Comment comment,
                             ContentRepresentation format)

delete

public boolean delete(ContentId contentId)

getChildren

public java.util.List<Page> getChildren(ContentId parentPageId)


Copyright © 2003-2014 Atlassian. All Rights Reserved.