Class CleanupCampaignSummary

java.lang.Object
org.exoplatform.addons.documents.cleanup.model.CleanupCampaignSummary

public class CleanupCampaignSummary extends Object
Aggregates of a cleanup campaign snapshotted at completion into its summaryJson. Written by CleanupExecutionService when the campaign completes; served by CleanupCampaignService once the retention job purged the item rows (the live aggregates would then all be 0). The JSON keys are the field names: writer and reader share this single class so they can never drift.

It also carries the DRY-RUN's own verdict (scanIncomplete, failedScanUnitCount), written by CleanupScanService at the SIMULATED transition — a typed field of an existing column rather than a new one, and the campaign row rather than a live re-count of the unit rows: whether the report an administrator is about to publish covers the whole tree is a fact DECIDED ONCE, by the coordinator that owns the completion rule, and it must still read the same later on. CleanupExecutionService therefore CARRIES BOTH FORWARD when it snapshots the purge aggregates over the same column.

  • Constructor Details

    • CleanupCampaignSummary

      public CleanupCampaignSummary()