Class GroupCustomFieldIndexer
java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.BaseCustomFieldIndexer
com.atlassian.jira.search.issue.index.indexers.impl.GroupCustomFieldIndexer
- All Implemented Interfaces:
CustomFieldIndexer,FieldIndexer,FieldWithVisibilityIndexer
public class GroupCustomFieldIndexer
extends BaseCustomFieldIndexer
implements FieldWithVisibilityIndexer
A simple custom field indexer for group custom fields
This indexer is not utilized within Jira, as both single and multiple group picker custom fields rely on the
MultiGroupCustomFieldIndexer.
However, it is still in use by ScriptRunner, so it should not be removed.
- Since:
- 10.6
-
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
ConstructorsConstructorDescriptionGroupCustomFieldIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField customField, GroupConverter groupConverter) -
Method Summary
Modifier and TypeMethodDescriptionvoidindexFieldsWithVisibility(FieldValueCollector collector, Issue issue, CustomFieldPrefetchedData prefetchedData, boolean visible) Enforce implementing indexFieldWithVisibility instead of indexFields.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, isFieldVisibleAndInScope, skipsIndexingNullMethods inherited from interface com.atlassian.jira.search.issue.index.indexers.FieldWithVisibilityIndexer
indexFields
-
Constructor Details
-
GroupCustomFieldIndexer
public GroupCustomFieldIndexer(FieldVisibilityManager fieldVisibilityManager, CustomField customField, GroupConverter groupConverter)
-
-
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>)*
-