@PublicApi @PublicSpi public class DateRangeSearcher extends AbstractInitializationCustomFieldSearcher implements NaturallyOrderedCustomFieldSearcher, CustomFieldSearcher, SortableCustomFieldSearcher
log| Constructor and Description |
|---|
DateRangeSearcher(JqlOperandResolver operandResolver,
JqlLocalDateSupport jqlLocalDateSupport,
CustomFieldInputHelper customFieldInputHelper,
DateTimeFormatterFactory dateTimeFormatterFactory,
VelocityRequestContextFactory velocityRenderContext,
ApplicationProperties applicationProperties,
com.atlassian.velocity.VelocityManager velocityManager,
CalendarLanguageUtil calendarUtils,
FieldVisibilityManager fieldVisibilityManager) |
DateRangeSearcher(JqlOperandResolver operandResolver,
JqlLocalDateSupport jqlLocalDateSupport,
CustomFieldInputHelper customFieldInputHelper,
DateTimeFormatterFactory dateTimeFormatterFactory,
VelocityRequestContextFactory velocityRenderContext,
ApplicationProperties applicationProperties,
com.atlassian.velocity.VelocityManager velocityManager,
CalendarLanguageUtil calendarUtils,
FieldVisibilityManager fieldVisibilityManager,
IndexingFeatures indexingFeatures) |
| Modifier and Type | Method and Description |
|---|---|
CustomFieldSearcherClauseHandler |
getCustomFieldSearcherClauseHandler()
Provides an object that can be used to handle the clauses that this searcher generates.
|
SearcherInformation<CustomField> |
getSearchInformation()
Provides an object that contains information about the Searcher.
|
SearchInputTransformer |
getSearchInputTransformer()
Provides an object that will allow you to transform raw request parameters to field holder values and
field holder values to
Clause search representations. |
SearchRenderer |
getSearchRenderer()
Provides an object that will allow you to render the edit and view html for a searcher.
|
LuceneFieldSorter |
getSorter(CustomField customField) |
String |
getSortField(CustomField customField)
Return the name of the Lucene field to use for ordering.
|
org.apache.lucene.search.SortField.Type |
getSortFieldType()
Returns the
type to use when sorting on the values of this custom field. |
void |
init(CustomField field)
Initialises the searcher with a given field.
|
getDescriptor, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescriptor, initpublic DateRangeSearcher(JqlOperandResolver operandResolver, JqlLocalDateSupport jqlLocalDateSupport, CustomFieldInputHelper customFieldInputHelper, DateTimeFormatterFactory dateTimeFormatterFactory, VelocityRequestContextFactory velocityRenderContext, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, CalendarLanguageUtil calendarUtils, FieldVisibilityManager fieldVisibilityManager)
public DateRangeSearcher(JqlOperandResolver operandResolver, JqlLocalDateSupport jqlLocalDateSupport, CustomFieldInputHelper customFieldInputHelper, DateTimeFormatterFactory dateTimeFormatterFactory, VelocityRequestContextFactory velocityRenderContext, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, CalendarLanguageUtil calendarUtils, FieldVisibilityManager fieldVisibilityManager, IndexingFeatures indexingFeatures)
public void init(CustomField field)
IssueSearcherinit in interface IssueSearcher<CustomField>field - the field object. This may be null. (So you can have searchers on non-fields)public SearcherInformation<CustomField> getSearchInformation()
IssueSearchergetSearchInformation in interface IssueSearcher<CustomField>public SearchInputTransformer getSearchInputTransformer()
IssueSearcherClause search representations.getSearchInputTransformer in interface IssueSearcher<CustomField>public SearchRenderer getSearchRenderer()
IssueSearchergetSearchRenderer in interface IssueSearcher<CustomField>public LuceneFieldSorter getSorter(CustomField customField)
getSorter in interface SortableCustomFieldSearcherpublic CustomFieldSearcherClauseHandler getCustomFieldSearcherClauseHandler()
CustomFieldSearchergetCustomFieldSearcherClauseHandler in interface CustomFieldSearcherpublic String getSortField(CustomField customField)
NaturallyOrderedCustomFieldSearchergetSortField in interface NaturallyOrderedCustomFieldSearchercustomField - The custom field to be searchedpublic org.apache.lucene.search.SortField.Type getSortFieldType()
NaturallyOrderedCustomFieldSearchertype to use when sorting on the values of this custom field.
This also necessitates adding NumericDocValues to documents for numeric and date data types,
and SortedDocValues for string types at indexing time.getSortFieldType in interface NaturallyOrderedCustomFieldSearcherCopyright © 2002-2024 Atlassian. All Rights Reserved.