com.atlassian.jira.issue.search.searchers.util
Class DefaultQuerySearcherInputHelper

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.util.DefaultQuerySearcherInputHelper
All Implemented Interfaces:
QuerySearcherInputHelper

public class DefaultQuerySearcherInputHelper
extends Object
implements QuerySearcherInputHelper

A simple object that can determine if a query string has been provided AND that it is relevant across all the text system fields AND which of those fields are relevant.

Since:
v4.0

Constructor Summary
DefaultQuerySearcherInputHelper(String queryParameter, JqlOperandResolver operandResolver)
           
 
Method Summary
 Map<String,String> convertClause(Clause clause, User user)
          Take the passed clause and try and get the equivalent navigator parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQuerySearcherInputHelper

public DefaultQuerySearcherInputHelper(String queryParameter,
                                       JqlOperandResolver operandResolver)
Method Detail

convertClause

public Map<String,String> convertClause(Clause clause,
                                        User user)
Description copied from interface: QuerySearcherInputHelper
Take the passed clause and try and get the equivalent navigator parameters. Note: this also performs a validity check on the structure of the clause to determine if it fits for the Navigator. Therefore, it is not required to check this before the call is made.

Specified by:
convertClause in interface QuerySearcherInputHelper
Parameters:
clause - the clause to convert.
user - the user trying to convert the clause.
Returns:
on success a map of navigator param -> value, or null on failure. The map will only contain the params that were present in the clause.


Copyright © 2002-2009 Atlassian. All Rights Reserved.