Class ProgressIndexer
java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.VisibilityBaseFieldIndexer
com.atlassian.jira.search.issue.index.indexers.impl.ProgressIndexer
- All Implemented Interfaces:
FieldIndexer
- Since:
- 10.6
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionProgressIndexer(FieldVisibilityManager fieldVisibilityManager, ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionDeclares the fields to be added to the index schemagetId()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.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
skipsIndexingNull
-
Constructor Details
-
ProgressIndexer
public ProgressIndexer(FieldVisibilityManager fieldVisibilityManager, ApplicationProperties applicationProperties)
-
-
Method Details
-
getId
- 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.
-
getFields
Description copied from interface:FieldIndexerDeclares the fields to be added to the index schema -
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.
-
indexVisibleFields
protected void indexVisibleFields(FieldValueCollector collector, Issue issue, CustomFieldPrefetchedData prefetchedData) - Specified by:
indexVisibleFieldsin classVisibilityBaseFieldIndexer
-