public class TypeManagement extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
json |
protected boolean |
skipTypeDefinitionCreation |
protected boolean |
skipVersionCheckOnUpdate |
protected org.gcube.informationsystem.types.reference.Type |
type |
static Set<String> |
typeList |
protected String |
typeName |
| Constructor and Description |
|---|
TypeManagement() |
| Modifier and Type | Method and Description |
|---|---|
String |
create() |
protected boolean |
delete(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 List<org.gcube.informationsystem.types.reference.Type> |
getSchema(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) |
static ElementManagement<?,?> |
getTypeManagement(com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
boolean |
isSkipTypeDefinitionCreation() |
boolean |
isSkipVersionCheckOnUpdate() |
List<org.gcube.informationsystem.types.reference.Type> |
read(boolean includeSubtypes) |
protected void |
registerTypeSchema() |
void |
setJson(String json) |
void |
setSkipTypeDefinitionCreation(boolean skipTypeDefinitionCreation) |
void |
setSkipVersionCheckOnUpdate(boolean skipVersionCheckOnUpdate) |
void |
setTypeAndTypeName(Class<? extends org.gcube.informationsystem.base.reference.Element> clz) |
void |
setTypeName(String typeName) |
String |
update() |
protected void |
updateTypeSchema(org.gcube.informationsystem.types.reference.Type actualTypeDefinition,
org.gcube.informationsystem.types.reference.Type newTypeDefinition,
org.gcube.informationsystem.base.reference.AccessType baseElementAccessType) |
protected String typeName
protected String json
protected org.gcube.informationsystem.types.reference.Type type
protected boolean skipVersionCheckOnUpdate
protected boolean skipTypeDefinitionCreation
public boolean isSkipVersionCheckOnUpdate()
public void setSkipVersionCheckOnUpdate(boolean skipVersionCheckOnUpdate)
public boolean isSkipTypeDefinitionCreation()
public void setSkipTypeDefinitionCreation(boolean skipTypeDefinitionCreation)
public void setJson(String json) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected 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.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionpublic void setTypeName(String typeName)
public void setTypeAndTypeName(Class<? extends org.gcube.informationsystem.base.reference.Element> clz) throws Exception
Exceptionpublic static ElementManagement<?,?> getTypeManagement(com.orientechnologies.orient.core.metadata.schema.OClass oClass)
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) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionprotected void registerTypeSchema()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionprotected void updateTypeSchema(org.gcube.informationsystem.types.reference.Type actualTypeDefinition,
org.gcube.informationsystem.types.reference.Type newTypeDefinition,
org.gcube.informationsystem.base.reference.AccessType baseElementAccessType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionprotected List<org.gcube.informationsystem.types.reference.Type> getSchema(boolean includeSubtypes) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionpublic String create() throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionpublic List<org.gcube.informationsystem.types.reference.Type> read(boolean includeSubtypes) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionpublic String update() throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionprotected boolean delete(org.gcube.informationsystem.base.reference.AccessType accessType)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException,
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionCopyright © 2022. All Rights Reserved.