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:
BrokenSpacePermissionsImportAcceptanceTest, ConvertAdministerConfluenceToSystemAdministratorAcceptanceTest, EditGlobalPermissionsAcceptanceTest, EditSpacePermissionsAcceptanceTest, LdapUpperCaseUserTest, NotificationsAcceptanceTest, PagePermissionsAcceptanceTest, PermissionsRpcAcceptanceTest, SpaceAdminPermissionsAcceptanceTest, SpacePermissionsAcceptanceTest

public abstract class AbstractPermissionsAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
protected static java.lang.String ADMIN_GROUP_PERMISSION
           
protected static int ATTACH_TO_PROFILE_PERMISSION_INDEX
           
protected static java.lang.String CONF_USERS_PERMISSION
           
protected static int CONFLUENCE_ADMIN_PERMISSION_INDEX
           
protected static int CREATE_SPACE_PERMISSION_INDEX
           
protected static java.lang.String FOO_GROUPNAME
           
protected static java.lang.String NO_PERMISSION
           
protected static int PERSONAL_SPACE_PERMISSION_INDEX
           
protected static int SYSTEM_ADMIN_PERMISSION_INDEX
           
protected static int UPDATE_STATUS_PERMISSION_INDEX
           
protected static int USE_CONFLUENCE_PERMISSION_INDEX
           
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, adminToken, ANONYMOUS_USER, BLOG_DATE_FORMAT, BROWSE_MENU_LINK_ID, CONFLUENCE_ADMIN_GROUP, CONFLUENCE_USERS_GROUP, context, CROWD_MODE, DIRECTORY_CONFIG, filesToDelete, FUNCTEST_RPC_PLUGIN, log, logAdjuster, mailServices, RANDOM, rpc, SMTP_SUBJECT_PREFIX, TEST_ADMIN, TEST_ADMIN_EMAIL, TEST_ADMIN_FULLNAME, TEST_ADMIN_PASSWORD, TEST_ADMIN_USERNAME, TEST_BLOG, 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, TESTMAILSERVER_HOSTNAME, TESTMAILSERVER_NAME, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_DESCRIPTION, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_DESCRIPTION, TESTSPACE2_KEY, TESTSPACE2_TITLE, testUser2Token, testUserToken, userHelper, VIEW_PERSONAL_SPACE_LINK, xmlrpc
 
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
SITE_TITLE_SUFFIX, TITLE_SEPARATOR
 
Constructor Summary
AbstractPermissionsAcceptanceTest()
           
AbstractPermissionsAcceptanceTest(java.lang.String s)
           
 
Method Summary
protected  void assertGroupPermissionInViewPermissionsTable(boolean expectHasPermission, java.lang.String group, int groupIndex, int permissionIndex)
          Check whether the named group has the given permission in the form table when viewing permissions.
protected  void assertUserHasNoPermissionsInViewPermissionsTable(User user)
          Check that the named user has the given permission in the form table when viewing permissions.
protected  void assertUserPermissionErrorInViewPermissionsTable(User user, int userIndex, boolean isGlobalPermission)
          Check that the named user has the given permission in the form table when viewing permissions.
protected  void assertUserPermissionInViewPermissionsTable(boolean expectHasPermission, User user, int userIndex, int permissionIndex, boolean isGlobalPermission)
          Check that the named user has the given permission in the form table when viewing permissions.
protected  java.lang.String buildCheckboxParameterName(java.lang.String permissionValue, Group group)
          Deprecated. since 3.5 use SpacePermission#toCheckboxName(Group) or GlobalPermission#toCheckboxName(Group) instead
protected  java.lang.String buildCheckboxParameterName(java.lang.String permissionValue, User user)
          Deprecated. since 3.5 use SpacePermission#toCheckboxName(User) or GlobalPermission#toCheckboxName(User) 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.User) instead
protected  void grantGlobalPermissionToUser(GlobalPermission permission, User user)
          Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.User) 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 grantSpacePermissionToGroup(Space space, SpacePermission permission, Group group)
          Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead
