Class CustomFieldSearchRequestAppender
java.lang.Object
com.atlassian.jira.issue.customfields.statistics.CustomFieldSearchRequestAppender
- All Implemented Interfaces:
SearchRequestAppender
This is an implementation of SearchRequestAppender suitable for handling custom field values. This is typically used
by subclasses of AbstractCustomFieldStatisticsMapper which also implement SearchRequestAppender.Factory.
- Since:
- v6.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.search.SearchRequestAppender
SearchRequestAppender.Factory<T> -
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldSearchRequestAppender(CustomField customField, AbstractCustomFieldStatisticsMapper customFieldStatisticsMapper) -
Method Summary
Modifier and TypeMethodDescriptionappendExclusiveMultiValueClause(Iterable values, SearchRequest searchRequest) Append a multi-value clause to the given SearchRequest, specifying that the given values should not be included.appendInclusiveSingleValueClause(Object value, SearchRequest searchRequest) Append a single AND clause to the given SearchRequest, specifying that the given single value should be included.
-
Constructor Details
-
CustomFieldSearchRequestAppender
public CustomFieldSearchRequestAppender(CustomField customField, AbstractCustomFieldStatisticsMapper customFieldStatisticsMapper)
-
-
Method Details
-
appendInclusiveSingleValueClause
Description copied from interface:SearchRequestAppenderAppend a single AND clause to the given SearchRequest, specifying that the given single value should be included.- Specified by:
appendInclusiveSingleValueClausein interfaceSearchRequestAppender- Parameters:
value- The value used to populate the new clause.searchRequest- The existing query to be used as the basis for the new query. Will not be modified.- Returns:
- A new SearchRequest containing the modified query, or null if the new clause cannot be added.
-
appendExclusiveMultiValueClause
Description copied from interface:SearchRequestAppenderAppend a multi-value clause to the given SearchRequest, specifying that the given values should not be included.- Specified by:
appendExclusiveMultiValueClausein interfaceSearchRequestAppender- Parameters:
values- The values used to populate the new clausesearchRequest- The existing query to be used as the basis for the new query. Will not be modified.- Returns:
- A new SearchRequest containing the modified query, or null if the new clause cannot be added.
-