Class DateRangeSearcher
java.lang.Object
com.atlassian.jira.issue.customfields.searchers.AbstractInitializationCustomFieldSearcher
com.atlassian.jira.issue.customfields.searchers.DateRangeSearcher
- All Implemented Interfaces:
CustomFieldSearcher,NaturallyOrderedCustomFieldSearcher,ValueLoaderCustomFieldSearcher,IssueSearcher<CustomField>
@PublicApi
@PublicSpi
public class DateRangeSearcher
extends AbstractInitializationCustomFieldSearcher
implements NaturallyOrderedCustomFieldSearcher, CustomFieldSearcher, ValueLoaderCustomFieldSearcher
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.search.searchers.IssueSearcher
log -
Constructor Summary
ConstructorsConstructorDescriptionDateRangeSearcher(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) -
Method Summary
Modifier and TypeMethodDescriptionProvides an object that can be used to handle the clauses that this searcher generates.Provides an object that contains information about the Searcher.Provides an object that will allow you to transform raw request parameters to field holder values and field holder values toClausesearch representations.Provides an object that will allow you to render the edit and view html for a searcher.getSortField(CustomField customField) Return the name of the field to use for ordering.getValueLoader(CustomField customField) Gets the value loader for the provided custom field.voidinit(CustomField field) Initialises the searcher with a given field.Methods inherited from class com.atlassian.jira.issue.customfields.searchers.AbstractInitializationCustomFieldSearcher
getDescriptor, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldSearcher
getDescriptor, init
-
Constructor Details
-
DateRangeSearcher
public DateRangeSearcher(JqlOperandResolver operandResolver, JqlLocalDateSupport jqlLocalDateSupport, CustomFieldInputHelper customFieldInputHelper, DateTimeFormatterFactory dateTimeFormatterFactory, VelocityRequestContextFactory velocityRenderContext, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, CalendarLanguageUtil calendarUtils, FieldVisibilityManager fieldVisibilityManager) -
DateRangeSearcher
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)
-
-
Method Details
-
init
Description copied from interface:IssueSearcherInitialises the searcher with a given field.- Specified by:
initin interfaceIssueSearcher<CustomField>- Parameters:
field- the field object. This may be null. (So you can have searchers on non-fields)
-
getSearchInformation
Description copied from interface:IssueSearcherProvides an object that contains information about the Searcher.- Specified by:
getSearchInformationin interfaceIssueSearcher<CustomField>- Returns:
- the search information provider for this searcher.
-
getSearchInputTransformer
Description copied from interface:IssueSearcherProvides an object that will allow you to transform raw request parameters to field holder values and field holder values toClausesearch representations.- Specified by:
getSearchInputTransformerin interfaceIssueSearcher<CustomField>- Returns:
- the search input handler for this searcher.
-
getSearchRenderer
Description copied from interface:IssueSearcherProvides an object that will allow you to render the edit and view html for a searcher. This also provides methods that indicate if the view and edit methods should be invoked.- Specified by:
getSearchRendererin interfaceIssueSearcher<CustomField>- Returns:
- the search renderer for this searcher.
-
getCustomFieldSearcherClauseHandler
Description copied from interface:CustomFieldSearcherProvides an object that can be used to handle the clauses that this searcher generates.- Specified by:
getCustomFieldSearcherClauseHandlerin interfaceCustomFieldSearcher- Returns:
- an object that can be used to handle the clauses that this searcher generates, can be null.
-
getSortField
Description copied from interface:NaturallyOrderedCustomFieldSearcherReturn the name of the field to use for ordering. This will normally be just the field, .i.e customField.getId() but some searchers, e.g. TextSearcher, store additional fields to support sorting.- Specified by:
getSortFieldin interfaceNaturallyOrderedCustomFieldSearcher- Parameters:
customField- The custom field to be searched- Returns:
- The field name to use for ordering.
-
getValueLoader
Description copied from interface:ValueLoaderCustomFieldSearcherGets the value loader for the provided custom field.- Specified by:
getValueLoaderin interfaceValueLoaderCustomFieldSearcher- Returns:
- the value loader for the provided custom field
-