com.atlassian.jira.security.type
Class AbstractProjectsSecurityType

java.lang.Object
  extended by com.atlassian.jira.security.type.AbstractSecurityType
      extended by com.atlassian.jira.security.type.AbstractProjectsSecurityType
All Implemented Interfaces:
SchemeType, SecurityType
Direct Known Subclasses:
GroupDropdown, ProjectLead, ProjectRoleSecurityAndNotificationType, SingleUser

public abstract class AbstractProjectsSecurityType
extends AbstractSecurityType


Constructor Summary
AbstractProjectsSecurityType()
           
 
Method Summary
protected  org.apache.lucene.search.Query getQuery(IssueSecurityLevel securityLevel)
           
 org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher, Project project, IssueSecurityLevel securityLevel, String parameter)
          Returns a query based on security level and the project passed in.
 org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher, Project project, String parameter)
           
 
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.security.type.SecurityType
getUsers
 
Methods inherited from interface com.atlassian.jira.scheme.SchemeType
doValidation, getDisplayName, getType, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission
 

Constructor Detail

AbstractProjectsSecurityType

public AbstractProjectsSecurityType()
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher,
                                               Project project,
                                               String parameter)

getQuery

public org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher,
                                               Project project,
                                               IssueSecurityLevel securityLevel,
                                               String parameter)
Description copied from interface: SecurityType
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 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)
Returns:
A lucene permissions query

getQuery

protected org.apache.lucene.search.Query getQuery(IssueSecurityLevel securityLevel)


Copyright © 2002-2014 Atlassian. All Rights Reserved.