com.atlassian.jira.functest.framework.admin
Class RolesImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.RolesImpl
All Implemented Interfaces:
Roles, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class RolesImpl
extends AbstractFuncTestUtil
implements Roles


Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
RolesImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
           
 
Method Summary
 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.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolesImpl

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

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-2013 Atlassian. All Rights Reserved.