public abstract class

AbstractSearchInputTransformer

extends Object
implements SearchInputTransformer
java.lang.Object
   ↳ com.atlassian.jira.issue.search.searchers.transformer.AbstractSearchInputTransformer
Known Direct Subclasses

Class Overview

Common capabilities for SearchInputTransformer implementations.

Summary

Fields
protected final String fieldsKey
protected final String id
protected JqlOperandResolver operandResolver
Public Constructors
AbstractSearchInputTransformer(JqlOperandResolver operandResolver, String id, String fieldsKey)
Public Methods
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.
Protected Methods
String getValueForField(List<TerminalClause> terminalClauses, ApplicationUser user, String... jqlClauseNames)
String getValueForField(List<TerminalClause> terminalClauses, ApplicationUser user, Collection<String> jqlClauseNames)
boolean hasDuplicates(List<TerminalClause> foundChildren)
boolean hasEmpties(List<TerminalClause> foundChildren)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.search.searchers.transformer.SearchInputTransformer

Fields

protected final String fieldsKey

protected final String id

protected JqlOperandResolver operandResolver

Public Constructors

public AbstractSearchInputTransformer (JqlOperandResolver operandResolver, String id, String fieldsKey)

Public Methods

public 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. This should be called once the fieldValuesHolder has been populated.

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.

Protected Methods

protected String getValueForField (List<TerminalClause> terminalClauses, ApplicationUser user, String... jqlClauseNames)

protected String getValueForField (List<TerminalClause> terminalClauses, ApplicationUser user, Collection<String> jqlClauseNames)

protected boolean hasDuplicates (List<TerminalClause> foundChildren)

protected boolean hasEmpties (List<TerminalClause> foundChildren)