Class UserPickerStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.customfields.statistics.AbstractCustomFieldStatisticsMapper
com.atlassian.jira.issue.customfields.statistics.UserPickerStatisticsMapper
- All Implemented Interfaces:
SearchRequestAppender.Factory,StatisticsMapper,FieldValueLoader
public class UserPickerStatisticsMapper
extends AbstractCustomFieldStatisticsMapper
implements SearchRequestAppender.Factory
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.customfields.statistics.AbstractCustomFieldStatisticsMapper
customField -
Constructor Summary
ConstructorsConstructorDescriptionUserPickerStatisticsMapper(CustomField customField, UserManager userManager, JiraAuthenticationContext authenticationContext) -
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
-
UserPickerStatisticsMapper
public UserPickerStatisticsMapper(CustomField customField, UserManager userManager, JiraAuthenticationContext authenticationContext)
-
-
Method Details
-
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
-
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
-
getSearchRequestAppender
- Specified by:
getSearchRequestAppenderin interfaceSearchRequestAppender.Factory- Since:
- v6.0
-