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
 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.
 
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
 

Constructor Detail

AbstractProjectsSecurityType

public AbstractProjectsSecurityType()
Method Detail

getQuery

public org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher,
                                               org.ofbiz.core.entity.GenericValue entity,
                                               String parameter)

getQuery

public org.apache.lucene.search.Query getQuery(com.atlassian.crowd.embedded.api.User searcher,
                                               Project project,
                                               org.ofbiz.core.entity.GenericValue 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


Copyright © 2002-2012 Atlassian. All Rights Reserved.