|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.PageAcceptanceTester
public class PageAcceptanceTester
Constructor Summary | |
---|---|
PageAcceptanceTester(ConfluenceRpc rpc,
ConfluenceRpc wikiMarkupRpc,
net.sourceforge.jwebunit.junit.WebTester webTester)
|
Method Summary | |
---|---|
ViewContentBean |
createPage(java.lang.String spaceKey,
java.lang.String title,
java.lang.String content,
java.lang.String parentPageTitle)
|
ViewContentBean |
createPageWithViewRestrictions(java.lang.String spaceKey,
java.lang.String title,
java.lang.String content,
java.lang.String parentPageTitle,
java.lang.String viewPermissionUsers)
|
void |
editPageContent(java.lang.String content)
Sets content via RPC, as the admin user. |
void |
editPageWithContent(java.lang.String spaceKey,
java.lang.String title,
java.lang.String content)
|
protected static long |
getCurrentPageId()
|
long |
getPageId(java.lang.String spaceKey,
java.lang.String title)
|
void |
gotoPageWithError(java.lang.String url)
|
void |
movePage(java.lang.String title,
Space oldSpace,
Space newSpace)
Deprecated. since 5.0 Use an EditContentBean
or appropriate rpc call such as ConfluenceRpc.movePageToTopLevel(com.atlassian.confluence.it.Page, com.atlassian.confluence.it.Space) |
void |
movePageToNewParent(java.lang.String spaceKey,
java.lang.String title,
java.lang.String newParentPage)
|
void |
movePageToNewParent(java.lang.String oldSpaceKey,
java.lang.String title,
java.lang.String newSpaceKey,
java.lang.String newParentPage)
|
void |
movePageToNewSpace(java.lang.String spaceKey,
java.lang.String title,
java.lang.String newSpaceKey)
|
void |
removePageLabel(java.lang.String spaceKey,
java.lang.String pageTitle)
|
void |
renamePage(java.lang.String spaceKey,
java.lang.String originalPageTitle,
java.lang.String newPageTitle)
|
org.codehaus.jackson.JsonNode |
setBlogLabels(Space space,
java.lang.String blogTitle,
java.lang.String labels)
Add the specified labels to the blog |
void |
setPageEditPermissionsForGroups(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String groups)
Deprecated. Since 5.0Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity) |
void |
setPageEditPermissionsForUsers(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String users)
Deprecated. Since 5.0 Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity) |
org.codehaus.jackson.JsonNode |
setPageLabels(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String labels)
Calls setPageLabels(String, String, String, com.atlassian.confluence.it.User) with
the default user of User.ADMIN |
org.codehaus.jackson.JsonNode |
setPageLabels(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String labels,
User user)
Add the specified labels to the page |
void |
setPageViewPermissionsForGroups(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String groups)
Deprecated. Since 5.0 Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity) |
void |
setPageViewPermissionsForUsers(java.lang.String spaceKey,
java.lang.String pageTitle,
java.lang.String users)
Deprecated. since 5.0 Use ConfluenceRpc.grantContentPermission(com.atlassian.confluence.it.content.security.ContentPermission, com.atlassian.confluence.it.ContentEntity) |
void |
viewLabel(java.lang.String spaceKey,
java.lang.String labelName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageAcceptanceTester(ConfluenceRpc rpc, ConfluenceRpc wikiMarkupRpc, net.sourceforge.jwebunit.junit.WebTester webTester)
Method Detail |
---|
protected static long getCurrentPageId()
public void movePageToNewSpace(java.lang.String spaceKey, java.lang.String title, java.lang.String newSpaceKey)
public void movePageToNewParent(java.lang.String spaceKey, java.lang.String title, java.lang.String newParentPage)
public void movePageToNewParent(java.lang.String oldSpaceKey, java.lang.String title, java.lang.String newSpaceKey, java.lang.String newParentPage)
@Deprecated public void movePage(java.lang.String title, Space oldSpace, Space newSpace)
EditContentBean
or appropriate rpc call such as ConfluenceRpc.movePageToTopLevel(com.atlassian.confluence.it.Page, com.atlassian.confluence.it.Space)
public long getPageId(java.lang.String spaceKey, java.lang.String title)
public void viewLabel(java.lang.String spaceKey, java.lang.String labelName)
public ViewContentBean createPageWithViewRestrictions(java.lang.String spaceKey, java.lang.String title, java.lang.String content, java.lang.String parentPageTitle, @Nullable java.lang.String viewPermissionUsers)
public ViewContentBean createPage(java.lang.String spaceKey, java.lang.String title, java.lang.String content, java.lang.String parentPageTitle)
public void renamePage(java.lang.String spaceKey, java.lang.String originalPageTitle, java.lang.String newPageTitle)
@Deprecated public void setPageViewPermissionsForUsers(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String users)
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.
spaceKey
- the space the page belongs topageTitle
- the title of the pageusers
- the users to restrict view permissions to as a comma separated list of usernames.@Deprecated public void setPageViewPermissionsForGroups(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String groups)
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.
spaceKey
- the space the page belongs topageTitle
- the title of the pagegroups
- the groups to restrict view permissions to as a comma separated list of group names.@Deprecated public void setPageEditPermissionsForUsers(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String users)
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.
spaceKey
- the space the page belongs topageTitle
- the title of the pageusers
- the users to restrict edit permissions to as a comma separated list of usernames.@Deprecated public void setPageEditPermissionsForGroups(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String groups)
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.
spaceKey
- the space the page belongs topageTitle
- the title of the pagegroups
- the groups to restrict edit permissions to as a comma separated list of group names.public org.codehaus.jackson.JsonNode setPageLabels(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String labels, User user) throws java.lang.Exception
spaceKey
- the space keypageTitle
- the page titlelabels
- the labelsuser
- the user that adding the labels
java.lang.Exception
public org.codehaus.jackson.JsonNode setPageLabels(java.lang.String spaceKey, java.lang.String pageTitle, java.lang.String labels) throws java.lang.Exception
setPageLabels(String, String, String, com.atlassian.confluence.it.User)
with
the default user of User.ADMIN
java.lang.Exception
public org.codehaus.jackson.JsonNode setBlogLabels(Space space, java.lang.String blogTitle, java.lang.String labels) throws java.lang.Exception
space
- the spaceblogTitle
- the blog titlelabels
- the labels
java.lang.Exception
public void removePageLabel(java.lang.String spaceKey, java.lang.String pageTitle)
public void editPageContent(java.lang.String content)
content
- new page contentpublic void editPageWithContent(java.lang.String spaceKey, java.lang.String title, java.lang.String content)
public void gotoPageWithError(java.lang.String url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |