public class ContextManagement extends EntityElementManagement<org.gcube.informationsystem.context.reference.entities.Context>
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
relationManagementsaccessType, AT, DELETED, element, elementClass, elementType, ignoreKeys, ignoreStartWithKeys, jsonNode, oClass, oDatabaseDocument, reload, UNDERSCORE, uuid, workingContext| Constructor and Description |
|---|
ContextManagement() |
ContextManagement(com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkContext(ContextManagement parentContext) |
String |
getName() |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException |
getSpecificElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException |
getSpecificERAlreadyPresentException(String message) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAvailableInAnotherContextException |
getSpecificERAvailableInAnotherContextException(String message) |
protected SecurityContext |
getWorkingContext() |
protected boolean |
reallyAddToContext(SecurityContext targetSecurityContext) |
protected com.orientechnologies.orient.core.record.OVertex |
reallyCreate() |
protected boolean |
reallyDelete() |
String |
reallyGetAll(boolean polymorphic) |
protected boolean |
reallyRemoveFromContext(SecurityContext targetSecurityContext) |
protected com.orientechnologies.orient.core.record.OVertex |
reallyUpdate() |
String |
serialize() |
com.fasterxml.jackson.databind.JsonNode |
serializeAsJson() |
addRelation, addToRelationManagement, createVertex, getBaseRelationManagementaddToContext, all, checkERMatch, checkJsonNode, checkUUIDMatch, create, createOrUpdate, delete, exists, getAccessType, getClassProperty, getElement, getElementFromOptional, getElementType, getObjectFromElement, getOClass, getOClass, getPropertyForJson, getPropertyMap, getSuperclasses, getUUID, internalAddToContext, internalCreate, internalCreateOrUdate, internalDelete, internalRemoveFromContext, internalUpdate, isReload, read, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serializeSelfOnly, setElement, setElementType, setJson, setJsonNode, setOClass, setReload, setUUID, setWorkingContext, toJsonNode, update, updatePropertiesprotected String name
public ContextManagement()
public ContextManagement(com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String getName()
protected SecurityContext getWorkingContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getWorkingContext in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException getSpecificElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)
getSpecificElementNotFoundException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAvailableInAnotherContextException getSpecificERAvailableInAnotherContextException(String message)
getSpecificERAvailableInAnotherContextException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>protected org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException getSpecificERAlreadyPresentException(String message)
getSpecificERAlreadyPresentException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>protected void checkContext(ContextManagement parentContext) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String serialize() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serialize in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.fasterxml.jackson.databind.JsonNode serializeAsJson()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serializeAsJson in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OVertex reallyCreate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyCreate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OVertex reallyUpdate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyUpdate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean reallyDelete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyDelete in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String reallyGetAll(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyGetAll in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean reallyAddToContext(SecurityContext targetSecurityContext) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyAddToContext in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean reallyRemoveFromContext(SecurityContext targetSecurityContext) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyRemoveFromContext in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2020. All Rights Reserved.