Class CleanupBulkResult

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

public class CleanupBulkResult extends Object
Outcome of a bulk keep / un-keep: how many items were decided, and which ones failed with which reason. A bulk request continues past individual failures, so the caller (and the UI) needs the per-item outcomes to avoid reporting a success when nothing was actually kept.
  • Constructor Details

    • CleanupBulkResult

      public CleanupBulkResult()
  • Method Details

    • addFailure

      public void addFailure(long itemId, String reason)
      Parameters:
      itemId - item that could not be decided
      reason - message code explaining the failure