com.atlassian.confluence
Class PageAcceptanceTester

java.lang.Object
  extended by com.atlassian.confluence.PageAcceptanceTester

Deprecated. Please use the appropriate page objects in com.atlassian.confluence.it. If needed methods should be moved the appropriate page objects and unnecessary UI calls should be replaced with RPC calls.

public class PageAcceptanceTester
extends Object


Constructor Summary
PageAcceptanceTester(ConfluenceRpc rpc, ConfluenceRpc wikiMarkupRpc, net.sourceforge.jwebunit.junit.WebTester webTester)
          Deprecated.  
 
Method Summary
 ViewContentBean createPage(String spaceKey, String title, String content, String parentPageTitle)
          Deprecated.  
 ViewContentBean createPageWithViewRestrictions(String spaceKey, String title, String content, String parentPageTitle, String viewPermissionUsers)
          Deprecated.  
 void editPageContent(String content)
          Deprecated. Sets content via RPC, as the admin user.
 void editPageWithContent(String spaceKey, String title, String content)
          Deprecated.  
protected static long getCurrentPageId()
          Deprecated.  
 long getPageId(String spaceKey, String title)
          Deprecated.  
 void gotoPageWithError(String url)
          Deprecated.  
 void movePage(String title, Space oldSpace, Space newSpace)
          Deprecated. Use EditContentBean.setParentPageString(String) or appropriate rpc call such as ConfluenceRpc.movePage(Page, Page, String)
 void movePageToNewParent(String spaceKey, String title, String newParentPage)
          Deprecated.  
 void movePageToNewParent(String oldSpaceKey, String title, String newSpaceKey, String newParentPage)
          Deprecated.  
 void movePageToNewSpace(String spaceKey, String title, String newSpaceKey)
          Deprecated.  
 void removePageLabel(String spaceKey, String pageTitle)
          Deprecated.  
 void renamePage(String spaceKey, String originalPageTitle, String newPageTitle)
          Deprecated.  
 JSONObject setBlogLabels(Space space, String blogTitle, String labels)
          Deprecated. Add the specified labels to the blog
 void setPageEditPermissionsForGroups(String spaceKey, String pageTitle, String groups)
          Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)
 void setPageEditPermissionsForUsers(String spaceKey, String pageTitle, String users)
          Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)
 JSONObject setPageLabels(String spaceKey, String pageTitle, String labels)
          Deprecated. Add the specified labels to the page
 void setPageViewPermissionsForGroups(String spaceKey, String pageTitle, String groups)
          Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)
 void setPageViewPermissionsForUsers(String spaceKey, String pageTitle, String users)
          Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)
 void viewLabel(String spaceKey, String labelName)
          Deprecated.  
 ViewContentBean watchPage(String spaceKey, String pageTitle)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageAcceptanceTester

public PageAcceptanceTester(ConfluenceRpc rpc,
                            ConfluenceRpc wikiMarkupRpc,
                            net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated. 
Method Detail

getCurrentPageId

protected static long getCurrentPageId()
Deprecated. 

movePageToNewSpace

public void movePageToNewSpace(String spaceKey,
                               String title,
                               String newSpaceKey)
Deprecated. 

movePageToNewParent

public void movePageToNewParent(String spaceKey,
                                String title,
                                String newParentPage)
Deprecated. 

movePageToNewParent

public void movePageToNewParent(String oldSpaceKey,
                                String title,
                                String newSpaceKey,
                                String newParentPage)
Deprecated. 

movePage

@Deprecated
public void movePage(String title,
                                Space oldSpace,
                                Space newSpace)
Deprecated. Use EditContentBean.setParentPageString(String) or appropriate rpc call such as ConfluenceRpc.movePage(Page, Page, String)


getPageId

public long getPageId(String spaceKey,
                      String title)
Deprecated. 

viewLabel

public void viewLabel(String spaceKey,
                      String labelName)
Deprecated. 

createPageWithViewRestrictions

public ViewContentBean createPageWithViewRestrictions(String spaceKey,
                                                      String title,
                                                      String content,
                                                      String parentPageTitle,
                                                      @Nullable
                                                      String viewPermissionUsers)
Deprecated. 

createPage

public ViewContentBean createPage(String spaceKey,
                                  String title,
                                  String content,
                                  String parentPageTitle)
Deprecated. 

renamePage

public void renamePage(String spaceKey,
                       String originalPageTitle,
                       String newPageTitle)
Deprecated. 

watchPage

public ViewContentBean watchPage(String spaceKey,
                                 String pageTitle)
Deprecated. 

setPageViewPermissionsForUsers

@Deprecated
public void setPageViewPermissionsForUsers(String spaceKey,
                                                      String pageTitle,
                                                      String users)
Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
users - the users to restrict view permissions to as a comma separated list of usernames.

setPageViewPermissionsForGroups

@Deprecated
public void setPageViewPermissionsForGroups(String spaceKey,
                                                       String pageTitle,
                                                       String groups)
Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
groups - the groups to restrict view permissions to as a comma separated list of group names.

setPageEditPermissionsForUsers

@Deprecated
public void setPageEditPermissionsForUsers(String spaceKey,
                                                      String pageTitle,
                                                      String users)
Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
users - the users to restrict edit permissions to as a comma separated list of usernames.

setPageEditPermissionsForGroups

@Deprecated
public void setPageEditPermissionsForGroups(String spaceKey,
                                                       String pageTitle,
                                                       String groups)
Deprecated. Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity)

Edit the permissions of the specified page as the current user.

One doesn't need to navigate to the page before calling this method.

Parameters:
spaceKey - the space the page belongs to
pageTitle - the title of the page
groups - the groups to restrict edit permissions to as a comma separated list of group names.

setPageLabels

public JSONObject setPageLabels(String spaceKey,
                                String pageTitle,
                                String labels)
                         throws JSONException
Deprecated. 
Add the specified labels to the page

Parameters:
spaceKey - the space key
pageTitle - the page title
labels - the labels
Returns:
a JSONObject with the server response
Throws:
JSONException - .

setBlogLabels

public JSONObject setBlogLabels(Space space,
                                String blogTitle,
                                String labels)
                         throws JSONException
Deprecated. 
Add the specified labels to the blog

Parameters:
space - the space
blogTitle - the blog title
labels - the labels
Returns:
a JSONObject with the server response
Throws:
JSONException - .

removePageLabel

public void removePageLabel(String spaceKey,
                            String pageTitle)
Deprecated. 

editPageContent

public void editPageContent(String content)
Deprecated. 
Sets content via RPC, as the admin user.

Parameters:
content - new page content

editPageWithContent

public void editPageWithContent(String spaceKey,
                                String title,
                                String content)
Deprecated. 

gotoPageWithError

public void gotoPageWithError(String url)
Deprecated. 


Copyright © 2003-2013 Atlassian. All Rights Reserved.