com.atlassian.jira.issue.search.searchers.transformer
Class NavigatorStructureChecker<T>

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.transformer.NavigatorStructureChecker<T>

public class NavigatorStructureChecker<T>
extends java.lang.Object

Utility class to assist in checking the fitness of a query for the issue navigator.

Since:
v4.0

Constructor Summary
NavigatorStructureChecker(ClauseNames clauseNames, boolean supportMultiLevelFunctions, FieldFlagOperandRegistry fieldFlagOperandRegistry, JqlOperandResolver operandResolver, IndexInfoResolver<T> indexInfoResolver, SearchContextVisibilityChecker searchContextVisibilityChecker)
           
 
Method Summary
 boolean checkSearchRequest(Query query, SearchContext searchContext)
          Checks that a SearchRequest's query conforms to the simple structure required to fit in the Issue Navigator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigatorStructureChecker

public NavigatorStructureChecker(ClauseNames clauseNames,
                                 boolean supportMultiLevelFunctions,
                                 FieldFlagOperandRegistry fieldFlagOperandRegistry,
                                 JqlOperandResolver operandResolver,
                                 IndexInfoResolver<T> indexInfoResolver,
                                 SearchContextVisibilityChecker searchContextVisibilityChecker)
Parameters:
clauseNames - The clause field names of the clause to check.
supportMultiLevelFunctions - set to true if the clause type supports functions inside of multivalue operands
fieldFlagOperandRegistry - the FieldFlagOperandRegistry
operandResolver - the JqlOperandSupport
indexInfoResolver - the index resolver of the field
searchContextVisibilityChecker - the context visibility check of the field
Method Detail

checkSearchRequest

public boolean checkSearchRequest(Query query,
                                  SearchContext searchContext)
Checks that a SearchRequest's query conforms to the simple structure required to fit in the Issue Navigator.

Parameters:
query - the search criteria used to populate the field values holder.
searchContext - the context under which the search is being performed.
Returns:
true if it will fit; false otherwise.


Copyright © 2002-2010 Atlassian. All Rights Reserved.