public class UserControl extends BackdoorControl<UserControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
UserControl(BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
RestAccessToken |
createAccessToken(String tokenName) |
RestAccessToken |
createAccessToken(String tokenName,
AccessTokenPermission... permissions) |
RestAccessToken |
createAccessToken(String tokenName,
List<String> permissions) |
TestUser |
createTemporaryUser()
Creates user that will be deleted after test execution
|
TestUser |
createTemporaryUser(BambooPermission... permissions)
Creates user that will be deleted after test execution
|
UserControl |
createTemporaryUser(TestUser user)
Creates user that will be deleted after test execution
|
UserControl |
createTemporaryUser(TestUser user,
BambooPermission... permissions)
Creates user with custom permissions that will be deleted after test execution
|
UserControl |
createTemporaryUser(TestUser user,
Iterable<BambooPermission> permissions)
Creates user with custom permissions that will be deleted after test execution
|
void |
createUnlinkedAlias(String alias)
Creates unlinked author which will be available in
ExtendedAuthorManager.getAllUnlinkedAuthors() |
UserControl |
createUser(TestUser user)
Creates user that will not be deleted after test execution
|
UserControl |
createUser(TestUser user,
Iterable<BambooPermission> permissions)
Creates user with custom permissions that will not be deleted after test execution
|
void |
deleteAlias(String alias)
Deletes (not only unlink) Alias
|
List<TestUser> |
getUsers() |
PreferencesControl |
preferences() |
boolean |
removeUser(String userName) |
boolean |
removeUser(TestUser user) |
void |
tearDown()
Cleanup resources
|
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public UserControl(@NotNull BambooEnvironmentData environmentData)
public void tearDown()
BackdoorControl
tearDown
in class BackdoorControl<UserControl>
public PreferencesControl preferences()
public UserControl createUser(TestUser user, Iterable<BambooPermission> permissions)
user
- permissions
- for this user.
For example Lists.newArrayList(BambooPermission.READ, BambooPermission.WRITE,
BambooPermission.RESTRICTEDADMINISTRATION
)public UserControl createUser(TestUser user)
user
- public UserControl createTemporaryUser(TestUser user, Iterable<BambooPermission> permissions)
user
- permissions
- for this user.
For example Lists.newArrayList(BambooPermission.READ, BambooPermission.WRITE,
BambooPermission.RESTRICTEDADMINISTRATION
)public UserControl createTemporaryUser(TestUser user, BambooPermission... permissions)
user
- user to be createdpermissions
- for this userpublic UserControl createTemporaryUser(TestUser user)
user
- public TestUser createTemporaryUser()
public TestUser createTemporaryUser(BambooPermission... permissions)
permissions
- for this user.public void createUnlinkedAlias(String alias)
ExtendedAuthorManager.getAllUnlinkedAuthors()
alias
- public void deleteAlias(String alias)
alias
- public boolean removeUser(String userName)
userName
- to be removedpublic boolean removeUser(TestUser user)
public RestAccessToken createAccessToken(String tokenName)
public RestAccessToken createAccessToken(String tokenName, AccessTokenPermission... permissions)
public RestAccessToken createAccessToken(String tokenName, List<String> permissions)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.