Class ProjectSelectStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.customfields.statistics.AbstractCustomFieldStatisticsMapper
com.atlassian.jira.issue.customfields.statistics.ProjectSelectStatisticsMapper
- All Implemented Interfaces:
SearchRequestAppender.Factory,StatisticsMapper,FieldValueLoader
public class ProjectSelectStatisticsMapper
extends AbstractCustomFieldStatisticsMapper
implements SearchRequestAppender.Factory
A statistics mapper for project select custom fields.
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.customfields.statistics.AbstractCustomFieldStatisticsMapper
customField -
Constructor Summary
ConstructorsConstructorDescriptionProjectSelectStatisticsMapper(CustomField customField, ProjectManager projectManager) -
Method Summary
Modifier and TypeMethodDescriptionA comparator by which the resulting values should be ordered when multiple values are present.protected StringgetSearchValue(Object value) String value to be passed to the search request to construct a new request URLConvert the document field back to the object that you wish to use to display it.Methods inherited from class com.atlassian.jira.issue.customfields.statistics.AbstractCustomFieldStatisticsMapper
equals, field, getSearchContextFromValue, getSearchUrlSuffix, hashCode, isFieldAlwaysPartOfAnIssue, isValidValue
-
Constructor Details
-
ProjectSelectStatisticsMapper
-
-
Method Details
-
getSearchValue
Description copied from class:AbstractCustomFieldStatisticsMapperString value to be passed to the search request to construct a new request URL- Specified by:
getSearchValuein classAbstractCustomFieldStatisticsMapper- Parameters:
value- returned frominvalid reference
#getValueFromLuceneField- Returns:
- String
-
loadValue
Description copied from interface:FieldValueLoaderConvert the document field back to the object that you wish to use to display it.e.g. '1000' -> Version 1.
For custom fields, the return value will be passed to
CustomFieldSearcherModuleDescriptor.getStatHtml(com.atlassian.jira.issue.fields.CustomField, Object, String)- Specified by:
loadValuein interfaceFieldValueLoader- Parameters:
documentValue- The value of the field in the index or null if no values exist- Returns:
- The value that will be passed to the display
-
getComparator
Description copied from interface:FieldValueLoaderA comparator by which the resulting values should be ordered when multiple values are present.The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.
- Specified by:
getComparatorin interfaceFieldValueLoader- Overrides:
getComparatorin classAbstractCustomFieldStatisticsMapper
-
getSearchRequestAppender
- Specified by:
getSearchRequestAppenderin interfaceSearchRequestAppender.Factory- Since:
- v6.0
-