Class CascadeCollectorWriter
java.lang.Object
org.alfresco.elasticsearch.batchindexing.cascade.CascadeCollectorWriter
- All Implemented Interfaces:
org.springframework.batch.infrastructure.item.ItemWriter<org.alfresco.reindexing.model.ReindexingEvent>
public class CascadeCollectorWriter
extends Object
implements org.springframework.batch.infrastructure.item.ItemWriter<org.alfresco.reindexing.model.ReindexingEvent>
Observer
ItemWriter that scans events for cascade signals and stashes enriched sources for the post-cycle sweep. Must run first in the composite writer so mgets capture the ES doc before it is overwritten.
Detects renames (non-delete event with sys:cascadeTx) and category deletes (delete event whose pre-delete ES doc has TYPE == cm:category — the event's own type is unreliable, ACS flips it to sys:deleted).
-
Constructor Summary
ConstructorsConstructorDescriptionCascadeCollectorWriter(CascadeSourceStash stash, SourceDocLookup sourceDocLookup) -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(org.springframework.batch.infrastructure.item.Chunk<? extends org.alfresco.reindexing.model.ReindexingEvent> chunk)
-
Constructor Details
-
CascadeCollectorWriter
-
-
Method Details
-
write
public void write(org.springframework.batch.infrastructure.item.Chunk<? extends org.alfresco.reindexing.model.ReindexingEvent> chunk) - Specified by:
writein interfaceorg.springframework.batch.infrastructure.item.ItemWriter<org.alfresco.reindexing.model.ReindexingEvent>
-