63 lines
1.3 KiB
Java
63 lines
1.3 KiB
Java
package org.gcube.portlets.widgets.ckancontentmoderator.server;
|
|
|
|
import org.gcube.portlets.widgets.ckancontentmoderator.shared.ItemStatus;
|
|
|
|
// TODO: Auto-generated Javadoc
|
|
/**
|
|
* The Interface ContentModeratorSystem.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
*
|
|
* May 7, 2021
|
|
*/
|
|
public interface ContentModeratorSystem {
|
|
|
|
/**
|
|
* Checks if is content moderator enabled.
|
|
*
|
|
* @return true, if is content moderator enabled
|
|
*/
|
|
boolean isContentModeratorEnabled();
|
|
|
|
/**
|
|
* Sets the status.
|
|
*
|
|
* @param itemId the item id
|
|
* @param theStatus the the status
|
|
*/
|
|
void setStatus(String itemId, ItemStatus theStatus);
|
|
|
|
|
|
/**
|
|
* Gets the list items for status.
|
|
*
|
|
* @param theStatus the the status
|
|
* @return the list items for status
|
|
*/
|
|
//List<CkanDataset> getListItemsForStatus(ItemStatus theStatus);
|
|
|
|
/**
|
|
* Approve item.
|
|
*
|
|
* @param itemId the item id
|
|
*/
|
|
void approveItem(String itemId);
|
|
|
|
/**
|
|
* Reject item.
|
|
*
|
|
* @param itemId the item id
|
|
* @param permanentlyDelete the permanently delete
|
|
* @param reasonMsg the reason msg
|
|
*/
|
|
void rejectItem(String itemId, boolean permanentlyDelete, String reasonMsg);
|
|
|
|
/**
|
|
* Permanently delete.
|
|
*
|
|
* @param itemId the item id
|
|
*/
|
|
void permanentlyDelete(String itemId);
|
|
|
|
}
|