com.atlassian.confluence
Class AbstractPermissionsAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.ThreadLocalWebTestCase
              extended by com.atlassian.confluence.AbstractAtlassianWebTestCase
                  extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
                      extended by com.atlassian.confluence.AbstractPermissionsAcceptanceTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
EditGlobalPermissionsAcceptanceTest, EditSpacePermissionsAcceptanceTest, LdapUpperCaseUserTest, NotificationsAcceptanceTest, PagePermissionsAcceptanceTest, PermissionsRpcAcceptanceTest, SpaceAdminPermissionsAcceptanceTest, SpacePermissionsAcceptanceTest

public abstract class AbstractPermissionsAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
protected static String ADMIN_GROUP_PERMISSION
           
protected static String CONF_USERS_PERMISSION
           
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, ANONYMOUS_USER, BROWSE_MENU_LINK_ID, context, CROWD_MODE, DASHBOARD_RECENT_UPDATES_URL, DIRECTORY_CONFIG, filesToDelete, log, logAdjuster, loginHelper, RANDOM, rpc, serverStateManager, TEST_ADMIN, TEST_ADMIN_EMAIL, TEST_ADMIN_FULLNAME, TEST_ADMIN_PASSWORD, TEST_ADMIN_USERNAME, TEST_BLOG, TEST_COMMENT, TEST_GEN_EMAIL1, TEST_GEN_EMAIL2, TEST_GEN_FULLNAME1, TEST_GEN_FULLNAME2, TEST_GEN_PASSWORD1, TEST_GEN_PASSWORD2, TEST_GEN_USERNAME1, TEST_GEN_USERNAME2, TEST_GROUP1, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, testData, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, userHelper, VIEW_PERSONAL_SPACE_LINK, wikiMarkupRpc
 
Constructor Summary
AbstractPermissionsAcceptanceTest()
           
AbstractPermissionsAcceptanceTest(String s)
           
 
Method Summary
protected  void assertDoesNotHavePermission(String group, Permission permission)
           
protected  void assertDoesNotHavePermission(User user, String permission)
           
protected  void assertHasPermission(String group, Permission permission)
           
protected  void assertHasPermission(String group, Permission permission, boolean expectedPermission)
          Check whether the named group has the given permission in the form table when viewing permissions.
protected  void assertHasPermission(User user, String permission)
          Check that the named user has the given permission in the form table when viewing permissions.
protected  void assertUserHasEntryInViewPermissionsTable(User user)
          Checks that the user has an entry in the form table when viewing permissions.
protected  void assertUserHasNoPermissionsInViewPermissionsTable(User user)
          Checks that the user has no entry in the form table when viewing permissions.
protected  void assertUserPermissionErrorInViewPermissionsTable(User user)
          Check that the named user has the given permission in the form table when viewing permissions.
protected  void assertUserPermissionInViewPermissionsTable(User user, String permission, boolean expectedPermission)
          Check that the named user has the given permission in the form table when viewing permissions.
protected  String buildCheckboxParameterName(String permissionValue, Group group)
          Deprecated. since 3.5 use SpacePermission.toCheckboxName(Entity) or GlobalPermission.toCheckboxName(Entity) instead
protected  String buildCheckboxParameterName(String permissionValue, User user)
          Deprecated. since 3.5 use SpacePermission.toCheckboxName(Entity) or GlobalPermission.toCheckboxName(Entity) instead
protected  void grantAdminSpaceToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantCreateAttachmentToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantCreateBlogToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantCreateCommentToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantCreatePageToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantExportPageToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantExportSpaceToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantGlobalPermissionToGroup(GlobalPermission permission, Group group)
          Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead
protected  void grantGlobalPermissionToUser(GlobalPermission permission, User user)
          Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead
protected  void grantRemoveAttachmentToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantRemoveBlogToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantRemoveCommentToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantRemovePageToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantSetPagePermissionsToTestUser()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantViewSpacePermissionToAnonymous()
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void removeAdminSpaceFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeCreateAttachmentFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeCreateBlogFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeCreateCommentFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeCreatePageFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeEditPermissions(String pageTitle)
           
protected  void removeExportPageFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeExportSpaceFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeRemoveAttachmentFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeRemoveBlogFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeRemoveCommentFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeRemovePageFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeSetPagePermissionsFromTestUser()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void removeViewPermissions(String pageTitle)
           
protected  void removeViewSpacePermissionToAnonymous()
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void revokeGlobalPermissionFromUser(GlobalPermission permission, User user)
          Deprecated. since 3.5 use GlobalPermissions.revokePermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead
protected  void revokeSpacePermissionFromGroup(GlobalPermission permission, Group group)
          Deprecated. since 3.5 use GlobalPermissions.revokePermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
