Class CustomFieldLabelsIndexer
java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.VisibilityBaseFieldIndexer
com.atlassian.jira.search.issue.index.indexers.impl.BaseLabelsIndexer
com.atlassian.jira.search.issue.index.indexers.impl.CustomFieldLabelsIndexer
- All Implemented Interfaces:
CustomFieldIndexer,FieldIndexer
@Internal
public class CustomFieldLabelsIndexer
extends BaseLabelsIndexer
implements CustomFieldIndexer
Labels indexer for custom fields.
- Since:
- 10.4
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.search.issue.index.indexers.impl.BaseLabelsIndexer
NO_VALUE_INDEX_VALUEFields inherited from class com.atlassian.jira.search.issue.index.indexers.impl.VisibilityBaseFieldIndexer
fieldVisibilityManagerFields inherited from interface com.atlassian.jira.search.issue.index.indexers.FieldIndexer
LABELS_NO_VALUE_INDEX_VALUE, NO_VALUE_INDEX_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldLabelsIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField customField) -
Method Summary
Modifier and TypeMethodDescriptionReturns the custom field associated with this indexergetId()protected voidindexVisibleFields(FieldValueCollector collector, Issue issue, CustomFieldPrefetchedData prefetchedData) booleanisFieldVisibleAndInScope(Issue issue) This method is used to determine if the indexer is relevant for the provided issue.Methods inherited from class com.atlassian.jira.search.issue.index.indexers.impl.BaseLabelsIndexer
getFields, indexLabelsMethods inherited from class com.atlassian.jira.search.issue.index.indexers.impl.VisibilityBaseFieldIndexer
indexFields, indexFieldsWithVisibilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.search.issue.index.indexers.FieldIndexer
getFields, indexFields, indexFieldsWithVisibility, skipsIndexingNull
-
Field Details
-
FOLDED_EXT
- See Also:
-
-
Constructor Details
-
CustomFieldLabelsIndexer
public CustomFieldLabelsIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField customField)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceFieldIndexer- Returns:
- the String representation of the field id that this indexer is indexing, this must be unique for each independent FieldIndexer. If the Indexer does not represent a System or Custom field in Jira this should still return a unique string that describes the indexer.
-
indexVisibleFields
protected void indexVisibleFields(FieldValueCollector collector, Issue issue, CustomFieldPrefetchedData prefetchedData) - Overrides:
indexVisibleFieldsin classBaseLabelsIndexer
-
isFieldVisibleAndInScope
Description copied from interface:FieldIndexerThis method is used to determine if the indexer is relevant for the provided issue. This method must check the fields visibility, in relation to the field configuration scheme, must check any global flags that would enable or disable a field (such as enable votes flag), and must check, if the field is a custom field, if the custom field is relevant for this issue.All these checks should take into account the
IssueContextas defined by the passed in issue.The result of this method is used to determine the correct values that should be returned when performing an empty search.
- Specified by:
isFieldVisibleAndInScopein interfaceFieldIndexer- Overrides:
isFieldVisibleAndInScopein classVisibilityBaseFieldIndexer- Parameters:
issue- that is having a document created from.- Returns:
- if true then this field is relevant for the issue, otherwise it is not.
-
getCustomField
Description copied from interface:CustomFieldIndexerReturns the custom field associated with this indexer- Specified by:
getCustomFieldin interfaceCustomFieldIndexer- Returns:
- CustomField
-