ckan-content-moderator-widget/src/main/java/org/gcube/portlets/widgets/ckancontentmoderator/client/CkanContentModeratorService...

71 lines
1.7 KiB
Java
Raw Normal View History

2021-05-07 16:55:35 +02:00
package org.gcube.portlets.widgets.ckancontentmoderator.client;
2021-06-01 18:36:18 +02:00
import java.util.List;
2021-06-14 17:39:44 +02:00
import org.gcube.datacatalogue.utillibrary.shared.ItemStatus;
2021-06-14 11:27:53 +02:00
import org.gcube.portlets.widgets.ckancontentmoderator.shared.CatalogueDataset;
2021-05-07 16:55:35 +02:00
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* The client side stub for the RPC service.
2021-06-14 17:39:44 +02:00
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Jun 14, 2021
2021-05-07 16:55:35 +02:00
*/
@RemoteServiceRelativePath("greet")
public interface CkanContentModeratorService extends RemoteService {
2021-06-14 17:39:44 +02:00
/**
* Checks if is content moderator enabled.
*
* @return true, if is content moderator enabled
*/
2021-05-07 16:55:35 +02:00
public boolean isContentModeratorEnabled();
2021-06-14 17:39:44 +02:00
/**
* Sets the status.
*
* @param itemId the item id
* @param theStatus the the status
*/
2021-05-07 16:55:35 +02:00
public void setStatus(String itemId, ItemStatus theStatus);
2021-06-14 17:39:44 +02:00
/**
* Approve item.
*
* @param itemId the item id
*/
2021-05-07 16:55:35 +02:00
public void approveItem(String itemId);
2021-06-14 17:39:44 +02:00
/**
* Reject item.
*
* @param itemId the item id
* @param permanentlyDelete the permanently delete
* @param reasonMsg the reason msg
*/
2021-05-07 16:55:35 +02:00
public void rejectItem(String itemId, boolean permanentlyDelete, String reasonMsg);
2021-06-14 17:39:44 +02:00
/**
* Permanently delete.
*
* @param itemId the item id
*/
2021-05-07 16:55:35 +02:00
public void permanentlyDelete(String itemId);
2021-06-14 17:39:44 +02:00
/**
* Gets the list items for status.
*
* @param theStatus the the status
* @param limit the limit
* @param offset the offset
* @return the list items for status
* @throws Exception
*/
public List<CatalogueDataset> getListItemsForStatus(ItemStatus theStatus, int limit, int offset) throws Exception;
2021-05-07 16:55:35 +02:00
}