diff --git a/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/CatalogueContentModeratorSystem.java b/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/CatalogueContentModeratorSystem.java index 0af1cd8..8e19562 100644 --- a/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/CatalogueContentModeratorSystem.java +++ b/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/CatalogueContentModeratorSystem.java @@ -87,6 +87,14 @@ public interface CatalogueContentModeratorSystem { */ void approveItem(String itemName, String moderatorMessage) throws WebApplicationException, MalformedURLException; - + /** + * Message item. + * + * @param datasetName the dataset name + * @param moderatorMessage the moderator message + * @throws WebServiceException the web service exception + * @throws MalformedURLException the malformed URL exception + */ + void messageItem(String datasetName, String moderatorMessage) throws WebServiceException, MalformedURLException; } diff --git a/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/DataCatalogueCMSImpl.java b/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/DataCatalogueCMSImpl.java index 40aba2a..6a11bad 100644 --- a/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/DataCatalogueCMSImpl.java +++ b/src/main/java/org/gcube/datacatalogue/utillibrary/server/cms/DataCatalogueCMSImpl.java @@ -50,10 +50,11 @@ public class DataCatalogueCMSImpl implements CatalogueContentModeratorSystem { } /** - * Checks if is Moderation is enabled in the working scope + * Checks if is Moderation is enabled in the working scope. * + * @param reloadConfig the reload config * @return true, if is content moderator enabled - * @throws MalformedURLException + * @throws MalformedURLException the malformed URL exception */ @Override public boolean isModerationEnabled(boolean reloadConfig) throws MalformedURLException { @@ -74,6 +75,22 @@ public class DataCatalogueCMSImpl implements CatalogueContentModeratorSystem { gCatCaller.approveItem(datasetName, moderatorMessage); } + + + /** + * Message item. + * + * @param datasetName the dataset name + * @param moderatorMessage the moderator message + * @throws WebServiceException the web service exception + * @throws MalformedURLException the malformed URL exception + */ + @Override + public void messageItem(String datasetName, String moderatorMessage) + throws WebServiceException, MalformedURLException { + gCatCaller.messageItem(datasetName, moderatorMessage); + + } /** * Reject item.