public class

PermissionSchemesBackdoorImpl

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

This class is deprecated.
use permissionSchemes()

Class Overview

This class was added to replace PermissionSchemesImpl to stop plugins/tests outside of JIRA who were using it from failing. E.g. JIRA-REST-JAVA-Client. If you actually want to test the Project Permissions page, you should write tests using a webdriver test with EditPermissionsSinglePage otherwise, if you just want to change permissions in a scheme you should use the backdoor.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
PermissionSchemesBackdoorImpl(Backdoor backdoor, WebTester tester, JIRAEnvironmentData environmentData)
Public Methods
void addPermission(ProjectPermissionKey permission, JiraPermissionHolderType type, String parameter)
void addPermission(int permission, JiraPermissionHolderType type, String parameter)
void addPermission(String permission, JiraPermissionHolderType type, String parameter)
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 permissionType, String permissionParam)
void removePermission(GlobalPermissionKey permissionType, String permissionParam)
PermissionSchemes.PermissionScheme scheme(String schemeName)
Navigates to the scheme with the specified name.
[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 PermissionSchemesBackdoorImpl (Backdoor backdoor, WebTester tester, JIRAEnvironmentData environmentData)

Public Methods

public void addPermission (ProjectPermissionKey permission, JiraPermissionHolderType type, String parameter)

public void addPermission (int permission, JiraPermissionHolderType type, String parameter)

public void addPermission (String permission, JiraPermissionHolderType type, String parameter)

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 permissionType, String permissionParam)

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.