public class

AddPermission

extends SchemeAwarePermissionAction
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.scheme.AbstractSchemeAwareAction
           ↳ com.atlassian.jira.web.action.admin.permission.SchemeAwarePermissionAction
             ↳ com.atlassian.jira.web.action.admin.permission.AddPermission

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AddPermission(PermissionManager permissionManager, PermissionSchemeManager permissionSchemeManager, PermissionTypeManager permissionTypeManager, UserKeyService userKeyService, ProjectPermissionFeatureHelper projectPermissionFeatureHelper)
Public Methods
String doDefault()
Collection<ProjectPermission> getAllPermissions()
String getParameter(String key)
Because we the value is set dynamically, we need to pull the correct value from the parameter chosen
Map getParameters()
String[] getPermissions()
String getRedirectURL()
String getType()
The type of the permission (eg group / single user / null for all others)
Map getTypes()
void setPermissions(String[] permissions)
void setType(String type)
Protected Methods
String doExecute()
void doValidation()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.admin.permission.SchemeAwarePermissionAction
From class com.atlassian.jira.scheme.AbstractSchemeAwareAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.admin.notification.SchemeAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Public Constructors

public AddPermission (PermissionManager permissionManager, PermissionSchemeManager permissionSchemeManager, PermissionTypeManager permissionTypeManager, UserKeyService userKeyService, ProjectPermissionFeatureHelper projectPermissionFeatureHelper)

Public Methods

public String doDefault ()

Throws
Exception

public Collection<ProjectPermission> getAllPermissions ()

public String getParameter (String key)

Because we the value is set dynamically, we need to pull the correct value from the parameter chosen

Parameters
key 'group' / 'single user' / null
Returns
  • the value passed in (eg group name / user name)
See Also

public Map getParameters ()

public String[] getPermissions ()

public String getRedirectURL ()

public String getType ()

The type of the permission (eg group / single user / null for all others)

Returns
  • the Type of the permission.

public Map getTypes ()

public void setPermissions (String[] permissions)

public void setType (String type)

Protected Methods

protected String doExecute ()

Throws
Exception

protected void doValidation ()