Class CustomFieldLabelsStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.statistics.LabelsStatisticsMapper
com.atlassian.jira.issue.statistics.CustomFieldLabelsStatisticsMapper
- All Implemented Interfaces:
SearchRequestAppender.Factory,StatisticsMapper,FieldValueLoader
public class CustomFieldLabelsStatisticsMapper
extends LabelsStatisticsMapper
implements SearchRequestAppender.Factory
- Since:
- v4.2
-
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldLabelsStatisticsMapper(CustomField customField, CustomFieldInputHelper customFieldInputHelper, JiraAuthenticationContext authenticationContext, boolean includeEmpty) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetSearchUrlSuffix(Object value, SearchRequest searchRequest) Deprecated.Use #getSearchRequestAppender().appendInclusiveSingleValueClause()Methods inherited from class com.atlassian.jira.issue.statistics.LabelsStatisticsMapper
field, getComparator, isFieldAlwaysPartOfAnIssue, isValidValue, loadValue
-
Constructor Details
-
CustomFieldLabelsStatisticsMapper
public CustomFieldLabelsStatisticsMapper(CustomField customField, CustomFieldInputHelper customFieldInputHelper, JiraAuthenticationContext authenticationContext, boolean includeEmpty)
-
-
Method Details
-
getClauseName
- Overrides:
getClauseNamein classLabelsStatisticsMapper
-
getSearchUrlSuffix
Deprecated.Use #getSearchRequestAppender().appendInclusiveSingleValueClause()Description copied from interface:StatisticsMapperGet a suffix for the issue navigator, which allows for filtering on this value.e.g. a project field would return a SearchRequest object who's getQueryString method will produce
pid=10240Note that values returned from implementations should return values that are URLEncoded.
- Specified by:
getSearchUrlSuffixin interfaceStatisticsMapper- Overrides:
getSearchUrlSuffixin classLabelsStatisticsMapper- Parameters:
value- This is the same value that will be returned frominvalid reference
#getValueFromLuceneField(String)searchRequest- is the search request that should be used as the base of the newly generated SearchRequest object. If this parameter is null then the return type will also be null.- Returns:
- a SearchRequest object that will generate the correct issue navigator url to search the correct statistics set, null otherwise.
- See Also:
-
getSearchRequestAppender
- Specified by:
getSearchRequestAppenderin interfaceSearchRequestAppender.Factory- Overrides:
getSearchRequestAppenderin classLabelsStatisticsMapper- Since:
- v6.0
-