package org.gcube.informationsystem.resourceregistry.types; import org.gcube.informationsystem.base.reference.AccessType; 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 { public String create(String json, AccessType accessType) throws SchemaAlreadyPresentException, SchemaException; public String read(String type, boolean includeSubtypes) throws SchemaNotFoundException, SchemaException; public String update(String json, AccessType accessType) throws SchemaNotFoundException, SchemaException; public String delete(String type, AccessType accessType) throws SchemaNotFoundException; }