Class UserControl

java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<UserControl>
com.atlassian.bamboo.testutils.backdoor.UserControl

public class UserControl extends BackdoorControl<UserControl>
  • Constructor Details

  • Method Details

    • tearDown

      public void tearDown()
      Description copied from class: BackdoorControl
      Cleanup resources
      Overrides:
      tearDown in class BackdoorControl<UserControl>
    • preferences

      public PreferencesControl preferences()
    • createUser

      public UserControl createUser(TestUser user, Iterable<BambooPermission> permissions)
      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

      public UserControl createUser(TestUser user)
      Creates user that will not be deleted after test execution
      Parameters:
      user -
      Returns:
    • createTemporaryUser

      public UserControl createTemporaryUser(TestUser user, Iterable<BambooPermission> permissions)
      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

      public UserControl createTemporaryUser(TestUser user, BambooPermission... permissions)
      Creates user with custom permissions that will be deleted after test execution
      Parameters:
      user - user to be created
      permissions - for this user
    • createTemporaryUser

      public UserControl createTemporaryUser(TestUser user)
      Creates user that will be deleted after test execution
      Parameters:
      user -
      Returns:
    • createTemporaryUser

      public TestUser createTemporaryUser()
      Creates user that will be deleted after test execution
    • createTemporaryUser

      public TestUser createTemporaryUser(BambooPermission... permissions)
      Creates user that will be deleted after test execution
      Parameters:
      permissions - for this user.
    • createUnlinkedAlias

      public void createUnlinkedAlias(String alias)
      Creates unlinked author which will be available in ExtendedAuthorManager.getAllUnlinkedAuthors()
      Parameters:
      alias -
    • deleteAlias

      public void deleteAlias(String alias)
      Deletes (not only unlink) Alias
      Parameters:
      alias -
    • getRecoveryAdminName

      public String getRecoveryAdminName()
    • removeUser

      public boolean removeUser(String userName)
      Parameters:
      userName - to be removed
      Returns:
      true if user removed or false if it couldn't be removed
    • removeUser

      public boolean removeUser(TestUser user)
    • getUsers

      public List<TestUser> getUsers()
    • createAccessToken

      public RestAccessToken createAccessToken(String tokenName)
    • createAccessToken

      public RestAccessToken createAccessToken(String tokenName, AccessTokenPermission... permissions)
    • createAccessToken

      public RestAccessToken createAccessToken(String tokenName, List<String> permissions)
    • getUserDirectories

      public List<RestUserDirectory> getUserDirectories()
    • changeActivityOfDirectory

      public void changeActivityOfDirectory(long userDirectoryId, boolean enabled)