com.atlassian.jira.security.type
Interface SecurityType
- All Superinterfaces:
- SchemeType
- All Known Implementing Classes:
- AbstractIssueFieldSecurityType, AbstractProjectsSecurityType, AbstractSecurityType, CurrentAssignee, CurrentAssigneeHasAssignablePermission, CurrentReporter, CurrentReporterHasCreatePermission, GroupCF, GroupDropdown, ProjectLead, ProjectRoleSecurityAndNotificationType, SimpleIssueFieldSecurityType, SingleUser, UserCF
public interface SecurityType
- extends SchemeType
Method Summary |
String |
getArgumentDisplay(String argument)
|
org.apache.lucene.search.Query |
getQuery(com.atlassian.crowd.embedded.api.User searcher,
org.ofbiz.core.entity.GenericValue entity,
String parameter)
|
org.apache.lucene.search.Query |
getQuery(com.atlassian.crowd.embedded.api.User searcher,
Project project,
org.ofbiz.core.entity.GenericValue securityLevel,
String parameter)
Returns a query based on security level and the project passed in. |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers(PermissionContext permissionContext,
String argument)
Returns a list of User s represented by a security type instance. |
getQuery
org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher,
org.ofbiz.core.entity.GenericValue entity,
String parameter)
getQuery
org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher,
Project project,
org.ofbiz.core.entity.GenericValue securityLevel,
String parameter)
- Returns a query based on security level and the project passed in. This may be required in particular
for role based issue security levels. (see JRA-12739)
- 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 queryparameter
- Parameter identifying user related field (reporter, assignee, etc)
- Returns:
- A lucene permissions query
getArgumentDisplay
String getArgumentDisplay(String argument)
getUsers
Set<com.atlassian.crowd.embedded.api.User> getUsers(PermissionContext permissionContext,
String argument)
- Returns a list of
User
s represented by a security type instance. The collection must
not contain any nulls.
- Parameters:
permissionContext
- The current issue and projectargument
- Instance value, eg. a group name, user name, custom field id
- Returns:
- A set of
User
s.
- Throws:
IllegalArgumentException
- if argument is invalid for this type.
Copyright © 2002-2012 Atlassian. All Rights Reserved.