Package org.alfresco.elasticsearch.batchindexing.cascade
package org.alfresco.elasticsearch.batchindexing.cascade
-
ClassDescriptionObserver
ItemWriterthat scans events for cascade signals and stashes enriched sources for the post-cycle sweep.Snapshot of cascade sources drained fromCascadeSourceStashat the end of a reindex cycle.Thread-safe, cycle-scoped bag of cascade sources observed during a batch-indexing cycle.Post-cycle orchestrator that drains theCascadeSourceStashonce areindexByDatecycle finishes successfully and dispatches each observed cascade source to the appropriate cascade service.Cascades a category delete by pruning the deleted UUID from every referring document'sCategoryDeleteCascadeService.CATEGORIES_FIELD(cm%3Acategories),CATEGORY_ANCESTORandPARENTarrays, and strippingPATH/UNPREFIXED_PATHentries that contain any of the deleted category's paths, via a single_update_by_query.Descriptor for a delete event that corresponds to acm:categorynode.Cascades a rename to descendants by swapping the old path segment for the new one in each descendant'sPATH/UNPREFIXED_PATHarrays.Descriptor for a rename cascade: the old and new terminal path segments to swap in descendants'PATH/UNPREFIXED_PATHarrays.Batched mget helper that snapshots cascade-relevant fields (PATH,UNPREFIXED_PATH,TYPE) from source docs before the downstream writers overwrite them.Snapshot of a source doc's cascade-relevant fields.