com.atlassian.jira.issue.customfields.statistics
Class CustomFieldSearchRequestAppender
java.lang.Object
com.atlassian.jira.issue.customfields.statistics.CustomFieldSearchRequestAppender
- All Implemented Interfaces:
- SearchRequestAppender
public class CustomFieldSearchRequestAppender
- extends Object
- implements 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:
SearchRequestAppender
,
AbstractCustomFieldStatisticsMapper
,
SearchRequestAppender.Factory
,
CustomField
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomFieldSearchRequestAppender
public CustomFieldSearchRequestAppender(CustomField customField,
AbstractCustomFieldStatisticsMapper customFieldStatisticsMapper)
appendInclusiveSingleValueClause
public SearchRequest appendInclusiveSingleValueClause(Object value,
SearchRequest searchRequest)
- Description copied from interface:
SearchRequestAppender
- Append a single AND clause to the given SearchRequest, specifying that the given single value should be
included.
- Specified by:
appendInclusiveSingleValueClause
in interface SearchRequestAppender
- 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
public SearchRequest appendExclusiveMultiValueClause(Iterable values,
SearchRequest searchRequest)
- Description copied from interface:
SearchRequestAppender
- Append a multi-value clause to the given SearchRequest, specifying that the given values should not be included.
- Specified by:
appendExclusiveMultiValueClause
in interface SearchRequestAppender
- 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.
Copyright © 2002-2014 Atlassian. All Rights Reserved.