2022-03-04 14:23:20 +01:00
|
|
|
package org.gcube.application.geoportal.common.rest;
|
|
|
|
|
2023-04-18 10:33:22 +02:00
|
|
|
import java.rmi.RemoteException;
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
2022-03-04 14:23:20 +01:00
|
|
|
import org.bson.Document;
|
|
|
|
import org.gcube.application.geoportal.common.model.rest.QueryRequest;
|
|
|
|
import org.gcube.application.geoportal.common.model.useCaseDescriptor.UseCaseDescriptor;
|
|
|
|
|
|
|
|
|
2022-03-07 13:59:24 +01:00
|
|
|
public interface UseCaseDescriptorsI {
|
2022-03-04 14:23:20 +01:00
|
|
|
|
|
|
|
public UseCaseDescriptor create(Document toCreate)throws RemoteException;
|
|
|
|
|
2022-03-07 13:59:24 +01:00
|
|
|
public Iterator<UseCaseDescriptor> query(QueryRequest request) throws Exception;
|
2022-03-04 14:23:20 +01:00
|
|
|
|
|
|
|
public void deleteById(String id,boolean force)throws RemoteException;
|
|
|
|
|
|
|
|
public UseCaseDescriptor update(String ID, Document toSet)throws RemoteException;
|
|
|
|
|
2022-03-07 13:59:24 +01:00
|
|
|
public UseCaseDescriptor getById(String id) throws Exception;
|
2022-03-04 14:23:20 +01:00
|
|
|
}
|