com.atlassian.jira.issue.search.searchers.transformer
Class AbstractSearchInputTransformer
java.lang.Object
com.atlassian.jira.issue.search.searchers.transformer.AbstractSearchInputTransformer
- All Implemented Interfaces:
- SearchInputTransformer
- Direct Known Subclasses:
- TextQuerySearchInputTransformer
public abstract class AbstractSearchInputTransformer
- extends Object
- implements SearchInputTransformer
Common capabilities for SearchInputTransformer implementations.
- Since:
- v5.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
operandResolver
protected JqlOperandResolver operandResolver
fieldsKey
protected final String fieldsKey
id
protected final String id
AbstractSearchInputTransformer
public AbstractSearchInputTransformer(JqlOperandResolver operandResolver,
String id,
String fieldsKey)
hasDuplicates
protected boolean hasDuplicates(List<TerminalClause> foundChildren)
hasEmpties
protected boolean hasEmpties(List<TerminalClause> foundChildren)
getValueForField
protected String getValueForField(List<TerminalClause> terminalClauses,
com.atlassian.crowd.embedded.api.User user,
String... jqlClauseNames)
getValueForField
protected String getValueForField(List<TerminalClause> terminalClauses,
com.atlassian.crowd.embedded.api.User user,
Collection<String> jqlClauseNames)
validateParams
public void validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
- Description copied from interface:
SearchInputTransformer
- Adds error meessages to the errors object if values in the fieldValuesHolder fails validation. This should be
called once the fieldValuesHolder has been populated.
- Specified by:
validateParams
in interface SearchInputTransformer
- Parameters:
user
- performing this action.searchContext
- the context of the search (i.e. projects and issue types selected).fieldValuesHolder
- contains values populated by the populate methods of this input transformer.i18nHelper
- used to internationalize error messages that we want to display to the users.errors
- the ErrorCollection that contains the messages we want to display to the users.
Copyright © 2002-2013 Atlassian. All Rights Reserved.