com.atlassian.jira.issue.customfields.searchers
Class SimpleCustomFieldSearcherClauseHandler

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.searchers.SimpleCustomFieldSearcherClauseHandler
All Implemented Interfaces:
CustomFieldSearcherClauseHandler
Direct Known Subclasses:
SimpleAllTextCustomFieldSearcherClauseHandler, SimpleCustomFieldClauseContextHandler, SimpleCustomFieldClauseSanitiserHandler, SimpleCustomFieldValueGeneratingClauseHandler

@NonInjectableComponent
public class SimpleCustomFieldSearcherClauseHandler
extends java.lang.Object
implements CustomFieldSearcherClauseHandler

A simple implementation of the CustomFieldSearcherClauseHandler.

Since:
v4.0

Constructor Summary
SimpleCustomFieldSearcherClauseHandler(ClauseValidator validator, ClauseQueryFactory clauseQueryFactory, java.util.Set<Operator> supportedOperators, JiraDataType supportedType)
           
 
Method Summary
 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.
 java.util.Set<Operator> getSupportedOperators()
          Provides a set of the supported Operator's that this custom field searcher can handle for its searching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCustomFieldSearcherClauseHandler

public SimpleCustomFieldSearcherClauseHandler(ClauseValidator validator,
                                              ClauseQueryFactory clauseQueryFactory,
                                              java.util.Set<Operator> supportedOperators,
                                              JiraDataType supportedType)
Method Detail

getClauseValidator

public ClauseValidator getClauseValidator()
Description copied from interface: CustomFieldSearcherClauseHandler
Provides a validator for TerminalClause's created by this searcher.

Specified by:
getClauseValidator in interface CustomFieldSearcherClauseHandler
Returns:
a validator for TerminalClause's created by this searcher.

getClauseQueryFactory

public ClauseQueryFactory getClauseQueryFactory()
Description copied from interface: CustomFieldSearcherClauseHandler
Provides a lucene query generator for TerminalClause's created by this searcher.

Specified by:
getClauseQueryFactory in interface CustomFieldSearcherClauseHandler
Returns:
a lucene query generator for TerminalClause's created by this searcher.

getSupportedOperators

public java.util.Set<Operator> getSupportedOperators()
Description copied from interface: CustomFieldSearcherClauseHandler
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 ClauseInformation.getSupportedOperators().

Specified by:
getSupportedOperators in interface CustomFieldSearcherClauseHandler
Returns:
a set of supported operators.

getDataType

public JiraDataType getDataType()
Description copied from interface: CustomFieldSearcherClauseHandler
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 ClauseInformation.getDataType().

Specified by:
getDataType in interface CustomFieldSearcherClauseHandler
Returns:
the JiraDataType that this clause can handle.


Copyright © 2002-2010 Atlassian. All Rights Reserved.