@NonInjectableComponent public class

DefaultWorkRatioSearcherInputHelper

extends Object
implements WorkRatioSearcherInputHelper
java.lang.Object
   ↳ com.atlassian.jira.issue.search.searchers.util.DefaultWorkRatioSearcherInputHelper

Class Overview

Helper class to parse JQL clauses and determine if they are suitable for usage in the Navigator or Search URL.

Summary

Public Constructors
DefaultWorkRatioSearcherInputHelper(SimpleFieldSearchConstants constants, JqlOperandResolver operandResolver)
Public Methods
Map<StringString> convertClause(Clause clause, User user)
Take the passed clause and try and get the equivalent navigator parameters.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.search.searchers.util.WorkRatioSearcherInputHelper

Public Constructors

public DefaultWorkRatioSearcherInputHelper (SimpleFieldSearchConstants constants, JqlOperandResolver operandResolver)

Public Methods

public Map<StringString> convertClause (Clause clause, User user)

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.

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.