Class CascadingSelectStatisticsMapper
java.lang.Object
com.atlassian.jira.issue.customfields.statistics.CascadingOptionFieldSorter
com.atlassian.jira.issue.customfields.statistics.CascadingSelectStatisticsMapper
- All Implemented Interfaces:
SearchRequestAppender.Factory<CascadingOption>,StatisticsMapper<CascadingOption>,ValueStatisticMapper<CascadingOption>,FieldValueLoader<CascadingOption>
@Internal
public class CascadingSelectStatisticsMapper
extends CascadingOptionFieldSorter
implements ValueStatisticMapper<CascadingOption>, SearchRequestAppender.Factory<CascadingOption>
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.issue.customfields.statistics.CascadingOptionFieldSorter
customField, selectConverter -
Constructor Summary
ConstructorsConstructorDescriptionCascadingSelectStatisticsMapper(CustomField customField, SelectConverter selectConverter, JiraAuthenticationContext authenticationContext, CustomFieldInputHelper customFieldInputHelper) -
Method Summary
Modifier and TypeMethodDescriptiongetSearchUrlSuffix(CascadingOption option, SearchRequest searchRequest) Deprecated.Use #getSearchRequestAppender().appendInclusiveSingleValueClause()inthashCode()booleanCheck if the field is always part of an issues' data.booleanisValidValue(CascadingOption value) Check whether this value is valid for this particular search.Methods inherited from class com.atlassian.jira.issue.customfields.statistics.CascadingOptionFieldSorter
field, getComparator, loadValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.search.FieldValueLoader
field, getComparator, loadValue
-
Field Details
-
SUB_VALUE_SUFFIX
- See Also:
-
PARENT_AND_CHILD_INDEX_SEPARATOR
- See Also:
-
-
Constructor Details
-
CascadingSelectStatisticsMapper
public CascadingSelectStatisticsMapper(CustomField customField, SelectConverter selectConverter, JiraAuthenticationContext authenticationContext, CustomFieldInputHelper customFieldInputHelper)
-
-
Method Details
-
getSearchRequestAppender
- Specified by:
getSearchRequestAppenderin interfaceSearchRequestAppender.Factory<CascadingOption>
-
getValueComparator
- Specified by:
getValueComparatorin interfaceValueStatisticMapper<CascadingOption>
-
isValidValue
Description copied from interface:StatisticsMapperCheck whether this value is valid for this particular search. This is useful if you do not wish to display all the values that are indexed (eg - only show released versions)- Specified by:
isValidValuein interfaceStatisticsMapper<CascadingOption>- Parameters:
value- This is the same value that will be returned frominvalid reference
#getValueFromLuceneField(String)- Returns:
- true if this value is valid for this particular search
-
isFieldAlwaysPartOfAnIssue
public boolean isFieldAlwaysPartOfAnIssue()Description copied from interface:StatisticsMapperCheck if the field is always part of an issues' data. This should only return false in the case of a custom field where the value does not have to be set for each issue.- Specified by:
isFieldAlwaysPartOfAnIssuein interfaceStatisticsMapper<CascadingOption>- Returns:
- true if this mapper will always be part of an issues data
-
getSearchUrlSuffix
@Deprecated public SearchRequest getSearchUrlSuffix(CascadingOption option, SearchRequest searchRequest) 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<CascadingOption>- Parameters:
option- 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:
-
hashCode
public int hashCode()
-