Class Overview
Issue Security and Permission type for a User Selector custom field,
or select-list custom fields which specify users.
Summary
[Expand]
Inherited Methods |
From class
com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
abstract
String
|
getFieldName(String parameter)
Get the field name for this Issue Field-based Security Type given the parameter in the saved configuration.
|
Query
|
getQuery(ApplicationUser searcher, Project project, IssueSecurityLevel securityLevel, String parameter)
|
Query
|
getQuery(ApplicationUser searcher, Project project, String parameter)
|
@Nullable
BooleanQuery
|
getQueryForProject(Project project, ApplicationUser searcher, String fieldName)
Gets called to produce the Lucene query for a project
|
@Nullable
BooleanQuery
|
getQueryForSecurityLevel(IssueSecurityLevel issueSecurity, ApplicationUser searcher, String fieldName)
Produces a Lucene query for a given issue security type such that documents
match the query only when the given user is defined for the issue by this
custom field in the given security.
|
abstract
boolean
|
hasIssuePermission(ApplicationUser user, boolean issueCreation, Issue issue, String parameter)
|
boolean
|
hasPermission(Issue issue, String argument)
|
boolean
|
hasPermission(Project project, String argument)
|
boolean
|
hasPermission(Project project, String parameter, ApplicationUser user, boolean issueCreation)
|
boolean
|
hasPermission(Issue issue, String parameter, ApplicationUser user, boolean issueCreation)
|
abstract
boolean
|
hasProjectPermission(ApplicationUser user, boolean issueCreation, Project project)
|
|
From class
com.atlassian.jira.security.type.AbstractSecurityType
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.atlassian.jira.scheme.SchemeType
void
|
doValidation(String key, Map<String, String> parameters, JiraServiceContext jiraServiceContext)
|
String
|
getDisplayName()
|
String
|
getType()
|
boolean
|
hasPermission(Issue issue, String parameter)
Determines if this permission type is satisfied for anonymous access.
|
boolean
|
hasPermission(Project project, String parameter)
Determines if this permission type is satisfied for anonymous access.
|
boolean
|
hasPermission(Project project, String parameter, ApplicationUser user, boolean issueCreation)
Determines if this permission type is satisfied.
|
boolean
|
hasPermission(Issue issue, String parameter, ApplicationUser user, boolean issueCreation)
Determines if this permission type is satisfied.
|
boolean
|
isValidForPermission(ProjectPermissionKey permissionKey)
This method determines if this SchemeType is valid for the given permissionKey.
|
|
From interface
com.atlassian.jira.security.type.SecurityType
|
Constants
public
static
final
String
TYPE
Public Constructors
Public Methods
public
String
getDisplayName
()
Get user specified by the Custom Field
Parameters
ctx
| permission context |
customFieldId
| eg. 'customfield_10000' |
Returns
- the set of users stored in the given custom field in the given context; an empty set is returned if the
context could not provide values (i.e. there was no issue specified).
Protected Methods
protected
String
getFieldName
(String parameter)
Get the field name for this Issue Field-based Security Type given the parameter in the saved configuration.
Some Field based permissions are based on hard-coded fields like assignee and reporter in which case the parameter is not used.
Other types use the parameter to name the particular User or Group custom field that is used for the permission.
Parameters
parameter
| the parameter as saved in the config |
Returns
- the field name for this Issue Field-based Security Type.