com.atlassian.confluence.it.content
Class EditContentBean

java.lang.Object
  extended by com.atlassian.confluence.it.content.EditContentBean

public class EditContentBean
extends java.lang.Object


Field Summary
static java.lang.String CREATE_BLOGPOST_LINK_TEXT
           
static java.lang.String CREATE_BLOGPOST_TITLE_TEXT
           
static java.lang.String CREATE_PAGE_FORM_ID
           
static java.lang.String CREATE_PAGE_LINK_TEXT
           
static java.lang.String CREATE_PAGE_TITLE_TEXT
           
static java.lang.String MODE_MARKUP
           
static java.lang.String MODE_RICHTEXT
           
 
Constructor Summary
protected EditContentBean(net.sourceforge.jwebunit.junit.WebTester tester, java.lang.String formId)
           
 
Method Summary
static EditContentBean addComment(net.sourceforge.jwebunit.junit.WebTester tester)
           
 ViewContentBean cancel()
           
static EditContentBean createBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester)
          Returns a blog post creation bean from the current location of the web tester, by clicking on the 'Add News' link on the page.
static EditContentBean createBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String spaceName)
          Returns a blog post creation bean by going to the dashboard, clicking on the space name, then on the space home page, clicking on the 'Add News' link on the page.
static EditContentBean createChildPage(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String spaceKey, java.lang.String parentPageTitle)
          Returns a page creation bean by going directly to the URL of a page, then clicking on the 'Add Page' link on the page.
static EditContentBean createPage(net.sourceforge.jwebunit.junit.WebTester webTester)
          Returns a page creation bean from the current location of the web tester, by clicking on the 'Add Page' link on the page.
static EditContentBean createPage(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String spaceName)
          Returns a page creation bean by going to the dashboard, clicking on the space name, then on the space home page, clicking on the 'Add Page' link on the page.
static EditContentBean editComment(net.sourceforge.jwebunit.junit.WebTester tester, java.lang.String commentId)
           
static EditContentBean editPage(net.sourceforge.jwebunit.junit.WebTester webTester)
          Returns a page edit bean from the current location of the web tester, by clicking on the 'Edit' link on the page.
static EditContentBean editPage(net.sourceforge.jwebunit.junit.WebTester tester, java.lang.String spaceKey, java.lang.String pageTitle)
          Returns a page edit bean of the passed space and page title, by going direct to a consrtructed URL.
 boolean isWatchPageCheckboxVisible()
           
static EditContentBean replyToComment(net.sourceforge.jwebunit.junit.WebTester tester, java.lang.String commentId)
           
 ViewContentBean save()
           
 void setComment(java.lang.String comment)
          Set the version comment for this change.
 void setContent(java.lang.String content)
           
 void setMode(java.lang.String mode)
           
 void setParentPageString(java.lang.String parentPageString)
           
 void setPostingDay(java.lang.String postingDay)
           
 void setTitle(java.lang.String title)
           
 void setViewPermissionsUsers(java.lang.String viewPermissionsUsers)
           
 void setWatchPage(boolean watchPage)
          Set the watch page checkbox (currently on the comment form only).
 void setXhtml(java.lang.String xhtml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_MARKUP

public static final java.lang.String MODE_MARKUP
See Also:
Constant Field Values

MODE_RICHTEXT

public static final java.lang.String MODE_RICHTEXT
See Also:
Constant Field Values

CREATE_PAGE_LINK_TEXT

public static final java.lang.String CREATE_PAGE_LINK_TEXT
See Also:
Constant Field Values

CREATE_PAGE_TITLE_TEXT

public static final java.lang.String CREATE_PAGE_TITLE_TEXT
See Also:
Constant Field Values

CREATE_BLOGPOST_LINK_TEXT

public static final java.lang.String CREATE_BLOGPOST_LINK_TEXT
See Also:
Constant Field Values

CREATE_BLOGPOST_TITLE_TEXT

public static final java.lang.String CREATE_BLOGPOST_TITLE_TEXT
See Also:
Constant Field Values

CREATE_PAGE_FORM_ID

public static final java.lang.String CREATE_PAGE_FORM_ID
See Also:
Constant Field Values
Constructor Detail

EditContentBean

protected EditContentBean(net.sourceforge.jwebunit.junit.WebTester tester,
                          java.lang.String formId)
Method Detail

createPage

public static EditContentBean createPage(net.sourceforge.jwebunit.junit.WebTester webTester)
Returns a page creation bean from the current location of the web tester, by clicking on the 'Add Page' link on the page. Usually, you'll invoke this via ViewContentBean.createPage().


createPage

public static EditContentBean createPage(net.sourceforge.jwebunit.junit.WebTester webTester,
                                         java.lang.String spaceName)
Returns a page creation bean by going to the dashboard, clicking on the space name, then on the space home page, clicking on the 'Add Page' link on the page.


createChildPage

public static EditContentBean createChildPage(net.sourceforge.jwebunit.junit.WebTester webTester,
                                              java.lang.String spaceKey,
                                              java.lang.String parentPageTitle)
Returns a page creation bean by going directly to the URL of a page, then clicking on the 'Add Page' link on the page.


createBlogPost

public static EditContentBean createBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester)
Returns a blog post creation bean from the current location of the web tester, by clicking on the 'Add News' link on the page.


createBlogPost

public static EditContentBean createBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester,
                                             java.lang.String spaceName)
Returns a blog post creation bean by going to the dashboard, clicking on the space name, then on the space home page, clicking on the 'Add News' link on the page.


editPage

public static EditContentBean editPage(net.sourceforge.jwebunit.junit.WebTester webTester)
Returns a page edit bean from the current location of the web tester, by clicking on the 'Edit' link on the page. Usually, you'll invoke this via ViewContentBean.edit().


editPage

public static EditContentBean editPage(net.sourceforge.jwebunit.junit.WebTester tester,
                                       java.lang.String spaceKey,
                                       java.lang.String pageTitle)
Returns a page edit bean of the passed space and page title, by going direct to a consrtructed URL. Assumes that the page already exists.


addComment

public static EditContentBean addComment(net.sourceforge.jwebunit.junit.WebTester tester)

replyToComment

public static EditContentBean replyToComment(net.sourceforge.jwebunit.junit.WebTester tester,
                                             java.lang.String commentId)

editComment

public static EditContentBean editComment(net.sourceforge.jwebunit.junit.WebTester tester,
                                          java.lang.String commentId)

setTitle

public void setTitle(java.lang.String title)

setContent

public void setContent(java.lang.String content)

setComment

public void setComment(java.lang.String comment)
Set the version comment for this change. Only applies to pages.


setXhtml

public void setXhtml(java.lang.String xhtml)

setViewPermissionsUsers

public void setViewPermissionsUsers(java.lang.String viewPermissionsUsers)

setParentPageString

public void setParentPageString(java.lang.String parentPageString)

setPostingDay

public void setPostingDay(java.lang.String postingDay)

setMode

public void setMode(java.lang.String mode)

save

public ViewContentBean save()

cancel

public ViewContentBean cancel()

setWatchPage

public void setWatchPage(boolean watchPage)
Set the watch page checkbox (currently on the comment form only).


isWatchPageCheckboxVisible

public boolean isWatchPageCheckboxVisible()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.