addUserToGroupViaHelper, addWatchPage, assertImagePresent, assertImageValid, assertLinkPresentWithExactTextAndClass, attachFile, attachFile, attachFileWithName, createGroup, createGroupViaHelper, createMail, createPage, createPageWithViewRestrictions, createSpaceViaWebUI, createTestSpaceViaWebUI, createUserViaHelper, disableAnonymousAccess, editPage, editPageContent, editPageWithContent, editSpaceDescription, editSpacePermsForm, enableAnonymousAccess, ensureTestUserCanViewTestSpace, forceViewGlobalAdmin, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getCurrentMailQueueSize, getCurrentPageId, getFriendlyRelativeDate, getLoginButtonId, getPageId, getPluginHelper, gotoPageWithError, importMail, importMailAndAssertNoRunningTask, isClustered, logIn, logIn, logIn, logInAs, logInAs, logInAs, logInAsAdminAtHomepage, logInAsAtHomepage, logInAsAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, loginViaForm, logout, movePage, movePageToNewParent, movePageToNewParent, movePageToNewSpace, rebuildIndex, removeGroup, removePageLabel, removePageOrBlogById, removeTestUser1ViaHelper, removeUserViaHelper, renamePage, search, setAttachmentMaxUploadSize, setBlogLabels, setEditPermissionsForGroups, setEditPermissionsForUsers, setMaxAttachmentsInUI, setPageLabels, setThreadedComments, setUp, setUp, setUpTestNG, setViewPermissionsForGroups, setViewPermissionsForUsers, tearDown, tearDownTestNG, viewGlobalPermissions, viewHomepage, viewLabel, viewPage, viewPage, viewPeopleDirectory, viewSpaceAdmin, viewSpaceAdvanced, viewSpaceContent, viewSpacePermissions, viewSpaceSummary, viewSpaceSummary, viewTrash, watchPage, watchSpace, watchSpace
 
Methods inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
assertCollectionContainsKeyWithValue, assertContains, assertDoesNotContain, assertEndsWith, assertLinkNotPresentWithHrefContaining, assertLinkPresentWithHref, assertLinkPresentWithHrefContaining, assertLinkPresentWithTextAndHref, assertPageTitleEquals, assertServerResponseContains, assertServerResponseDoesNotContain, assertStartsWith, assertStatusCode, assertTextPresentInPageSource, assertTextsPresentInOrder, assertTextsPresentInOrder, assertTitleEquals, assertTitleEquals, getGroupFromResponse, setTextFieldUnlessBlank
 
Methods inherited from class com.atlassian.confluence.ThreadLocalWebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, removeThreadLocal, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setScriptingEnabled, setTestContext, setTester, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox, wrapWithPageSourceOnError
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONF_USERS_PERMISSION

protected static String CONF_USERS_PERMISSION

ADMIN_GROUP_PERMISSION

protected static String ADMIN_GROUP_PERMISSION
Constructor Detail

AbstractPermissionsAcceptanceTest

public AbstractPermissionsAcceptanceTest()

AbstractPermissionsAcceptanceTest

public AbstractPermissionsAcceptanceTest(String s)
Method Detail

grantCreatePageToTestUser

@Deprecated
protected void grantCreatePageToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeCreatePageFromTestUser

@Deprecated
protected void removeCreatePageFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantExportPageToTestUser

@Deprecated
protected void grantExportPageToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeExportPageFromTestUser

@Deprecated
protected void removeExportPageFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantSetPagePermissionsToTestUser

@Deprecated
protected void grantSetPagePermissionsToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeSetPagePermissionsFromTestUser

@Deprecated
protected void removeSetPagePermissionsFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantRemovePageToTestUser

@Deprecated
protected void grantRemovePageToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeRemovePageFromTestUser

@Deprecated
protected void removeRemovePageFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantCreateBlogToTestUser

@Deprecated
protected void grantCreateBlogToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeCreateBlogFromTestUser

@Deprecated
protected void removeCreateBlogFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantRemoveBlogToTestUser

@Deprecated
protected void grantRemoveBlogToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeRemoveBlogFromTestUser

@Deprecated
protected void removeRemoveBlogFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantCreateCommentToTestUser

@Deprecated
protected void grantCreateCommentToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeCreateCommentFromTestUser

@Deprecated
protected void removeCreateCommentFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantRemoveCommentToTestUser

@Deprecated
protected void grantRemoveCommentToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeRemoveCommentFromTestUser

@Deprecated
protected void removeRemoveCommentFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantCreateAttachmentToTestUser

@Deprecated
protected void grantCreateAttachmentToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeCreateAttachmentFromTestUser

@Deprecated
protected void removeCreateAttachmentFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantRemoveAttachmentToTestUser

@Deprecated
protected void grantRemoveAttachmentToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeRemoveAttachmentFromTestUser

@Deprecated
protected void removeRemoveAttachmentFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantExportSpaceToTestUser

@Deprecated
protected void grantExportSpaceToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeExportSpaceFromTestUser

@Deprecated
protected void removeExportSpaceFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


grantAdminSpaceToTestUser

@Deprecated
protected void grantAdminSpaceToTestUser()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeAdminSpaceFromTestUser

