java.lang.Object | ||
↳ | com.atlassian.jira.security.type.AbstractSecurityType | |
↳ | com.atlassian.jira.security.type.AbstractIssueFieldSecurityType |
Known Direct Subclasses |
Known Indirect Subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Decides if the given User has permission to see the given issue or project.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the field name for this Issue Field-based Security Type given the parameter in the saved configuration.
| |||||||||||
Gets called to produce the Lucene query for a project
| |||||||||||
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.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.security.type.AbstractSecurityType
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.scheme.SchemeType
| |||||||||||
From interface
com.atlassian.jira.security.type.SecurityType
|
Decides if the given User has permission to see the given issue or project. If the user is null they can never have the permission so false is returned. If the entity is a Project the permission is always true as report and assignee have no context in a project only on the issues with the project It the entity is an Issue check if the user is in the relevent field in the issue
entity | The Generic Value. Should be an Issue (but sometimes it's a Project) |
---|---|
argument | Not needed for this implementation |
user | User to check the permission on. If it is null then the check is made on the current user |
issueCreation | NFI |
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.
parameter | the parameter as saved in the config |
---|
Gets called to produce the Lucene query for a project
project | The project for which to construct a query |
---|---|
searcher | The user who is searching to add to the query |
null
if the searcher is either
null
or not a known user
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.
issueSecurity | the security defined by this IssueFieldSecurityType instance. |
---|---|
searcher | the user. |
null
if user is either
null
or not a known user