public class SchemaManagementImpl extends Object implements org.gcube.informationsystem.resourceregistry.api.SchemaManagement
| Constructor and Description |
|---|
SchemaManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
deleteConsistOfSchema(String consistOfType) |
String |
deleteEmbeddedTypeSchema(String embeddedType) |
String |
deleteEntitySchema(String entityType) |
String |
deleteFacetSchema(String facetType) |
String |
deleteRelatedToSchema(String relatedToType) |
String |
deleteRelationSchema(String relationType) |
String |
deleteResourceSchema(String resourceType) |
String |
getConsistOfSchema(String consistOfType) |
String |
getEmbeddedTypeSchema(String embeddedType) |
protected static com.orientechnologies.orient.core.metadata.schema.OClass |
getEntityOClass(com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx orientGraphNoTx,
String entityType) |
String |
getEntitySchema(String entityType) |
String |
getFacetSchema(String facetType) |
String |
getRelatedToSchema(String relatedToType) |
String |
getRelationSchema(String relationType) |
String |
getResourceSchema(String resourceType) |
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 com.orientechnologies.orient.core.metadata.schema.OClass |
getTypeSchema(String type,
String baseType) |
protected String |
getTypeSchemaAsString(String type,
String baseType) |
String |
registerConsistOfSchema(String jsonSchema) |
String |
registerDocumentSchema(String jsonSchema) |
protected String |
registerEdgeTypeSchema(String jsonSchema,
String baseType) |
String |
registerEmbeddedTypeSchema(String jsonSchema) |
String |
registerEntitySchema(String jsonSchema) |
String |
registerFacetSchema(String jsonSchema) |
String |
registerRelatedToSchema(String jsonSchema) |
String |
registerRelationSchema(String jsonSchema) |
String |
registerResourceSchema(String jsonSchema) |
protected String |
registerVertexTypeSchema(String jsonSchema,
Class<?> baseType) |
protected static String |
serializeOClass(com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
String |
updateConsistOfSchema(String consistOfType,
String jsonSchema) |
String |
updateEmbeddedTypeSchema(String embeddedType,
String jsonSchema) |
String |
updateEntitySchema(String entityType,
String jsonSchema) |
String |
updateFacetSchema(String facetType,
String jsonSchema) |
String |
updateRelatedToSchema(String relatedToType,
String jsonSchema) |
String |
updateRelationSchema(String relationType,
String jsonSchema) |
String |
updateResourceSchema(String resourceType,
String jsonSchema) |
protected static com.orientechnologies.orient.core.metadata.schema.OClass getEntityOClass(com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx orientGraphNoTx,
String entityType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected com.orientechnologies.orient.core.metadata.schema.OClass getTypeSchema(String type, String baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionprotected static String serializeOClass(com.orientechnologies.orient.core.metadata.schema.OClass oClass)
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) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected String getTypeSchemaAsString(String type, String baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionprotected String registerVertexTypeSchema(String jsonSchema, Class<?> baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected String registerEdgeTypeSchema(String jsonSchema, String baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String registerDocumentSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String registerEntitySchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerEntitySchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getEntitySchema(String entityType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getEntitySchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateEntitySchema(String entityType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateEntitySchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteEntitySchema(String entityType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
deleteEntitySchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String registerFacetSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerFacetSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getFacetSchema(String facetType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getFacetSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateFacetSchema(String facetType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateFacetSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteFacetSchema(String facetType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
deleteFacetSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String registerResourceSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerResourceSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getResourceSchema(String resourceType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getResourceSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateResourceSchema(String resourceType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateResourceSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteResourceSchema(String resourceType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
deleteResourceSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String registerEmbeddedTypeSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerEmbeddedTypeSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getEmbeddedTypeSchema(String embeddedType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getEmbeddedTypeSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateEmbeddedTypeSchema(String embeddedType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateEmbeddedTypeSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteEmbeddedTypeSchema(String embeddedType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
deleteEmbeddedTypeSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String registerRelationSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerRelationSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getRelationSchema(String relationType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getRelationSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateRelationSchema(String relationType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateRelationSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteRelationSchema(String relationType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
deleteRelationSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String registerConsistOfSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerConsistOfSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getConsistOfSchema(String consistOfType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getConsistOfSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateConsistOfSchema(String consistOfType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateConsistOfSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteConsistOfSchema(String consistOfType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
deleteConsistOfSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String registerRelatedToSchema(String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
registerRelatedToSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String getRelatedToSchema(String relatedToType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
getRelatedToSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionpublic String updateRelatedToSchema(String relatedToType, String jsonSchema) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
updateRelatedToSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String deleteRelatedToSchema(String relatedToType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
deleteRelatedToSchema in interface org.gcube.informationsystem.resourceregistry.api.SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionCopyright © 2016. All Rights Reserved.