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;
|
|
|
|
|
|
|
|
import org.gcube.portlets.widgets.ckancontentmoderator.shared.CkanDataset;
|
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.AsyncCallback;
|
|
|
|
|
|
|
|
public interface CkanContentModeratorServiceAsync {
|
|
|
|
|
|
|
|
void isContentModeratorEnabled(AsyncCallback<Boolean> callback);
|
|
|
|
|
|
|
|
void approveItem(String itemId, AsyncCallback<Void> callback);
|
|
|
|
|
2021-06-01 18:36:18 +02:00
|
|
|
void getListItemsForStatus(ItemStatus theStatus, AsyncCallback<List<CkanDataset>> callback);
|
2021-05-07 16:55:35 +02:00
|
|
|
|
|
|
|
void permanentlyDelete(String itemId, AsyncCallback<Void> callback);
|
|
|
|
|
|
|
|
void rejectItem(String itemId, boolean permanentlyDelete, String reasonMsg, AsyncCallback<Void> callback);
|
|
|
|
|
|
|
|
void setStatus(String itemId, ItemStatus theStatus, AsyncCallback<Void> callback);
|
|
|
|
|
|
|
|
}
|