public class ProjectLead extends AbstractProjectsSecurityType
Constructor and Description |
---|
ProjectLead(JiraAuthenticationContext jiraAuthenticationContext) |
Modifier and Type | Method and Description |
---|---|
void |
doValidation(String key,
Map parameters,
JiraServiceContext jiraServiceContext) |
String |
getDisplayName() |
Set<org.apache.lucene.util.BytesRef> |
getPermissionFieldContents(ApplicationUser searcher,
Project project,
IssueSecurityLevel securityLevel,
String parameter)
Returns a set of (
issue level permission field )
contents based on the security level, the project and optionally the parameter (for role-based queries). |
String |
getType() |
Set<ApplicationUser> |
getUsers(PermissionContext ctx,
String ignored)
Returns a set of
ApplicationUser s represented by a security type instance. |
boolean |
hasPermission(Issue issue,
String parameter)
Determines if this permission type is satisfied for anonymous access.
|
boolean |
hasPermission(Issue issue,
String parameter,
ApplicationUser user,
boolean issueCreation)
Determines if this permission type is satisfied.
|
boolean |
hasPermission(Project project,
String argument)
Determines if this permission type is satisfied for anonymous access.
|
boolean |
hasPermission(Project project,
String argument,
ApplicationUser user,
boolean issueCreation)
Determines if this permission type is satisfied.
|
boolean |
isTopLevelIssueSecurityPermission()
Returns true if this permission depends only on a issue security level value and not on project or any field value.
|
getPermissionFieldContents, getPermissionFieldContents, isTopLevelProjectPermission
getArgumentDisplay, isValidForPermission
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUsers
public static final String DESC
public ProjectLead(JiraAuthenticationContext jiraAuthenticationContext)
public String getDisplayName()
public String getType()
public boolean hasPermission(Project project, String argument)
SchemeType
project
- This is the project that the security is being checked forargument
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)public boolean hasPermission(Issue issue, String parameter)
SchemeType
issue
- This is the issue that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)public boolean hasPermission(Project project, String argument, ApplicationUser user, boolean issueCreation)
SchemeType
project
- This is the project that the security is being checked forargument
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creationpublic boolean hasPermission(Issue issue, String parameter, ApplicationUser user, boolean issueCreation)
SchemeType
issue
- This is the issue that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creationpublic void doValidation(String key, Map parameters, JiraServiceContext jiraServiceContext)
public Set<ApplicationUser> getUsers(PermissionContext ctx, String ignored)
SecurityType
ApplicationUser
s represented by a security type instance. The collection must
not contain any nulls.ctx
- The current issue and projectignored
- Instance value, eg. a group name, user name, custom field idApplicationUser
s.public boolean isTopLevelIssueSecurityPermission()
SecurityType
isTopLevelIssueSecurityPermission
in interface SecurityType
isTopLevelIssueSecurityPermission
in class AbstractProjectsSecurityType
public Set<org.apache.lucene.util.BytesRef> getPermissionFieldContents(ApplicationUser searcher, Project project, IssueSecurityLevel securityLevel, String parameter)
SecurityType
issue level permission field
)
contents based on the security level, the project and optionally the parameter (for role-based queries).
This is needed to build issue security level query.getPermissionFieldContents
in interface SecurityType
getPermissionFieldContents
in class AbstractProjectsSecurityType
searcher
- The searcher conducting the searchproject
- The project for which we're constructing a querysecurityLevel
- The security level for which we are constructing the permissions field contentsparameter
- Parameter identifying user related field (reporter, assignee, etc)SecurityIndexingUtils
Copyright © 2002-2024 Atlassian. All Rights Reserved.