From 1dd17cafea33ad286ac86bd01d8627c577b2eb1f Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 9 May 2022 10:48:36 +0200 Subject: [PATCH] updated doc info --- .../model/beans/catalogue/CatalogueEvent.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/catalogue/CatalogueEvent.java b/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/catalogue/CatalogueEvent.java index b9bf7e8..30e8398 100644 --- a/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/catalogue/CatalogueEvent.java +++ b/src/main/java/org/gcube/social_networking/socialnetworking/model/beans/catalogue/CatalogueEvent.java @@ -24,19 +24,22 @@ public class CatalogueEvent { protected String[] idsToNotify; /** - * the item identifier or name + * the item identifier or name (it is used in the subject of the email) */ @JsonProperty("itemId") + @NotNull(message="itemId cannot be missing") protected String itemId; /** - * the text that you want to write in the notification (text/plain) + * the text that you want to write in the notification (text/plain format) */ @JsonProperty("notifyText") + @NotNull(message="notifyText cannot be missing") protected String notifyText; /** * the URL to redirect when clicking on the notification */ @JsonProperty("itemURL") + @NotNull(message="itemURL cannot be missing") protected URL itemURL; /**