2016-12-22 17:27:26 +01:00
|
|
|
package org.gcube.informationsystem.resourceregistry.schema;
|
|
|
|
|
2018-10-02 09:17:58 +02:00
|
|
|
import org.gcube.informationsystem.model.reference.AccessType;
|
2016-12-22 17:27:26 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException;
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*
|
2017-11-30 18:06:08 +01:00
|
|
|
* For JSON schema see http://orientdb.com/docs/last/OrientDB-REST.html#class
|
2016-12-22 17:27:26 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface SchemaManagement {
|
|
|
|
|
2017-01-10 14:58:13 +01:00
|
|
|
public String create(String json, AccessType accessType) throws SchemaException;
|
2016-12-22 17:27:26 +01:00
|
|
|
|
2017-01-11 12:06:50 +01:00
|
|
|
public String read(String type, boolean includeSubtypes) throws SchemaNotFoundException, SchemaException;
|
2016-12-30 17:31:12 +01:00
|
|
|
|
2017-11-30 18:06:08 +01:00
|
|
|
public String update(String type, AccessType accessType, String json)
|
|
|
|
throws SchemaNotFoundException, SchemaException;
|
2016-12-30 17:31:12 +01:00
|
|
|
|
2017-01-10 14:58:13 +01:00
|
|
|
public String delete(String type, AccessType accessType) throws SchemaNotFoundException;
|
2016-12-30 17:31:12 +01:00
|
|
|
|
2016-12-22 17:27:26 +01:00
|
|
|
}
|