71 lines
1.7 KiB
Java
71 lines
1.7 KiB
Java
package org.gcube.portlets.widgets.ckancontentmoderator.client;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.datacatalogue.utillibrary.shared.ItemStatus;
|
|
import org.gcube.portlets.widgets.ckancontentmoderator.shared.CatalogueDataset;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
/**
|
|
* The client side stub for the RPC service.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
*
|
|
* Jun 14, 2021
|
|
*/
|
|
@RemoteServiceRelativePath("greet")
|
|
public interface CkanContentModeratorService extends RemoteService {
|
|
|
|
/**
|
|
* Checks if is content moderator enabled.
|
|
*
|
|
* @return true, if is content moderator enabled
|
|
*/
|
|
public boolean isContentModeratorEnabled();
|
|
|
|
/**
|
|
* Sets the status.
|
|
*
|
|
* @param itemId the item id
|
|
* @param theStatus the the status
|
|
*/
|
|
public void setStatus(String itemId, ItemStatus theStatus);
|
|
|
|
/**
|
|
* Approve item.
|
|
*
|
|
* @param itemId the item id
|
|
*/
|
|
public void approveItem(String itemId);
|
|
|
|
/**
|
|
* Reject item.
|
|
*
|
|
* @param itemId the item id
|
|
* @param permanentlyDelete the permanently delete
|
|
* @param reasonMsg the reason msg
|
|
*/
|
|
public void rejectItem(String itemId, boolean permanentlyDelete, String reasonMsg);
|
|
|
|
/**
|
|
* Permanently delete.
|
|
*
|
|
* @param itemId the item id
|
|
*/
|
|
public void permanentlyDelete(String itemId);
|
|
|
|
/**
|
|
* 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;
|
|
|
|
}
|