From a83429582a647848e5dde3c0960892a2b98ca67e Mon Sep 17 00:00:00 2001 From: veltrup Date: Fri, 23 Sep 2022 08:17:47 +0200 Subject: [PATCH] fix: either rootList or filterBy must be specified for BulkPurgeInput --- .../ies/contentrepository/core/usecase/BulkPurgeInput.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sitepark/ies/contentrepository/core/usecase/BulkPurgeInput.java b/src/main/java/com/sitepark/ies/contentrepository/core/usecase/BulkPurgeInput.java index f329e85..386eb05 100644 --- a/src/main/java/com/sitepark/ies/contentrepository/core/usecase/BulkPurgeInput.java +++ b/src/main/java/com/sitepark/ies/contentrepository/core/usecase/BulkPurgeInput.java @@ -86,6 +86,8 @@ public Builder forceLock(boolean forceLock) { } public BulkPurgeInput build() { + assert (!this.rootList.isEmpty() || this.filterBy != null) + : "Either rootList or filterBy must be specified"; return new BulkPurgeInput(this); } }