2020-01-27 17:04:45 +01:00
|
|
|
package org.gcube.informationsystem.resourceregistry.types;
|
2016-12-22 17:27:26 +01:00
|
|
|
|
2019-10-25 17:45:59 +02:00
|
|
|
import org.gcube.informationsystem.base.reference.AccessType;
|
2019-11-08 12:29:32 +01:00
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentException;
|
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 {
|
|
|
|
|
2019-11-08 12:29:32 +01:00
|
|
|
public String create(String json, AccessType accessType) throws SchemaAlreadyPresentException, 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
|
|
|
|
2020-12-14 12:34:21 +01:00
|
|
|
public String update(String json, AccessType accessType) 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
|
|
|
}
|