public class SchemaManagementImpl extends Object implements SchemaManagement
| Constructor and Description |
|---|
SchemaManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
create(String jsonSchema,
org.gcube.informationsystem.model.AccessType accessType) |
String |
delete(String entityType,
org.gcube.informationsystem.model.AccessType accessType) |
protected static com.orientechnologies.orient.core.metadata.schema.OClass |
getOClass(com.orientechnologies.orient.core.metadata.schema.OSchema oSchema,
String type) |
protected String |
getSchema(String type,
boolean includeSubtypes) |
protected List<com.orientechnologies.orient.core.metadata.schema.OClass> |
getSuperclassesAndCheckCompliancy(com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx orientGraphNoTx,
org.gcube.informationsystem.types.TypeBinder.TypeDefinition typeDefinition,
String baseType) |
protected static org.gcube.informationsystem.types.TypeBinder.TypeDefinition |
getTypeDefinition(com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
protected static String |
getTypeDefinitionAsString(com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
static com.orientechnologies.orient.core.metadata.schema.OClass |
getTypeSchema(com.tinkerpop.blueprints.impls.orient.OrientBaseGraph orientBaseGraph,
String type,
org.gcube.informationsystem.model.AccessType accessType) |
static com.orientechnologies.orient.core.metadata.schema.OClass |
getTypeSchema(com.orientechnologies.orient.core.metadata.schema.OSchema oSchema,
String type,
org.gcube.informationsystem.model.AccessType accessType) |
static com.orientechnologies.orient.core.metadata.schema.OClass |
getTypeSchema(String type,
org.gcube.informationsystem.model.AccessType accessType) |
String |
read(String entityType,
boolean includeSubtypes) |
protected String |
registerTypeSchema(String jsonSchema,
org.gcube.informationsystem.model.AccessType baseType) |
String |
update(String entityType,
org.gcube.informationsystem.model.AccessType accessType,
String jsonSchema) |
protected static com.orientechnologies.orient.core.metadata.schema.OClass getOClass(com.orientechnologies.orient.core.metadata.schema.OSchema oSchema,
String type)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic static com.orientechnologies.orient.core.metadata.schema.OClass getTypeSchema(com.tinkerpop.blueprints.impls.orient.OrientBaseGraph orientBaseGraph,
String type,
org.gcube.informationsystem.model.AccessType accessType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic static com.orientechnologies.orient.core.metadata.schema.OClass getTypeSchema(com.orientechnologies.orient.core.metadata.schema.OSchema oSchema,
String type,
org.gcube.informationsystem.model.AccessType accessType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic static com.orientechnologies.orient.core.metadata.schema.OClass getTypeSchema(String type, org.gcube.informationsystem.model.AccessType accessType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected static org.gcube.informationsystem.types.TypeBinder.TypeDefinition getTypeDefinition(com.orientechnologies.orient.core.metadata.schema.OClass oClass)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected static String getTypeDefinitionAsString(com.orientechnologies.orient.core.metadata.schema.OClass oClass) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected List<com.orientechnologies.orient.core.metadata.schema.OClass> getSuperclassesAndCheckCompliancy(com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx orientGraphNoTx, org.gcube.informationsystem.types.TypeBinder.TypeDefinition typeDefinition, String baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected String registerTypeSchema(String jsonSchema, org.gcube.informationsystem.model.AccessType baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected String getSchema(String type, boolean includeSubtypes) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String create(String jsonSchema, org.gcube.informationsystem.model.AccessType accessType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
create in interface SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String read(String entityType, boolean includeSubtypes) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
read in interface SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String update(String entityType, org.gcube.informationsystem.model.AccessType accessType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
update in interface SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String delete(String entityType, org.gcube.informationsystem.model.AccessType accessType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
delete in interface SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionCopyright © 2017. All Rights Reserved.