Package com.atlassian.jira.security.type
Class AbstractProjectsSecurityType
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractProjectsSecurityType
- All Implemented Interfaces:
SchemeType
,SecurityType
- Direct Known Subclasses:
ApplicationRoleSecurityType
,GroupDropdown
,ProjectLead
,ProjectRoleSecurityAndNotificationType
,SingleUser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<org.apache.lucene.util.BytesRef>
getPermissionFieldContents
(IssueSecurityLevel securityLevel) 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).Set<org.apache.lucene.util.BytesRef>
getPermissionFieldContents
(ApplicationUser searcher, Project project, String parameter) Returns a set of (project permission field
) contents based on the project and optionally the parameter (for role-based queries).boolean
Returns true if this permission depends only on a issue security level value and not on project or any field value.boolean
Returns true if this permission depends only on a project value and not on issue security level or any field value.Methods inherited from class com.atlassian.jira.security.type.AbstractSecurityType
getArgumentDisplay, isValidForPermission
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.scheme.SchemeType
doValidation, getDisplayName, getType, hasPermission, hasPermission, hasPermission, hasPermission
Methods inherited from interface com.atlassian.jira.security.type.SecurityType
getUsers, getUsers
-
Constructor Details
-
AbstractProjectsSecurityType
public AbstractProjectsSecurityType()
-
-
Method Details
-
isTopLevelProjectPermission
public boolean isTopLevelProjectPermission()Description copied from interface:SecurityType
Returns true if this permission depends only on a project value and not on issue security level or any field value. Used for optimisation. -
getPermissionFieldContents
public Set<org.apache.lucene.util.BytesRef> getPermissionFieldContents(ApplicationUser searcher, Project project, String parameter) Description copied from interface:SecurityType
Returns a set of (project permission field
) contents based on the project and optionally the parameter (for role-based queries). This is needed to build project security scheme query.- Parameters:
searcher
- The searcher conducting the searchproject
- The project for which we're constructing the permissions field contentsparameter
- Parameter identifying user related field (reporter, assignee, etc)- Returns:
- A set of Lucene permissions field tuples
- See Also:
-
isTopLevelIssueSecurityPermission
public boolean isTopLevelIssueSecurityPermission()Description copied from interface:SecurityType
Returns true if this permission depends only on a issue security level value and not on project or any field value. Used for optimisation. -
getPermissionFieldContents
public Set<org.apache.lucene.util.BytesRef> getPermissionFieldContents(ApplicationUser searcher, Project project, IssueSecurityLevel securityLevel, String parameter) Description copied from interface:SecurityType
Returns a set of (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.- Parameters:
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)- Returns:
- A set of Lucene permissions field tuples
- See Also:
-
getPermissionFieldContents
protected Set<org.apache.lucene.util.BytesRef> getPermissionFieldContents(IssueSecurityLevel securityLevel)
-