java.lang.Object
com.atlassian.jira.functest.framework.admin.RolesImpl
All Implemented Interfaces:
Roles

public class RolesImpl extends Object implements Roles
  • Constructor Details

    • RolesImpl

      public RolesImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
    • RolesImpl

      @Inject public RolesImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
  • Method Details

    • delete

      public void delete(long roleId)
      Description copied from interface: Roles
      Deletes a project role with the specified id.
      Specified by:
      delete in interface Roles
      Parameters:
      roleId - The id of the role to delete.
    • delete

      public void delete(String name)
      Description copied from interface: Roles
      Deletes a project role with the specified name.
      Specified by:
      delete in interface Roles
      Parameters:
      name - The name of the role to delete.
    • create

      public void create(String name, String description)
      Description copied from interface: Roles
      Creates a project role with the specified name and description.
      Specified by:
      create in interface Roles
      Parameters:
      name - The name of the specified role.
      description - The description of the specified role.
    • edit

      public RoleDetails edit(String name)
      Description copied from interface: Roles
      Allows editing of a project role's details.
      Specified by:
      edit in interface Roles
      Parameters:
      name - The name of the project role to edit.
      Returns:
      A RoleDetails which allows to set the properties (i.e. name, description ...) of the project role in play.
    • addProjectRoleForUser

      public void addProjectRoleForUser(String projectName, String roleName, String userName)
      Description copied from interface: Roles
      Adds a project role for a particular user.
      Specified by:
      addProjectRoleForUser in interface Roles
      Parameters:
      projectName - the name of the project.
      roleName - the name of the role to add.
      userName - the name of the user.