Interface SecurityType

All Superinterfaces:
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)
    getQuery(com.atlassian.crowd.embedded.api.User searcher, org.ofbiz.core.entity.GenericValue entity, String parameter)
    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 Users represented by a security type instance.
Methods inherited from interface com.atlassian.jira.scheme.SchemeType
doValidation, getDisplayName, getType, hasPermission, hasPermission, isValidForPermission

Method Detail

getQuery getQuery(com.atlassian.crowd.embedded.api.User searcher,
                                        org.ofbiz.core.entity.GenericValue entity,
                                        String parameter)

getQuery 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)

searcher - The searcher conducting the search
project - The project for which we're constructing a query
securityLevel - The security level for which we are constructing the query
parameter - Parameter identifying user related field (reporter, assignee, etc)
A lucene permissions query


String getArgumentDisplay(String argument)


Set<com.atlassian.crowd.embedded.api.User> getUsers(PermissionContext permissionContext,
                                                    String argument)
Returns a list of Users represented by a security type instance. The collection must not contain any nulls.

permissionContext - The current issue and project
argument - Instance value, eg. a group name, user name, custom field id
A set of Users.
IllegalArgumentException - if argument is invalid for this type.

Copyright © 2002-2012 Atlassian. All Rights Reserved.