public class SchemaManagementImpl extends Object implements SchemaManagement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
skipTypeDefinitionCreation |
static Set<String> |
typeList |
protected String |
typeName |
| Constructor and Description |
|---|
SchemaManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
create(String jsonSchema,
org.gcube.informationsystem.base.reference.AccessType accessType) |
String |
delete(String typeName,
org.gcube.informationsystem.base.reference.AccessType accessType) |
protected com.orientechnologies.orient.core.metadata.schema.OClass |
getOClass(com.orientechnologies.orient.core.metadata.schema.OSchema oSchema,
String typeName) |
protected String |
getSchema(String typeName,
boolean includeSubtypes) |
protected List<com.orientechnologies.orient.core.metadata.schema.OClass> |
getSuperclassesAndCheckCompliancy(com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument,
org.gcube.informationsystem.types.reference.Type type,
String baseType) |
protected String |
getTypeDefinitionAsString(com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
boolean |
isSkipTypeDefinitionCreation() |
String |
read(String typeName,
boolean includeSubtypes) |
protected void |
registerTypeSchema(org.gcube.informationsystem.types.reference.Type type,
org.gcube.informationsystem.base.reference.AccessType baseElementAccessType) |
void |
setSkipTypeDefinitionCreation(boolean skipTypeDefinitionCreation) |
void |
setTypeName(String typeName) |
String |
update(String typeName,
org.gcube.informationsystem.base.reference.AccessType accessType,
String jsonSchema) |
protected String typeName
protected boolean skipTypeDefinitionCreation
public boolean isSkipTypeDefinitionCreation()
public void setSkipTypeDefinitionCreation(boolean skipTypeDefinitionCreation)
protected com.orientechnologies.orient.core.metadata.schema.OClass getOClass(com.orientechnologies.orient.core.metadata.schema.OSchema oSchema,
String typeName)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic void setTypeName(String typeName)
protected 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.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument, org.gcube.informationsystem.types.reference.Type type, String baseType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionprotected void registerTypeSchema(org.gcube.informationsystem.types.reference.Type type,
org.gcube.informationsystem.base.reference.AccessType baseElementAccessType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionprotected String getSchema(String typeName, 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.base.reference.AccessType accessType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
create in interface SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic String read(String typeName, 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 typeName, org.gcube.informationsystem.base.reference.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 typeName, org.gcube.informationsystem.base.reference.AccessType accessType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException
delete in interface SchemaManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundExceptionCopyright © 2020. All Rights Reserved.