2021-12-02 11:49:34 +01:00
|
|
|
package org.gcube.gcat.api.moderation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI-CNR)
|
|
|
|
*/
|
|
|
|
public interface Moderated {
|
|
|
|
|
|
|
|
public static final String CATALOGUE_MODERATOR = "Catalogue-Moderator";
|
|
|
|
|
|
|
|
/* Content Moderation fields */
|
|
|
|
public static final String CM_ITEM_STATUS_QUERY_PARAMETER = "status";
|
|
|
|
public static final String SYSTEM_CM_PREFIX = "system:cm_";
|
2022-10-20 11:34:00 +02:00
|
|
|
/**
|
|
|
|
* Used to keep tack of item status
|
|
|
|
*/
|
2021-12-02 11:49:34 +01:00
|
|
|
public static final String SYSTEM_CM_ITEM_STATUS = SYSTEM_CM_PREFIX + "item_status";
|
2022-10-20 11:34:00 +02:00
|
|
|
/**
|
|
|
|
* Used to keep tack of item visibility
|
|
|
|
*/
|
2021-12-02 11:49:34 +01:00
|
|
|
public static final String SYSTEM_CM_ITEM_VISIBILITY = SYSTEM_CM_PREFIX + "item_visibility";
|
2022-10-20 11:34:00 +02:00
|
|
|
/**
|
|
|
|
* Used to keep tack of item author
|
|
|
|
*/
|
2022-10-20 11:30:11 +02:00
|
|
|
public static final String SYSTEM_CM_ITEM_AUTHOR = SYSTEM_CM_PREFIX + "item_author";
|
2023-03-01 13:58:24 +01:00
|
|
|
/**
|
|
|
|
* Used to keep tack of item author fullname
|
|
|
|
*/
|
|
|
|
public static final String SYSTEM_CM_ITEM_AUTHOR_FULLNAME = SYSTEM_CM_PREFIX + "item_author_fullname";
|
2021-12-02 11:49:34 +01:00
|
|
|
|
2023-03-01 13:58:24 +01:00
|
|
|
|
|
|
|
|
2021-12-02 11:49:34 +01:00
|
|
|
public String approve(String moderatorMessage);
|
|
|
|
|
|
|
|
public String reject(String moderatorMessage);
|
|
|
|
|
|
|
|
public void message(String message);
|
|
|
|
|
|
|
|
}
|