protected  void grantSpacePermissionToUser(Space space, SpacePermission permission, User user)
          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(java.lang.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(java.lang.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
protected  void revokeSpacePermissionFromGroup(Space space, SpacePermission permission, Group group)
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
protected  void revokeSpacePermissionFromUser(Space space, SpacePermission permission, User user)
          Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.Entity) instead
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
addAnonymousPermissionsToSpace, addComment, addCommentToBlogPost, addPageComment, addSpaceLabel, addUserToGroupViaHelper, addWatchPage, assertImagePresent, assertImageValid, assertLoggedInAs, assertMailReceived, assertNoMailReceived, attachFile, attachFile, attachFileWithName, chooseRandomBaseUrl, createBlog, createBlogInTestSpace, createGroup, createGroupViaHelper, createMail, createPage, createPageWithViewRestrictions, createSpaceViaWebUI, createSpaceViaWebUI, createSpaceViaWebUI, createTemplate, createTestMailServer, createTestSpaceViaWebUI, createUserViaHelper, createUserViaHelper, disableAnonymousAccess, disableAnonymousAccessToSpace, editBlog, editBlogLabels, editBlogPostContent, editPage, editPageContent, editPageContent, editPageLabels, editPageWithContent, editSpaceDescription, editSpacePermsForm, enableAnonymousAccess, enableAnonymousAccessToSpace, ensureTestUserCanViewTestSpace, forceViewGlobalAdmin, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getCurrentMailQueueSize, getFriendlyRelativeDate, getPageId, getPluginHelper, getTodaysBlogPostDate, gotoPageWithError, grantAnonymousUseConfluencePermission, grantGlobalBrowsePermissionToGroup, grantGlobalPermissionToGroup, grantGlobalPermissionToUser, grantSpacePermissionToGroupAndDelegate, grantViewSpacePermissionToGroup, grantViewSpacePermissionToGroupAndDelegate, grantViewSpacePermissionToUser, importGlobalBackup, importGlobalBackup, importMail, importMailAndAssertNoRunningTask, importSpaceBackup, isClustered, logIn, logIn, logInAs, logInAs, loginAs, logInAsAdminAtDashboard, logInAsAtDashboard, loginAsAtDashboard, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtDashboard, loginViaForm, logout, makeParams, movePage, movePage, movePageToNewParent, movePageToNewParent, movePageToNewSpace, openInsertImagePopup, openInsertLinkPopup, rebuildIndex, removeAnonymousPermissionToSpace, removeBlog, removeGroup, removePageOrBlogById, removePersonalSpace, removeTestUser1, removeTestUser1ViaHelper, removeUser, removeUserFromGroupViaHelper, removeUserViaHelper, renamePage, restoreBaseUrl, restoreConfigurationAfterBackup, revokeAnonymousUseConfluencePermission, revokeGlobalPermissionFromGroup, revokeGlobalPermissionFromUser, rpcAddComment, rpcAddComment, rpcAddComment, rpcAddLabelToBlog, rpcAddLabelToPage, rpcAddLabelToPage, rpcAddLabelToSpace, rpcAddTestComment, rpcClearIndex, rpcClearQueue, rpcConvertToPersonalSpace, rpcCreateBlogPost, rpcCreateBlogPost, rpcCreatePage, rpcCreatePage, rpcCreatePersonalSpace, rpcCreateSpace, rpcCreateSpace, rpcCreateSpaceGroup, rpcCreateTestSpace, rpcCreateTestSpace2, rpcEditBlogPost, rpcEditComment, rpcEditPage, rpcFlushAllCaches, rpcFlushIndexQueue, rpcFlushMailQueue, rpcGetAdminToken, rpcGetBlogPostId, rpcGetChildren, rpcGetComments, rpcGetLocalisedText, rpcGetMailQueueSize, rpcGetPageId, rpcGetPageLabels, rpcGetPageLabels, rpcGetTestUser2Token, rpcGetTestUserToken, rpcGetTopLevelPages, rpcGetUserGroups, rpcGetUserToken, rpcGetUserToken, rpcGetVersionForPage, rpcGrantAnonymousSpacePermission, rpcGrantGlobalPermission, rpcGrantSpacePermission, rpcGrantViewSpacePermission, rpcHasGroup, rpcHasUser, rpclogCommandOutput, rpcLogOut, rpcLogOutAdmin, rpcMovePage, rpcMovePageToTopLevel, rpcPauseJob, rpcRemoveAllSpaceGroups, rpcRemoveAnonymousSpacePermission, rpcRemoveAttachment, rpcRemoveComment, rpcRemoveComment, rpcRemoveGlobalPermissions, rpcRemoveGroup, rpcRemoveLabelFromPage, rpcRemoveLabelFromPage, rpcRemoveLabelFromSpace, rpcRemovePage, rpcRemoveSpace, rpcRemoveSpacePermission, rpcRenderContent, rpcRestoreAbstractPage, rpcResumeJob, rpcStoreBlogEntry, rpcTrashPage, rpcTrashPage, rpcTrashPage, rpcTriggerJob, search, setAllowCamelCase, setApplicationConfigProperty, setAttachmentMaxUploadSize, setCheckbox, setEditPermissionsForGroups, setEditPermissionsForUsers, setElevatedSecurityCheck, setEnableWysiwyg, setMaxAttachmentsInUI, setPageLabels, setRemoteApi, setSharedMode, setThreadedComments, setUp, setUp, setUpTestNG, setViewPermissionsForGroups, setViewPermissionsForUsers, showAllUsers, shutdownQuartz, stopTestMailServer, tearDown, tearDownTestNG, viewBlog, viewEditBlogPostPage, viewGlobalAdmin, viewGlobalPermissions, viewHomepage, viewLabel, viewLanguages, viewPage, viewPeopleDirectory, viewSpaceAdmin, viewSpaceAdvanced, viewSpaceContent, viewSpacePermissions, viewSpacePermissions, viewSpaceSummary, viewSpaceSummary, viewTodaysBlog, viewTrash, viewUser, waitForLongRunningTaskToComplete, watchPage, watchSpace, watchSpace, xmlRpcExecute
 
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, 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
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_PERMISSION

protected static java.lang.String NO_PERMISSION

CONF_USERS_PERMISSION

protected static java.lang.String CONF_USERS_PERMISSION

ADMIN_GROUP_PERMISSION

protected static java.lang.String ADMIN_GROUP_PERMISSION

FOO_GROUPNAME

protected static java.lang.String FOO_GROUPNAME

USE_CONFLUENCE_PERMISSION_INDEX

protected static final int USE_CONFLUENCE_PERMISSION_INDEX
See Also:
Constant Field Values

ATTACH_TO_PROFILE_PERMISSION_INDEX

protected static final int ATTACH_TO_PROFILE_PERMISSION_INDEX
See Also:
Constant Field Values

UPDATE_STATUS_PERMISSION_INDEX

protected static final int UPDATE_STATUS_PERMISSION_INDEX
See Also:
Constant Field Values

PERSONAL_SPACE_PERMISSION_INDEX

protected static final int PERSONAL_SPACE_PERMISSION_INDEX
See Also:
Constant Field Values

CREATE_SPACE_PERMISSION_INDEX

protected static final int CREATE_SPACE_PERMISSION_INDEX
See Also:
Constant Field Values

CONFLUENCE_ADMIN_PERMISSION_INDEX

protected static final int CONFLUENCE_ADMIN_PERMISSION_INDEX
See Also:
Constant Field Values

SYSTEM_ADMIN_PERMISSION_INDEX

protected static final int SYSTEM_ADMIN_PERMISSION_INDEX
See Also:
Constant Field Values
Constructor Detail

AbstractPermissionsAcceptanceTest

public AbstractPermissionsAcceptanceTest()

AbstractPermissionsAcceptanceTest

public AbstractPermissionsAcceptanceTest(java.lang.String s)
Method Detail

grantCreatePageToTestUser

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


removeCreatePageFromTestUser

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


grantExportPageToTestUser

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


removeExportPageFromTestUser

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


grantSetPagePermissionsToTestUser

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


removeSetPagePermissionsFromTestUser

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


grantRemovePageToTestUser

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


removeRemovePageFromTestUser

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


grantCreateBlogToTestUser

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


removeCreateBlogFromTestUser

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


grantRemoveBlogToTestUser

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


removeRemoveBlogFromTestUser

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


grantCreateCommentToTestUser

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


removeCreateCommentFromTestUser

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


grantRemoveCommentToTestUser

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


removeRemoveCommentFromTestUser

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


grantCreateAttachmentToTestUser

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


removeCreateAttachmentFromTestUser

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


grantRemoveAttachmentToTestUser

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


removeRemoveAttachmentFromTestUser

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


grantExportSpaceToTestUser

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


removeExportSpaceFromTestUser

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


grantAdminSpaceToTestUser

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


removeAdminSpaceFromTestUser

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(java.lang.String pageTitle)

removeEditPermissions

protected void removeEditPermissions(java.lang.String pageTitle)

grantViewSpacePermissionToAnonymous

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


removeViewSpacePermissionToAnonymous

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

assertUserPermissionInViewPermissionsTable

protected void assertUserPermissionInViewPermissionsTable(boolean expectHasPermission,
                                                          User user,
                                                          int userIndex,
                                                          int permissionIndex,
                                                          boolean isGlobalPermission)
Check that the named user has the given permission in the form table when viewing permissions. Note that this assertion does no special interpretation for permissionIndex 0. It is now theoretically possible (although bad) to display a row of permissions and not have a tick for the first pemission. To check a user has no permissions, use assertUserHasNoPermissionsInViewPermissionsTable(User).

Parameters:
expectHasPermission - boolean true if the user is expected to have the permission
user - the user expected to have the permissions
userIndex - expected 0 based index of the user in the table
permissionIndex - 0 based permission column index in the permissions table.
isGlobalPermission - true for globals and false for space perms. The space table has an extra header row.

assertUserPermissionErrorInViewPermissionsTable

protected void assertUserPermissionErrorInViewPermissionsTable(User user,
                                                               int userIndex,
                                                               boolean isGlobalPermission)
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
userIndex - expected 0 based index of the user in the table
isGlobalPermission - true for globals and false for space perms. The space table has an extra header row.

assertGroupPermissionInViewPermissionsTable

protected void assertGroupPermissionInViewPermissionsTable(boolean expectHasPermission,
                                                           java.lang.String group,
                                                           int groupIndex,
                                                           int permissionIndex)
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:
expectHasPermission - boolean true if the group is expected to have the permission
group - the name of the group expected to have the permissions
groupIndex - expected 0 based index of the group in the table
permissionIndex - 0 based permission column index in the permissions table.

grantSpacePermissionToUser

protected void grantSpacePermissionToUser(Space space,
                                          SpacePermission permission,
                                          User user)
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead

Grants the specified permission to a specified user via the web interface. Must already be logged in as a user with permission to set permissions on the space. User must already have view space permissions for the space.

Parameters:
space - the relevant space
permission - the permission to be granted (cannot be the VIEW permission)
user - the user to be granted the permission

grantSpacePermissionToGroup

protected void grantSpacePermissionToGroup(Space space,
                                           SpacePermission permission,
                                           Group group)
Deprecated. since 3.5 use SpacePermissions.grantPermission(com.atlassian.confluence.it.SpacePermission, com.atlassian.confluence.it.User) instead

Grants the specified permission to a specified group via the web interface. Must already be logged in as a user with permission to set permissions on the space. Group must already have view space permissions for the space.

Parameters:
space - the relevant space
permission - the permission to be granted (cannot be the VIEW permission)
group - the group to be granted the permission

revokeSpacePermissionFromUser

protected void revokeSpacePermissionFromUser(Space space,
                                             SpacePermission permission,
                                             User user)
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, 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 permission to set permissions on the space.

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

revokeSpacePermissionFromGroup

protected void revokeSpacePermissionFromGroup(Space space,
                                              SpacePermission permission,
                                              Group group)
Deprecated. since 3.5 use SpacePermissions.revokePermission(com.atlassian.confluence.it.SpacePermission, 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 permission to set permissions on the space.

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

grantGlobalPermissionToUser

protected void grantGlobalPermissionToUser(GlobalPermission permission,
                                           User user)
Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.User) 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

protected void grantGlobalPermissionToGroup(GlobalPermission permission,
                                            Group group)
Deprecated. since 3.5 use GlobalPermissions.grantPermission(com.atlassian.confluence.it.GlobalPermission, com.atlassian.confluence.it.User) 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

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

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

protected java.lang.String buildCheckboxParameterName(java.lang.String permissionValue,
                                                      User user)
Deprecated. since 3.5 use SpacePermission#toCheckboxName(User) or GlobalPermission#toCheckboxName(User) instead

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


buildCheckboxParameterName

protected java.lang.String buildCheckboxParameterName(java.lang.String permissionValue,
                                                      Group group)
Deprecated. since 3.5 use SpacePermission#toCheckboxName(Group) or GlobalPermission#toCheckboxName(Group) instead

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



Copyright © 2003-2011 Atlassian. All Rights Reserved.