2017-11-23 11:44:55 +01:00
|
|
|
package org.gcube.informationsystem.resourceregistry.context;
|
2017-11-23 11:42:05 +01:00
|
|
|
|
2017-12-06 15:23:47 +01:00
|
|
|
import java.util.List;
|
2017-11-23 11:42:05 +01:00
|
|
|
import java.util.UUID;
|
|
|
|
|
2019-02-06 10:01:35 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.entities.Context;
|
2017-11-23 11:42:05 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
|
|
|
public interface ResourceRegistryContextClient {
|
|
|
|
|
|
|
|
public Context create(Context context)
|
|
|
|
throws ContextAlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public String create(String context)
|
|
|
|
throws ContextAlreadyPresentException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
|
|
public Context read(Context context)
|
|
|
|
throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public Context read(UUID uuid)
|
|
|
|
throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public String read(String uuid)
|
|
|
|
throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
|
|
|
|
public Context update(Context context)
|
2018-06-04 15:42:59 +02:00
|
|
|
throws ResourceRegistryException;
|
2017-11-23 11:42:05 +01:00
|
|
|
|
|
|
|
public String update(String context)
|
2018-06-04 15:42:59 +02:00
|
|
|
throws ResourceRegistryException;
|
2017-11-23 11:42:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
public boolean delete(Context context)
|
|
|
|
throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public boolean delete(UUID uuid)
|
|
|
|
throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
|
|
|
public boolean delete(String uuid)
|
|
|
|
throws ContextNotFoundException, ResourceRegistryException;
|
|
|
|
|
2017-12-06 15:23:47 +01:00
|
|
|
public List<Context> all() throws ResourceRegistryException;
|
|
|
|
|
2017-11-23 11:42:05 +01:00
|
|
|
}
|