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 |
---|---|
UserControl |
createTemporaryUser(TestUser user)
Creates user 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
|
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
|
List<TestUser> |
getUsers() |
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 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)
user
- public boolean removeUser(String userName)
userName
- to be removedpublic boolean removeUser(TestUser user)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.