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


Nested Class Summary
static class EditContentBean.Mode
           
 
Field Summary
static java.lang.String CREATE_BLOGPOST_LINK_ID
           
static java.lang.String CREATE_BLOGPOST_LINK_TEXT
           
static java.lang.String CREATE_BLOGPOST_TITLE_TEXT
           
static java.lang.String CREATE_COMMENT_LINK_ID
           
static java.lang.String CREATE_PAGE_FORM_ID
           
static java.lang.String CREATE_PAGE_LINK_ID
           
static java.lang.String CREATE_PAGE_LINK_TEXT
           
static java.lang.String CREATE_PAGE_TITLE_TEXT
           
 
Constructor Summary
protected EditContentBean(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String formId)
           
protected EditContentBean(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String formId, boolean isCreate)
           
 
Method Summary
static EditContentBean addComment(net.sourceforge.jwebunit.junit.WebTester webTester)
           
 ViewContentBean cancel()
           
 void checkMinorEdit()
           
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 spaceKey)
          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 spaceKey)
          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 editBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester)
           
static EditContentBean editComment(net.sourceforge.jwebunit.junit.WebTester webTester, 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 webTester, 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.
 java.lang.String getContent()
           
 boolean isWatchPageCheckboxVisible()
           
static EditContentBean replyToComment(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String commentId)
           
 ViewContentBean save()
           
 ViewContentBean saveMergeContent()
           
 void setComment(java.lang.String comment)
          Set the version comment for this change.
 void setContent(java.lang.String content)
           
 void setMode(EditContentBean.Mode mode)
           
 void setParentPageString(java.lang.String parentPageString)
           
 void setPostingDay(java.lang.String postingDay)
           
 void setTitle(java.lang.String title)
           
 void setViewPermissionsGroups(java.lang.String viewPermissionsGroups)
           
 void setViewPermissionsUsers(java.lang.String viewPermissionsUsers)
           
 void setWatchPage(boolean watchPage)
          Set the watch page checkbox (currently on the comment form only).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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_LINK_ID

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

CREATE_BLOGPOST_LINK_ID

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

CREATE_COMMENT_LINK_ID

public static final java.lang.String CREATE_COMMENT_LINK_ID
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 webTester,
                          java.lang.String formId)

EditContentBean

protected EditContentBean(net.sourceforge.jwebunit.junit.WebTester webTester,
                          java.lang.String formId,
                          boolean isCreate)
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 spaceKey)
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 spaceKey)
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().


editBlogPost

public static EditContentBean editBlogPost(net.sourceforge.jwebunit.junit.WebTester webTester)

editPage

public static EditContentBean editPage(net.sourceforge.jwebunit.junit.WebTester webTester,
                                       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 webTester)

replyToComment

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

editComment

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

setTitle

public void setTitle(java.lang.String title)

setContent

public void setContent(java.lang.String content)

getContent

public java.lang.String getContent()

setComment

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


setViewPermissionsUsers

public void setViewPermissionsUsers(java.lang.String viewPermissionsUsers)

setViewPermissionsGroups

public void setViewPermissionsGroups(java.lang.String viewPermissionsGroups)

setParentPageString

public void setParentPageString(java.lang.String parentPageString)

setPostingDay

public void setPostingDay(java.lang.String postingDay)

setMode

public void setMode(EditContentBean.Mode mode)

checkMinorEdit

public void checkMinorEdit()

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()

saveMergeContent

public ViewContentBean saveMergeContent()


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