Class ContentModifiersBulkExtractor
- java.lang.Object
-
- com.atlassian.confluence.impl.search.v2.extractor.ContentModifiersBulkExtractor
-
- All Implemented Interfaces:
BulkExtractor<ConfluenceEntityObject>
public final class ContentModifiersBulkExtractor extends Object implements BulkExtractor<ConfluenceEntityObject>
A BulkExtractor which extracts theSearchFieldNames.LAST_MODIFIERS
fromContentEntityObject
s.- Since:
- 7.14
-
-
Constructor Summary
Constructors Constructor Description ContentModifiersBulkExtractor(ContentEntityObjectDao<ContentEntityObject> contentEntityObjectDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Class<?> entityType)
void
extractAll(Collection<ConfluenceEntityObject> entities, Class<? extends ConfluenceEntityObject> entityType, BiConsumer<ConfluenceEntityObject,FieldDescriptor> sink)
Extracts all indexable data from all of the given entities
-
-
-
Constructor Detail
-
ContentModifiersBulkExtractor
public ContentModifiersBulkExtractor(ContentEntityObjectDao<ContentEntityObject> contentEntityObjectDao)
-
-
Method Detail
-
canHandle
public boolean canHandle(Class<?> entityType)
- Specified by:
canHandle
in interfaceBulkExtractor<ConfluenceEntityObject>
- Returns:
- true of the extractor can handle entities of the given type, else false
-
extractAll
public void extractAll(Collection<ConfluenceEntityObject> entities, Class<? extends ConfluenceEntityObject> entityType, BiConsumer<ConfluenceEntityObject,FieldDescriptor> sink)
Description copied from interface:BulkExtractor
Extracts all indexable data from all of the given entities- Specified by:
extractAll
in interfaceBulkExtractor<ConfluenceEntityObject>
- Parameters:
entities
- the entities to extract the fields fromsink
- the consumer into which allFieldDescriptor
s should be pushed.
-
-