public class

RolesImpl

extends AbstractFuncTestUtil
implements Roles
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.admin.RolesImpl

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
RolesImpl(WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
Public Methods
void addProjectRoleForUser(String projectName, String roleName, String userName)
Adds a project role for a particular user.
void create(String name, String description)
Creates a project role with the specified name and description.
void delete(long roleId)
Deletes a project role with the specified id.
void delete(String name)
Deletes a project role with the specified name.
RoleDetails edit(String name)
Allows editing of a project role's details.
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.admin.Roles
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public RolesImpl (WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)

Public Methods

public void addProjectRoleForUser (String projectName, String roleName, String userName)

Adds a project role for a particular user.

Parameters
projectName the name of the project.
roleName the name of the role to add.
userName the name of the user.

public void create (String name, String description)

Creates a project role with the specified name and description.

Parameters
name The name of the specified role.
description The description of the specified role.

public void delete (long roleId)

Deletes a project role with the specified id.

Parameters
roleId The id of the role to delete.

public void delete (String name)

Deletes a project role with the specified name.

Parameters
name The name of the role to delete.

public RoleDetails edit (String name)

Allows editing of a project role's details.

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.