public abstract class AbstractSearchInputTransformer extends Object implements SearchInputTransformer
Modifier and Type | Field and Description |
---|---|
protected String |
fieldsKey |
protected String |
id |
protected JqlOperandResolver |
operandResolver |
Constructor and Description |
---|
AbstractSearchInputTransformer(JqlOperandResolver operandResolver,
String id,
String fieldsKey) |
Modifier and Type | Method and Description |
---|---|
protected String |
getValueForField(List<TerminalClause> terminalClauses,
ApplicationUser user,
Collection<String> jqlClauseNames) |
protected String |
getValueForField(List<TerminalClause> terminalClauses,
ApplicationUser user,
String... jqlClauseNames) |
protected boolean |
hasDuplicates(List<TerminalClause> foundChildren) |
protected boolean |
hasEmpties(List<TerminalClause> foundChildren) |
void |
validateParams(ApplicationUser user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
Adds error messages to the errors object if values in the fieldValuesHolder fails validation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doRelevantClausesFitFilterForm, getSearchClause, populateFromParams, populateFromQuery
protected JqlOperandResolver operandResolver
protected final String fieldsKey
protected final String id
public AbstractSearchInputTransformer(JqlOperandResolver operandResolver, String id, String fieldsKey)
protected boolean hasDuplicates(List<TerminalClause> foundChildren)
protected boolean hasEmpties(List<TerminalClause> foundChildren)
protected String getValueForField(List<TerminalClause> terminalClauses, ApplicationUser user, String... jqlClauseNames)
protected String getValueForField(List<TerminalClause> terminalClauses, ApplicationUser user, Collection<String> jqlClauseNames)
public void validateParams(ApplicationUser user, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, I18nHelper i18nHelper, ErrorCollection errors)
SearchInputTransformer
validateParams
in interface SearchInputTransformer
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-2019 Atlassian. All Rights Reserved.