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

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.util.AbstractDateSearchInputHelper
All Implemented Interfaces:
DateSearcherInputHelper
Direct Known Subclasses:
DefaultDateSearcherInputHelper, RelativeDateSearcherInputHelper

@Internal
public abstract class AbstractDateSearchInputHelper
extends Object
implements DateSearcherInputHelper

Since:
v4.4

Nested Class Summary
protected static class AbstractDateSearchInputHelper.ParseDateResult
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.search.searchers.util.DateSearcherInputHelper
DateSearcherInputHelper.ConvertClauseResult
 
Field Summary
protected  DateSearcherConfig config
           
protected static DateSearcherInputHelper.ConvertClauseResult CONVERT_CLAUSE_BAD_RESULT
           
protected  JqlOperandResolver operandResolver
           
 
Constructor Summary
AbstractDateSearchInputHelper(DateSearcherConfig config, JqlOperandResolver operandResolver)
           
 
Method Summary
 DateSearcherInputHelper.ConvertClauseResult convertClause(Clause clause, com.atlassian.crowd.embedded.api.User user, boolean allowTimeComponent)
          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
 

Field Detail

CONVERT_CLAUSE_BAD_RESULT

protected static final DateSearcherInputHelper.ConvertClauseResult CONVERT_CLAUSE_BAD_RESULT

config

protected final DateSearcherConfig config

operandResolver

protected final JqlOperandResolver operandResolver
Constructor Detail

AbstractDateSearchInputHelper

public AbstractDateSearchInputHelper(DateSearcherConfig config,
                                     JqlOperandResolver operandResolver)
Method Detail

convertClause

public DateSearcherInputHelper.ConvertClauseResult convertClause(Clause clause,
                                                                 com.atlassian.crowd.embedded.api.User user,
                                                                 boolean allowTimeComponent)
Description copied from interface: DateSearcherInputHelper
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 DateSearcherInputHelper
Parameters:
clause - the clause to convert.
user - the user trying to convert the clause.
allowTimeComponent - if true, date values which aren't midnight dates will be returned as midnight dates (thereby losing precision)
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-2014 Atlassian. All Rights Reserved.