[#23692] Changed interface 'approveItem' adding the parameter socialPost
This commit is contained in:
parent
7b6c66c85a
commit
7fd29cfc72
|
@ -4,11 +4,12 @@
|
|||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.3.0-SNAPSHOT] - 2023-01-25
|
||||
## [v1.3.0-SNAPSHOT] - 2023-02-06
|
||||
|
||||
**Enhancements**
|
||||
|
||||
- [#23903] Catalogue Moderation: allow to send a message to the moderators
|
||||
- [#23692] Changed interface 'approveItem' adding the parameter socialPost
|
||||
|
||||
## [v1.2.0] - 2022-08-01
|
||||
|
||||
|
|
|
@ -184,16 +184,19 @@ public class GCatCaller {
|
|||
*
|
||||
* @param datasetName the dataset name
|
||||
* @param moderatorMessage the moderator message
|
||||
* @param sendSocialPost the send social post. If 'true` sends the social post
|
||||
* @return the string
|
||||
* @throws WebApplicationException the web application exception
|
||||
* @throws MalformedURLException the malformed URL exception
|
||||
*/
|
||||
public String approveItem(String datasetName, String moderatorMessage)
|
||||
public String approveItem(String datasetName, String moderatorMessage, Boolean sendSocialPost)
|
||||
throws WebApplicationException, MalformedURLException {
|
||||
LOG.trace("approveItem called");
|
||||
LOG.info("Calling approve item with name: " + datasetName + ", and msg: " + moderatorMessage);
|
||||
LOG.info("Calling approve item with name: " + datasetName + ", sendSocialPost: " + sendSocialPost
|
||||
+ ", msg: " + moderatorMessage);
|
||||
|
||||
return new Item().approve(datasetName, moderatorMessage, sendSocialPost);
|
||||
|
||||
return new Item().approve(datasetName, moderatorMessage);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -82,10 +82,11 @@ public interface CatalogueContentModeratorSystem {
|
|||
*
|
||||
* @param itemName the item name
|
||||
* @param moderatorMessage the moderator message
|
||||
* @param sendSocialPost the send social post. If 'true` sends the social post
|
||||
* @throws WebApplicationException the web application exception
|
||||
* @throws MalformedURLException the malformed URL exception
|
||||
*/
|
||||
void approveItem(String itemName, String moderatorMessage) throws WebApplicationException, MalformedURLException;
|
||||
void approveItem(String itemName, String moderatorMessage, Boolean sendSocialPost) throws WebApplicationException, MalformedURLException;
|
||||
|
||||
/**
|
||||
* Message item.
|
||||
|
|
|
@ -66,13 +66,14 @@ public class DataCatalogueCMSImpl implements CatalogueContentModeratorSystem {
|
|||
*
|
||||
* @param datasetName the dataset name
|
||||
* @param moderatorMessage the moderator message
|
||||
* @param sendSocialPost the send social post. If 'true` sends the social post
|
||||
* @throws WebApplicationException the web application exception
|
||||
* @throws MalformedURLException the malformed URL exception
|
||||
*/
|
||||
@Override
|
||||
public void approveItem(String datasetName, String moderatorMessage)
|
||||
public void approveItem(String datasetName, String moderatorMessage, Boolean sendSocialPost)
|
||||
throws WebApplicationException, MalformedURLException {
|
||||
gCatCaller.approveItem(datasetName, moderatorMessage);
|
||||
gCatCaller.approveItem(datasetName, moderatorMessage, sendSocialPost);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue