2019-01-29 17:43:59 +01:00
|
|
|
package org.gcube.gcat.api.interfaces;
|
|
|
|
|
|
|
|
import javax.xml.ws.WebServiceException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
2021-12-02 11:49:34 +01:00
|
|
|
public interface Item<C,D> extends CRUD<C,D> {
|
2019-01-29 17:43:59 +01:00
|
|
|
|
2021-02-03 16:26:53 +01:00
|
|
|
public static final String ITEMS = "items";
|
|
|
|
|
2019-01-29 17:43:59 +01:00
|
|
|
public String list(int limit, int offset) throws WebServiceException;
|
|
|
|
|
2020-12-02 17:58:57 +01:00
|
|
|
public String patch(String name, String json) throws WebServiceException;
|
|
|
|
|
2019-01-29 17:43:59 +01:00
|
|
|
public D delete(String name, boolean purge) throws WebServiceException;
|
|
|
|
|
|
|
|
public D purge(String name) throws WebServiceException;
|
2021-12-03 17:40:28 +01:00
|
|
|
|
|
|
|
public D bulkDelete(boolean purge) throws WebServiceException;
|
|
|
|
|
|
|
|
public D bulkPurge() throws WebServiceException;
|
2019-01-29 17:43:59 +01:00
|
|
|
}
|