Class ProjectCustomFieldIndexer
java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.BaseCustomFieldIndexer
com.atlassian.jira.search.issue.index.indexers.impl.ProjectCustomFieldIndexer
- All Implemented Interfaces:
CustomFieldIndexer,FieldIndexer,FieldWithVisibilityIndexer
public class ProjectCustomFieldIndexer
extends BaseCustomFieldIndexer
implements FieldWithVisibilityIndexer
A simple custom field indexer for the ProjectPicker custom field.
- Since:
- 10.7
-
Field Summary
Fields inherited from class com.atlassian.jira.search.issue.index.indexers.impl.BaseCustomFieldIndexer
customField, fieldFields inherited from interface com.atlassian.jira.search.issue.index.indexers.FieldIndexer
LABELS_NO_VALUE_INDEX_VALUE, NO_VALUE_INDEX_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionProjectCustomFieldIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField customField, ProjectConverter projectConverter) -
Method Summary
Modifier and TypeMethodDescriptionvoidindexFieldsWithVisibility(FieldValueCollector collector, Issue issue, CustomFieldPrefetchedData prefetchedData, boolean visible) Enforce implementing indexFieldWithVisibility instead of indexFields.booleanUsed to declare how the indexer handles nulls.Methods inherited from class com.atlassian.jira.search.issue.index.indexers.impl.BaseCustomFieldIndexer
getCustomField, getFields, getId, indexField, isFieldVisibleAndInScopeMethods 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, getId, isFieldVisibleAndInScopeMethods inherited from interface com.atlassian.jira.search.issue.index.indexers.FieldWithVisibilityIndexer
indexFields
-
Constructor Details
-
ProjectCustomFieldIndexer
public ProjectCustomFieldIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField customField, ProjectConverter projectConverter)
-
-
Method Details
-
indexFieldsWithVisibility
public void indexFieldsWithVisibility(FieldValueCollector collector, Issue issue, CustomFieldPrefetchedData prefetchedData, boolean visible) Description copied from interface:FieldWithVisibilityIndexerEnforce implementing indexFieldWithVisibility instead of indexFields.- Specified by:
indexFieldsWithVisibilityin interfaceFieldIndexer- Specified by:
indexFieldsWithVisibilityin interfaceFieldWithVisibilityIndexer- Parameters:
collector- the collector for collecting indexed valuesissue- that is having a document created from.prefetchedData- if the custom field type implementedCustomFieldType.getNonNullCustomFieldProvider()this reference will hold the matching value returned fromNonNullCustomFieldProvider.getCustomFieldInfo(List <Issue>)*
-
skipsIndexingNull
public boolean skipsIndexingNull()Description copied from interface:FieldIndexerUsed to declare how the indexer handles nulls.- Specified by:
skipsIndexingNullin interfaceFieldIndexer- Returns:
- true if the indexer doesn't do anything when the field value is null
-