com.atlassian.jira.functest.framework.admin
Class RolesImpl
java.lang.Object
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.admin.RolesImpl
- All Implemented Interfaces:
- Roles, FuncTestLogger
public class RolesImpl
- extends AbstractFuncTestUtil
- implements Roles
Constructor Summary |
RolesImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
int logIndentLevel)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RolesImpl
public RolesImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
int logIndentLevel)
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.
Copyright © 2002-2011 Atlassian. All Rights Reserved.