Class RolesImpl
java.lang.Object
com.atlassian.jira.functest.framework.admin.RolesImpl
- All Implemented Interfaces:
Roles
-
Constructor Summary
ConstructorsConstructorDescriptionRolesImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData) RolesImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProjectRoleForUser
(String projectName, String roleName, String userName) Adds a project role for a particular user.void
Creates a project role with the specified name and description.void
delete
(long roleId) Deletes a project role with the specified id.void
Deletes a project role with the specified name.Allows editing of a project role's details.
-
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. -
delete
Description copied from interface:Roles
Deletes a project role with the specified name. -
create
Description copied from interface:Roles
Creates a project role with the specified name and description. -
edit
Description copied from interface:Roles
Allows editing of a project role's details.- Specified by:
edit
in interfaceRoles
- 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
Description copied from interface:Roles
Adds a project role for a particular user.- Specified by:
addProjectRoleForUser
in interfaceRoles
- Parameters:
projectName
- the name of the project.roleName
- the name of the role to add.userName
- the name of the user.
-