@Deprecated
protected void removeAdminSpaceFromTestUser()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


removeViewPermissions

protected void removeViewPermissions(String pageTitle)

removeEditPermissions

protected void removeEditPermissions(String pageTitle)

grantViewSpacePermissionToAnonymous

@Deprecated
protected void grantViewSpacePermissionToAnonymous()
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead


removeViewSpacePermissionToAnonymous

@Deprecated
protected void removeViewSpacePermissionToAnonymous()
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead


assertUserHasNoPermissionsInViewPermissionsTable

protected void assertUserHasNoPermissionsInViewPermissionsTable(User user)
Checks that the user has no entry in the form table when viewing permissions.

Parameters:
user - the user expected to not have any permissions

assertUserHasEntryInViewPermissionsTable

protected void assertUserHasEntryInViewPermissionsTable(User user)
Checks that the user has an entry in the form table when viewing permissions.

Parameters:
user - the user expected to have some permissions (or a row to allow giving them permissions).

assertHasPermission

protected void assertHasPermission(User user,
                                   String permission)
Check that the named user has the given permission in the form table when viewing permissions. To check a user has no permissions, use assertUserHasNoPermissionsInViewPermissionsTable(User).

Parameters:
user - the user being tested
permission - the permission

assertDoesNotHavePermission

protected void assertDoesNotHavePermission(User user,
                                           String permission)

assertUserPermissionInViewPermissionsTable

protected void assertUserPermissionInViewPermissionsTable(User user,
                                                          String permission,
                                                          boolean expectedPermission)
Check that the named user has the given permission in the form table when viewing permissions. To check a user has no permissions, use assertUserHasNoPermissionsInViewPermissionsTable(User).

Parameters:
user - the user being tested
permission - the permission
expectedPermission - true if the user should have the permission, false if not

assertUserPermissionErrorInViewPermissionsTable

protected void assertUserPermissionErrorInViewPermissionsTable(User user)
Check that the named user has the given permission in the form table when viewing permissions.

Parameters:
user - the user expected to have the permissions

assertHasPermission

protected void assertHasPermission(String group,
                                   Permission permission)

assertDoesNotHavePermission

protected void assertDoesNotHavePermission(String group,
                                           Permission permission)

assertHasPermission

protected void assertHasPermission(String group,
                                   Permission permission,
                                   boolean expectedPermission)
Check whether the named group has the given permission in the form table when viewing permissions. Note that this check is only valid if the group does have "can use" permission. Otherwise its row will not be present in the table

Parameters:
group - the name of the group expected to have the permissions
permission -
expectedPermission - boolean true if the group is expected to have the permission

grantGlobalPermissionToUser

@Deprecated
protected void grantGlobalPermissionToUser(GlobalPermission permission,
                                                      User user)
Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead

Grants the specified permission to a specified user via the web interface. Must already be logged in as a user with administrator permissions. User must already have global permissions.

Parameters:
permission - the permission to be granted (cannot be the CAN_USE permission)
user - the user to be granted the permission

grantGlobalPermissionToGroup

@Deprecated
protected void grantGlobalPermissionToGroup(GlobalPermission permission,
                                                       Group group)
Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead

Grants the specified permission to a specified group via the web interface. Must already be logged in as a user with administrator permissions. Group must already have global permissions.

Parameters:
permission - the permission to be granted (cannot be the CAN_USE permission)
group - the group to be granted the permission

revokeGlobalPermissionFromUser

@Deprecated
protected void revokeGlobalPermissionFromUser(GlobalPermission permission,
                                                         User user)
Deprecated. since 3.5 use GlobalPermissions.revokePermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead

Removes the specified permission from a specified user via the web interface. Must already be logged in as a user with administrator permissions.

Parameters:
permission - the permission to be revoked
user - the user to have the permission revoked

revokeSpacePermissionFromGroup

@Deprecated
protected void revokeSpacePermissionFromGroup(GlobalPermission permission,
                                                         Group group)
Deprecated. since 3.5 use GlobalPermissions.revokePermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.Entity) instead

Removes the specified permission from a specified group via the web interface. Must already be logged in as a user with administrator permissions.

Parameters:
permission - the permission to be revoked
group - the group to have the permission revoked

buildCheckboxParameterName

@Deprecated
protected String buildCheckboxParameterName(String permissionValue,
                                                       User user)
Deprecated. since 3.5 use SpacePermission.toCheckboxName(Entity) or GlobalPermission.toCheckboxName(Entity) instead

Returns the name of the space permission checkbox for the specified permission and group


buildCheckboxParameterName

@Deprecated
protected String buildCheckboxParameterName(String permissionValue,
                                                       Group group)
Deprecated. since 3.5 use SpacePermission.toCheckboxName(Entity) or GlobalPermission.toCheckboxName(Entity) instead

Returns the name of the space permission checkbox for the specified permission and group



Copyright © 2003-2012 Atlassian. All Rights Reserved.