public class ResourceManagement extends EntityManagement<org.gcube.informationsystem.model.reference.entities.Resource,org.gcube.informationsystem.types.reference.entities.ResourceType>
forceAddToContext, honourPropagationConstraintsInContextSharing, relationManagements, skipped, sourceSecurityContext, targetSecurityContextIN_PREFIX, OUT_PREFIXaccessType, affectedInstances, AT, cachedType, complete, DELETED, dryRun, element, elementClass, entryPoint, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingContext| Constructor and Description |
|---|
ResourceManagement() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.com.fasterxml.jackson.databind.JsonNode |
addConsistsOf(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource,
org.gcube.com.fasterxml.jackson.databind.JsonNode consistsOf) |
static org.gcube.com.fasterxml.jackson.databind.JsonNode |
addIsRelatedTo(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource,
org.gcube.com.fasterxml.jackson.databind.JsonNode isRelatedTo) |
String |
all(boolean polymorphic) |
protected boolean |
constraintSatisfied(TypesCache typesCache,
org.gcube.informationsystem.types.reference.properties.LinkedEntity constraint,
String consistsOfType,
String facetType) |
org.gcube.com.fasterxml.jackson.databind.JsonNode |
createCompleteJsonNode() |
protected Set<org.gcube.informationsystem.types.reference.properties.LinkedEntity> |
getResourceTypeConstraint() |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAlreadyPresentException |
getSpecificAlreadyPresentException(String message) |
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAvailableInAnotherContextException |
getSpecificAvailableInAnotherContextException(String message) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException |
getSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e) |
protected void |
reallyAddToContext() |
protected com.orientechnologies.orient.core.record.OVertex |
reallyCreate() |
protected void |
reallyDelete() |
protected com.orientechnologies.orient.core.record.OVertex |
reallyUpdate() |
void |
sanityCheck()
The default sanity check is not valid for resources which do not have properties
and instead must be validated in terms of facets.
|
void |
setSanityCheckNotRequired() |
addRelation, addToContext, addToRelationManagements, createVertex, getElement, getRelationManagement, getSourceSecurityContext, getTargetSecurityContext, internalAddToContext, internalRemoveFromContext, isHonourPropagationConstraintsInContextSharing, propertyMatchRequestedValue, query, reallyGetAll, reallyQuery, reallyQueryTraversal, reallyRemoveFromContext, removeFromContext, setForceAddToContext, setHonourPropagationConstraintsInContextSharing, setSourceSecurityContext, setTargetSecurityContextaddToRelationManagement, getBaseRelationManagementcheckERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, create, createOrUpdate, delete, exists, getAccessType, getAffectedInstances, getAllProperties, getCachedType, getClassProperty, getContexts, getContextsAsObjectNode, getContextsSet, getMandatoryErrorMessage, getNotNullErrorMessage, getObjectFromJsonNode, getOClass, getPropertyForJson, getPropertyMap, getTypeName, getUUID, getWorkingContext, internalCreate, internalCreateOrUdate, internalDelete, internalUpdate, isDryRun, isReload, read, retrieveElement, retrieveElementFromAnyContext, serializeAsAffectedInstance, serializeAsJsonNode, serializeSelfAsJsonNode, setAsEntryPoint, setDryRun, setElement, setElementType, setJson, setJsonNode, setOClass, setODatabaseDocument, setOperation, setProperty, setReload, setUUID, setWorkingContext, typeSatified, update, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAffectedInstancespublic void setSanityCheckNotRequired()
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException getSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)
getSpecificNotFoundException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>public org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAvailableInAnotherContextException getSpecificAvailableInAnotherContextException(String message)
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAlreadyPresentException getSpecificAlreadyPresentException(String message)
getSpecificAlreadyPresentException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>public org.gcube.com.fasterxml.jackson.databind.JsonNode createCompleteJsonNode()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createCompleteJsonNode in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static org.gcube.com.fasterxml.jackson.databind.JsonNode addConsistsOf(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource,
org.gcube.com.fasterxml.jackson.databind.JsonNode consistsOf)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static org.gcube.com.fasterxml.jackson.databind.JsonNode addIsRelatedTo(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource,
org.gcube.com.fasterxml.jackson.databind.JsonNode isRelatedTo)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OVertex reallyCreate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyCreate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OVertex reallyUpdate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyUpdate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void reallyDelete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyDelete in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void reallyAddToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyAddToContext in class EntityManagement<org.gcube.informationsystem.model.reference.entities.Resource,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String all(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
all in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected Set<org.gcube.informationsystem.types.reference.properties.LinkedEntity> getResourceTypeConstraint() throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean constraintSatisfied(TypesCache typesCache, org.gcube.informationsystem.types.reference.properties.LinkedEntity constraint, String consistsOfType, String facetType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void sanityCheck()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
sanityCheck in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.ResourceType>org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.