public class

PermissionSchemesImpl

extends AbstractFuncTestUtil
implements PermissionSchemes PermissionSchemes.PermissionScheme
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.admin.PermissionSchemesImpl

This class is deprecated.
all new tests with the Single Page Permission Schemes page should be written in a web driver test using EditPermissionsSinglePage.

Class Overview

Implements the PermissionSchemes and PermissionSchemes.PermissionScheme interfaces.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
PermissionSchemesImpl(WebTester tester, JIRAEnvironmentData environmentData)
Public Methods
PermissionSchemes.PermissionScheme defaultScheme()
Navigates to the Default Permission Scheme.
void grantPermissionToApplicationRole(ProjectPermissionKey permission, String applicationRoleId)
void grantPermissionToCurrentAssignee(ProjectPermissionKey permission)
void grantPermissionToCurrentAssignee(int permission)
void grantPermissionToCurrentAssignee(String permission)
void grantPermissionToGroup(String permission, String groupName)
void grantPermissionToGroup(ProjectPermissionKey permission, String groupName)
void grantPermissionToGroup(int permission, String groupName)
void grantPermissionToGroupCustomFieldValue(int permission, String customFieldId)
void grantPermissionToGroupCustomFieldValue(String permission, String customFieldId)
void grantPermissionToGroupCustomFieldValue(ProjectPermissionKey permission, String customFieldId)
void grantPermissionToProjectLead(int permission)
void grantPermissionToProjectLead(ProjectPermissionKey permission)
void grantPermissionToProjectLead(String permission)
void grantPermissionToProjectRole(ProjectPermissionKey permission, String projectRoleId)
void grantPermissionToProjectRole(int permission, String projectRoleId)
void grantPermissionToProjectRole(String permission, String projectRoleId)
void grantPermissionToReporter(String permission)
void grantPermissionToReporter(int permission)
void grantPermissionToReporter(ProjectPermissionKey permission)
void grantPermissionToSingleUser(int permission, String username)
void grantPermissionToSingleUser(ProjectPermissionKey permission, String username)
void grantPermissionToSingleUser(String permission, String username)
void grantPermissionToUserCustomFieldValue(String permission, String customFieldId)
void grantPermissionToUserCustomFieldValue(int permission, String customFieldId)
void grantPermissionToUserCustomFieldValue(ProjectPermissionKey permission, String customFieldId)
void removePermission(ProjectPermissionKey permissionType, String permissionParam)
void removePermission(int permissionType, String permissionParam)
Remove the given permission setting.
void removePermission(String permission, String groupName)
void removePermission(GlobalPermissionKey permissionType, String permissionParam)
PermissionSchemes.PermissionScheme scheme(String schemeName)
Navigates to the scheme with the specified name.
Protected Methods
Navigation getNavigation()
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.admin.PermissionSchemes
From interface com.atlassian.jira.functest.framework.admin.PermissionSchemes.PermissionScheme
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public PermissionSchemesImpl (WebTester tester, JIRAEnvironmentData environmentData)

Public Methods

public PermissionSchemes.PermissionScheme defaultScheme ()

Navigates to the Default Permission Scheme.

Returns
  • the Default Permission Scheme to operate on.

public void grantPermissionToApplicationRole (ProjectPermissionKey permission, String applicationRoleId)

public void grantPermissionToCurrentAssignee (ProjectPermissionKey permission)

public void grantPermissionToCurrentAssignee (int permission)

public void grantPermissionToCurrentAssignee (String permission)

public void grantPermissionToGroup (String permission, String groupName)

public void grantPermissionToGroup (ProjectPermissionKey permission, String groupName)

public void grantPermissionToGroup (int permission, String groupName)

public void grantPermissionToGroupCustomFieldValue (int permission, String customFieldId)

public void grantPermissionToGroupCustomFieldValue (String permission, String customFieldId)

public void grantPermissionToGroupCustomFieldValue (ProjectPermissionKey permission, String customFieldId)

public void grantPermissionToProjectLead (int permission)

public void grantPermissionToProjectLead (ProjectPermissionKey permission)

public void grantPermissionToProjectLead (String permission)

public void grantPermissionToProjectRole (ProjectPermissionKey permission, String projectRoleId)

public void grantPermissionToProjectRole (int permission, String projectRoleId)

public void grantPermissionToProjectRole (String permission, String projectRoleId)

public void grantPermissionToReporter (String permission)

public void grantPermissionToReporter (int permission)

public void grantPermissionToReporter (ProjectPermissionKey permission)

public void grantPermissionToSingleUser (int permission, String username)

public void grantPermissionToSingleUser (ProjectPermissionKey permission, String username)

public void grantPermissionToSingleUser (String permission, String username)

public void grantPermissionToUserCustomFieldValue (String permission, String customFieldId)

public void grantPermissionToUserCustomFieldValue (int permission, String customFieldId)

public void grantPermissionToUserCustomFieldValue (ProjectPermissionKey permission, String customFieldId)

public void removePermission (ProjectPermissionKey permissionType, String permissionParam)

public void removePermission (int permissionType, String permissionParam)

Remove the given permission setting.

Parameters
permissionType the permission type. See Type for constants.
permissionParam the permission parameter. eg group-name for group based permissions, ID for project roles.

public void removePermission (String permission, String groupName)

public void removePermission (GlobalPermissionKey permissionType, String permissionParam)

public PermissionSchemes.PermissionScheme scheme (String schemeName)

Navigates to the scheme with the specified name.

Parameters
schemeName the permission scheme name.
Returns
  • the Permission Scheme with the given name.

Protected Methods

protected Navigation getNavigation ()