Class ProjectSelectStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.customfields.statistics.AbstractCustomFieldStatisticsMapper
com.atlassian.jira.issue.customfields.statistics.ProjectSelectStatisticsMapper
- All Implemented Interfaces:
LuceneFieldSorter
,SearchRequestAppender.Factory
,StatisticsMapper
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 that can be used to order objects returned byLuceneFieldSorter.getValueFromLuceneField(String)
.protected String
getSearchValue
(Object value) String value to be passed to the search request to construct a new request URLgetValueFromLuceneField
(String documentValue) Convert the lucene 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, getDocumentConstant, getSearchContextFromValue, getSearchUrlSuffix, hashCode, isFieldAlwaysPartOfAnIssue, isValidValue
-
Constructor Details
-
ProjectSelectStatisticsMapper
-
-
Method Details
-
getSearchValue
Description copied from class:AbstractCustomFieldStatisticsMapper
String value to be passed to the search request to construct a new request URL- Specified by:
getSearchValue
in classAbstractCustomFieldStatisticsMapper
- Parameters:
value
- returned fromLuceneFieldSorter.getValueFromLuceneField(java.lang.String)
- Returns:
- String
-
getValueFromLuceneField
Description copied from interface:LuceneFieldSorter
Convert the lucene document field back to the object that you wish to use to display it.eg. '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:
getValueFromLuceneField
in interfaceLuceneFieldSorter
- Parameters:
documentValue
- The value of the field in the lucene index- Returns:
- The value that will be passed to the display
-
getComparator
Description copied from interface:LuceneFieldSorter
A comparator that can be used to order objects returned byLuceneFieldSorter.getValueFromLuceneField(String)
.The Comparator must be reentrant as it could be used by Lucene from multiple threads at once.
- Specified by:
getComparator
in interfaceLuceneFieldSorter
- Overrides:
getComparator
in classAbstractCustomFieldStatisticsMapper
-
getSearchRequestAppender
- Specified by:
getSearchRequestAppender
in interfaceSearchRequestAppender.Factory
- Since:
- v6.0
-