Added ability to have a Publication error with NO published object

master
nathan 2019-06-08 00:31:29 +02:00
parent a0fc9f9bc3
commit 62af62e305
1 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,13 @@ class PublicationError {
return this.publishedObjects;
}
public
PublicationError setNoPublishedObject() {
this.publishedObjects = new Object[0];
return this;
}
public
PublicationError setPublishedObject(Object publishedObject) {
this.publishedObjects = new Object[1];