Class UserControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<UserControl>
com.atlassian.bamboo.testutils.backdoor.UserControl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter -
Field Summary
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, XSRF_NO_CHECK, XSRF_TOKEN_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeActivityOfDirectory(long userDirectoryId, boolean enabled) createAccessToken(String tokenName) createAccessToken(String tokenName, AccessTokenPermission... permissions) createAccessToken(String tokenName, List<String> permissions) Creates user that will be deleted after test executioncreateTemporaryUser(BambooPermission... permissions) Creates user that will be deleted after test executioncreateTemporaryUser(TestUser user) Creates user that will be deleted after test executioncreateTemporaryUser(TestUser user, BambooPermission... permissions) Creates user with custom permissions that will be deleted after test executioncreateTemporaryUser(TestUser user, Iterable<BambooPermission> permissions) Creates user with custom permissions that will be deleted after test executionvoidcreateUnlinkedAlias(String alias) Creates unlinked author which will be available inExtendedAuthorManager.getAllUnlinkedAuthors()createUser(TestUser user) Creates user that will not be deleted after test executioncreateUser(TestUser user, Iterable<BambooPermission> permissions) Creates user with custom permissions that will not be deleted after test executionvoiddeleteAlias(String alias) Deletes (not only unlink) AliasvoiddisableUser(String username) getUsers()booleanremoveUser(TestUser user) booleanremoveUser(String userName) voidtearDown()Cleanup resourcesMethods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
anonymousResourceRoot, client, createAnonymousResourceForPath, createAnonymousResourceForPath, createResource, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot, resourceRootWithForcedTokenAuth
-
Constructor Details
-
UserControl
-
-
Method Details
-
tearDown
public void tearDown()Description copied from class:BackdoorControlCleanup resources- Overrides:
tearDownin classBackdoorControl<UserControl>
-
preferences
-
createUser
Creates user with custom permissions that will not be deleted after test execution- Parameters:
user-permissions- for this user. For example Lists.newArrayList(BambooPermission.READ, BambooPermission.WRITE,BambooPermission.RESTRICTEDADMINISTRATION)- Returns:
-
createUser
Creates user that will not be deleted after test execution- Parameters:
user-- Returns:
-
createTemporaryUser
Creates user with custom permissions that will be deleted after test execution- Parameters:
user-permissions- for this user. For example Lists.newArrayList(BambooPermission.READ, BambooPermission.WRITE,BambooPermission.RESTRICTEDADMINISTRATION)- Returns:
-
createTemporaryUser
Creates user with custom permissions that will be deleted after test execution- Parameters:
user- user to be createdpermissions- for this user
-
createTemporaryUser
Creates user that will be deleted after test execution- Parameters:
user-- Returns:
-
createTemporaryUser
Creates user that will be deleted after test execution -
createTemporaryUser
Creates user that will be deleted after test execution- Parameters:
permissions- for this user.
-
createUnlinkedAlias
Creates unlinked author which will be available inExtendedAuthorManager.getAllUnlinkedAuthors()- Parameters:
alias-
-
deleteAlias
Deletes (not only unlink) Alias- Parameters:
alias-
-
getRecoveryAdminName
-
removeUser
- Parameters:
userName- to be removed- Returns:
- true if user removed or false if it couldn't be removed
-
removeUser
-
getUsers
-
createAccessToken
-
createAccessToken
-
createAccessToken
-
getUserDirectories
-
changeActivityOfDirectory
public void changeActivityOfDirectory(long userDirectoryId, boolean enabled) -
disableUser
-