added messageItem method

This commit is contained in:
Francesco Mangiacrapa 2023-01-25 16:22:00 +01:00
parent a75c866ba4
commit 7b6c66c85a
2 changed files with 28 additions and 3 deletions

View File

@ -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;
}

View File

@ -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.