resource-registry/src/main/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagement.java

25 lines
1015 B
Java
Raw Normal View History

2020-01-27 17:04:45 +01:00
package org.gcube.informationsystem.resourceregistry.types;
import org.gcube.informationsystem.base.reference.AccessType;
2019-11-08 12:29:32 +01:00
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException;
/**
* @author Luca Frosini (ISTI - CNR)
*
* For JSON schema see http://orientdb.com/docs/last/OrientDB-REST.html#class
*
*/
public interface SchemaManagement {
2019-11-08 12:29:32 +01:00
public String create(String json, AccessType accessType) throws SchemaAlreadyPresentException, SchemaException;
public String read(String type, boolean includeSubtypes) throws SchemaNotFoundException, SchemaException;
2020-12-14 12:34:21 +01:00
public String update(String json, AccessType accessType) throws SchemaNotFoundException, SchemaException;
public String delete(String type, AccessType accessType) throws SchemaNotFoundException;
}