Class PropertyTypeDefinitionManagement
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>
-
- org.gcube.informationsystem.resourceregistry.types.properties.PropertyTypeDefinitionManagement
-
public class PropertyTypeDefinitionManagement extends ElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringname-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement
accessType, affectedInstances, AT, cachedType, complete, DELETED, dryRun, element, elementClass, entryPoint, ignoreKeys, ignoreStartWithKeys, jsonNode, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingContext
-
-
Constructor Summary
Constructors Constructor Description PropertyTypeDefinitionManagement()PropertyTypeDefinitionManagement(SecurityContext securityContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.gcube.com.fasterxml.jackson.databind.JsonNodecreateCompleteJsonNode()protected com.orientechnologies.orient.core.record.OElementcreateElement()Map<UUID,org.gcube.com.fasterxml.jackson.databind.JsonNode>getAffectedInstances()com.orientechnologies.orient.core.record.OElementgetElement()StringgetName()protected org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentExceptiongetSpecificAlreadyPresentException(String message)protected org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptiongetSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)protected SecurityContextgetWorkingContext()protected com.orientechnologies.orient.core.record.OElementreallyCreate()protected voidreallyDelete()StringreallyGetAll(boolean polymorphic)protected com.orientechnologies.orient.core.record.OElementreallyUpdate()com.orientechnologies.orient.core.record.OElementretrieveElement()voidsanityCheck()voidsetName(String name)-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement
all, checkERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, create, createOrUpdate, delete, exists, getAccessType, getAllProperties, getCachedType, getClassProperty, getContexts, getContextsAsObjectNode, getContextsSet, getMandatoryErrorMessage, getNotNullErrorMessage, getObjectFromJsonNode, getOClass, getPropertyForJson, getPropertyMap, getTypeName, getUUID, internalCreate, internalCreateOrUdate, internalDelete, internalUpdate, isDryRun, isReload, read, retrieveElementFromAnyContext, serializeAsAffectedInstance, serializeAsJsonNode, serializeSelfAsJsonNode, setAsEntryPoint, setDryRun, setElement, setElementType, setJson, setJsonNode, setOClass, setODatabaseDocument, setOperation, setProperty, setReload, setUUID, setWorkingContext, typeSatified, update, updateProperties
-
-
-
-
Field Detail
-
name
protected String name
-
-
Constructor Detail
-
PropertyTypeDefinitionManagement
public PropertyTypeDefinitionManagement()
-
PropertyTypeDefinitionManagement
public PropertyTypeDefinitionManagement(SecurityContext securityContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-
Method Detail
-
getAffectedInstances
public Map<UUID,org.gcube.com.fasterxml.jackson.databind.JsonNode> getAffectedInstances()
- Overrides:
getAffectedInstancesin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>
-
getWorkingContext
protected SecurityContext getWorkingContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Overrides:
getWorkingContextin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
setName
public void setName(String name)
-
getName
public String getName()
-
createCompleteJsonNode
protected org.gcube.com.fasterxml.jackson.databind.JsonNode createCompleteJsonNode() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
createCompleteJsonNodein classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyCreate
protected com.orientechnologies.orient.core.record.OElement reallyCreate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
reallyCreatein classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyUpdate
protected com.orientechnologies.orient.core.record.OElement reallyUpdate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
reallyUpdatein classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyDelete
protected void reallyDelete() throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
reallyDeletein classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getElement
public com.orientechnologies.orient.core.record.OElement getElement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
getElementin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
retrieveElement
public com.orientechnologies.orient.core.record.OElement retrieveElement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
retrieveElementin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
createElement
protected com.orientechnologies.orient.core.record.OElement createElement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyGetAll
public String reallyGetAll(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Specified by:
reallyGetAllin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getSpecificNotFoundException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException getSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)
- Specified by:
getSpecificNotFoundExceptionin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>
-
getSpecificAlreadyPresentException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException getSpecificAlreadyPresentException(String message)
- Specified by:
getSpecificAlreadyPresentExceptionin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>
-
sanityCheck
public void sanityCheck() throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
sanityCheckin classElementManagement<com.orientechnologies.orient.core.record.OElement,org.gcube.informationsystem.types.reference.properties.PropertyType<?>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-