@NonInjectableComponent public class

SimpleCustomFieldSearcherClauseHandler

extends Object
implements CustomFieldSearcherClauseHandler
java.lang.Object
   ↳ com.atlassian.jira.issue.customfields.searchers.SimpleCustomFieldSearcherClauseHandler
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A simple implementation of the CustomFieldSearcherClauseHandler.

Summary

Public Constructors
SimpleCustomFieldSearcherClauseHandler(ClauseValidator validator, ClauseQueryFactory clauseQueryFactory, Set<Operator> supportedOperators, JiraDataType supportedType)
Public Methods
ClauseQueryFactory getClauseQueryFactory()
Provides a lucene query generator for TerminalClause's created by this searcher.
ClauseValidator getClauseValidator()
Provides a validator for TerminalClause's created by this searcher.
JiraDataType getDataType()
Provides the JiraDataType that this clause handles and searches on.
Set<Operator> getSupportedOperators()
Provides a set of the supported Operator's that this custom field searcher can handle for its searching.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.searchers.CustomFieldSearcherClauseHandler

Public Constructors

public SimpleCustomFieldSearcherClauseHandler (ClauseValidator validator, ClauseQueryFactory clauseQueryFactory, Set<Operator> supportedOperators, JiraDataType supportedType)

Public Methods

public ClauseQueryFactory getClauseQueryFactory ()

Provides a lucene query generator for TerminalClause's created by this searcher.

Returns
  • a lucene query generator for TerminalClause's created by this searcher.

public ClauseValidator getClauseValidator ()

Provides a validator for TerminalClause's created by this searcher.

Returns

public JiraDataType getDataType ()

Provides the JiraDataType that this clause handles and searches on. This allows us to infer some information about how the search will behave and how it will interact with other elements in the system.

This will be used to populate the getDataType().

Returns
  • the JiraDataType that this clause can handle.

public Set<Operator> getSupportedOperators ()

Provides a set of the supported Operator's that this custom field searcher can handle for its searching.

This will be used to populate the getSupportedOperators().

Returns
  • a set of supported operators.