2021-05-07 16:55:35 +02:00
|
|
|
package org.gcube.portlets.widgets.ckancontentmoderator.client;
|
|
|
|
|
2021-05-26 17:58:12 +02:00
|
|
|
import org.gcube.portlets.widgets.ckancontentmoderator.shared.ItemStatus;
|
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.
|
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("greet")
|
|
|
|
public interface CkanContentModeratorService extends RemoteService {
|
|
|
|
|
|
|
|
public boolean isContentModeratorEnabled();
|
|
|
|
|
|
|
|
public void setStatus(String itemId, ItemStatus theStatus);
|
|
|
|
|
2021-05-26 17:58:12 +02:00
|
|
|
//public List<CkanDataset> getListItemsForStatus(ItemStatus theStatus);
|
2021-05-07 16:55:35 +02:00
|
|
|
|
|
|
|
public void approveItem(String itemId);
|
|
|
|
|
|
|
|
public void rejectItem(String itemId, boolean permanentlyDelete, String reasonMsg);
|
|
|
|
|
|
|
|
public void permanentlyDelete(String itemId);
|
|
|
|
|
|
|
|
}
|