Revert "[#23692] Changed interface 'approveItem' adding the parameter socialPost"
This reverts commit 2c641eb3b7
.
This commit is contained in:
parent
2c641eb3b7
commit
4e9e84e87f
|
@ -4,12 +4,6 @@
|
||||||
All notable changes to this project will be documented in this file.
|
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).
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [v1.2.1-SNAPSHOT] - 2023-02-06
|
|
||||||
|
|
||||||
**Enhancements**
|
|
||||||
|
|
||||||
- [#23692] Changed interface 'approveItem' adding the parameter socialPost
|
|
||||||
|
|
||||||
## [v1.2.0] - 2022-08-01
|
## [v1.2.0] - 2022-08-01
|
||||||
|
|
||||||
**Enhancements**
|
**Enhancements**
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.datacatalogue</groupId>
|
<groupId>org.gcube.datacatalogue</groupId>
|
||||||
<artifactId>catalogue-util-library</artifactId>
|
<artifactId>catalogue-util-library</artifactId>
|
||||||
<version>1.2.1-SNAPSHOT</version>
|
<version>1.2.0</version>
|
||||||
<name>Ckan utility library</name>
|
<name>Ckan utility library</name>
|
||||||
<description>
|
<description>
|
||||||
Utility library to retrieve users information, organizations information and so on from the ckan d4science datacatalogue
|
Utility library to retrieve users information, organizations information and so on from the ckan d4science datacatalogue
|
||||||
|
|
|
@ -167,18 +167,16 @@ public class GCatCaller {
|
||||||
*
|
*
|
||||||
* @param datasetName the dataset name
|
* @param datasetName the dataset name
|
||||||
* @param moderatorMessage the moderator message
|
* @param moderatorMessage the moderator message
|
||||||
* @param sendSocialPost the send social post. If 'true` sends the social post
|
|
||||||
* @return the string
|
* @return the string
|
||||||
* @throws WebApplicationException the web application exception
|
* @throws WebApplicationException the web application exception
|
||||||
* @throws MalformedURLException the malformed URL exception
|
* @throws MalformedURLException the malformed URL exception
|
||||||
*/
|
*/
|
||||||
public String approveItem(String datasetName, String moderatorMessage, Boolean sendSocialPost)
|
public String approveItem(String datasetName, String moderatorMessage)
|
||||||
throws WebApplicationException, MalformedURLException {
|
throws WebApplicationException, MalformedURLException {
|
||||||
LOG.trace("approveItem called");
|
LOG.trace("approveItem called");
|
||||||
LOG.info("Calling approve item with name: " + datasetName + ", sendSocialPost: " + sendSocialPost
|
LOG.info("Calling approve item with name: " + datasetName + ", and msg: " + moderatorMessage);
|
||||||
+ ", msg: " + moderatorMessage);
|
|
||||||
|
|
||||||
return new Item().approve(datasetName, moderatorMessage, sendSocialPost);
|
return new Item().approve(datasetName, moderatorMessage);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,8 +239,8 @@ public class GCatCaller {
|
||||||
LOG.info("called getListItemsForCMStatus called with [status: " + status + "], [limit: " + limit
|
LOG.info("called getListItemsForCMStatus called with [status: " + status + "], [limit: " + limit
|
||||||
+ "], [offset: " + offset + "], [filters: " + filters + "]");
|
+ "], [offset: " + offset + "], [filters: " + filters + "]");
|
||||||
|
|
||||||
Map<String, String> queryParams = GCatCallerUtil.genericQueryBuilderFor(status, limit, offset, false, allFields,
|
Map<String, String> queryParams = GCatCallerUtil.genericQueryBuilderFor(status, limit, offset, false, allFields, filters,
|
||||||
filters, sortForField);
|
sortForField);
|
||||||
|
|
||||||
return getListItemsForQuery(queryParams);
|
return getListItemsForQuery(queryParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,11 +82,10 @@ public interface CatalogueContentModeratorSystem {
|
||||||
*
|
*
|
||||||
* @param itemName the item name
|
* @param itemName the item name
|
||||||
* @param moderatorMessage the moderator message
|
* @param moderatorMessage the moderator message
|
||||||
* @param sendSocialPost the send social post. If 'true` sends the social post
|
|
||||||
* @throws WebApplicationException the web application exception
|
* @throws WebApplicationException the web application exception
|
||||||
* @throws MalformedURLException the malformed URL exception
|
* @throws MalformedURLException the malformed URL exception
|
||||||
*/
|
*/
|
||||||
void approveItem(String itemName, String moderatorMessage, Boolean sendSocialPost) throws WebApplicationException, MalformedURLException;
|
void approveItem(String itemName, String moderatorMessage) throws WebApplicationException, MalformedURLException;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,14 +65,13 @@ public class DataCatalogueCMSImpl implements CatalogueContentModeratorSystem {
|
||||||
*
|
*
|
||||||
* @param datasetName the dataset name
|
* @param datasetName the dataset name
|
||||||
* @param moderatorMessage the moderator message
|
* @param moderatorMessage the moderator message
|
||||||
* @param sendSocialPost the send social post. If 'true` sends the social post
|
|
||||||
* @throws WebApplicationException the web application exception
|
* @throws WebApplicationException the web application exception
|
||||||
* @throws MalformedURLException the malformed URL exception
|
* @throws MalformedURLException the malformed URL exception
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void approveItem(String datasetName, String moderatorMessage, Boolean sendSocialPost)
|
public void approveItem(String datasetName, String moderatorMessage)
|
||||||
throws WebApplicationException, MalformedURLException {
|
throws WebApplicationException, MalformedURLException {
|
||||||
gCatCaller.approveItem(datasetName, moderatorMessage, sendSocialPost);
|
gCatCaller.approveItem(datasetName, moderatorMessage);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue