49 lines
1.6 KiB
Java
49 lines
1.6 KiB
Java
|
package org.gcube.informationsystem.resourceregistry.client;
|
||
|
|
||
|
import java.util.UUID;
|
||
|
|
||
|
import org.gcube.informationsystem.model.entity.Context;
|
||
|
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)
|
||
|
throws ContextAlreadyPresentException, ResourceRegistryException;
|
||
|
|
||
|
public String update(String context)
|
||
|
throws ContextAlreadyPresentException, ResourceRegistryException;
|
||
|
|
||
|
|
||
|
public boolean delete(Context context)
|
||
|
throws ContextNotFoundException, ResourceRegistryException;
|
||
|
|
||
|
public boolean delete(UUID uuid)
|
||
|
throws ContextNotFoundException, ResourceRegistryException;
|
||
|
|
||
|
public boolean delete(String uuid)
|
||
|
throws ContextNotFoundException, ResourceRegistryException;
|
||
|
|
||
|
}
|