Class FacetManagement
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement<com.orientechnologies.orient.core.record.OVertex,ET>
-
- org.gcube.informationsystem.resourceregistry.instances.base.entities.EntityElementManagement<E,ET>
-
- org.gcube.informationsystem.resourceregistry.instances.model.entities.EntityManagement<org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.types.reference.entities.FacetType>
-
- org.gcube.informationsystem.resourceregistry.instances.model.entities.FacetManagement
-
- All Implemented Interfaces:
ERManagement
public class FacetManagement extends EntityManagement<org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.types.reference.entities.FacetType>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected ConsistsOfManagementconsistsOfManagementprotected ResourceManagementresourceManagement-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.model.entities.EntityManagement
forceAddToContext, honourPropagationConstraintsInContextSharing, relationManagements, skipped, sourceSecurityContext, targetSecurityContext
-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.base.entities.EntityElementManagement
IN_PREFIX, OUT_PREFIX
-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement
accessType, affectedInstances, AT, cachedType, complete, DELETED, dryRun, element, elementClass, entryPoint, forceIncludeAllMeta, forceIncludeMeta, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingContext
-
-
Constructor Summary
Constructors Constructor Description FacetManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckResource()Stringcreate()org.gcube.com.fasterxml.jackson.databind.JsonNodecreateCompleteJsonNode()protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentExceptiongetSpecificAlreadyPresentException(String message)org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAvailableInAnotherContextExceptiongetSpecificAvailableInAnotherContextException(String message)protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundExceptiongetSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)com.orientechnologies.orient.core.record.OVertexinternalCreate()protected com.orientechnologies.orient.core.record.OVertexreallyCreate()protected voidreallyDelete()protected voidreallyRemoveFromContext()protected com.orientechnologies.orient.core.record.OVertexreallyUpdate()voidsanityCheck()-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.model.entities.EntityManagement
addRelation, addToContext, addToRelationManagements, createVertex, getElement, getRelationManagement, getSourceSecurityContext, getTargetSecurityContext, internalAddToContext, internalRemoveFromContext, isHonourPropagationConstraintsInContextSharing, propertyMatchRequestedValue, query, reallyAddToContext, reallyGetAll, reallyQuery, reallyQueryTraversal, removeFromContext, setForceAddToContext, setHonourPropagationConstraintsInContextSharing, setSourceSecurityContext, setTargetSecurityContext
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.base.entities.EntityElementManagement
addToRelationManagement, getBaseRelationManagement
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement
all, checkERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, createOrUpdate, delete, exists, getAccessType, getAffectedInstances, getAllProperties, getCachedType, getContexts, getContextsAsObjectNode, getContextsSet, getMandatoryErrorMessage, getNotNullErrorMessage, getObjectFromJsonNode, getOClass, getPropertyForJson, getPropertyMap, getTypeName, getUUID, getWorkingContext, internalCreateOrUdate, internalDelete, internalUpdate, isDryRun, isForceIncludeAllMeta, isForceIncludeMeta, isReload, isUserAllowedToGetPrivacyMeta, read, retrieveElement, retrieveElementFromAnyContext, serializeAsAffectedInstance, serializeAsJsonNode, serializeSelfAsJsonNode, setAsEntryPoint, setDryRun, setElement, setElementType, setForceIncludeAllMeta, setForceIncludeMeta, setJson, setJsonNode, setOClass, setODatabaseDocument, setOperation, setProperty, setReload, setUUID, setWorkingContext, typeSatified, update, updateProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.resourceregistry.instances.model.ERManagement
getAffectedInstances
-
-
-
-
Field Detail
-
consistsOfManagement
protected ConsistsOfManagement consistsOfManagement
-
resourceManagement
protected ResourceManagement resourceManagement
-
-
Method Detail
-
getSpecificNotFoundException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException getSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)
- Specified by:
getSpecificNotFoundExceptionin classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>
-
getSpecificAvailableInAnotherContextException
public org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAvailableInAnotherContextException getSpecificAvailableInAnotherContextException(String message)
-
getSpecificAlreadyPresentException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentException getSpecificAlreadyPresentException(String message)
- Specified by:
getSpecificAlreadyPresentExceptionin classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>
-
createCompleteJsonNode
public 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.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyCreate
protected com.orientechnologies.orient.core.record.OVertex reallyCreate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
reallyCreatein classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyUpdate
protected com.orientechnologies.orient.core.record.OVertex reallyUpdate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
reallyUpdatein classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyRemoveFromContext
protected void reallyRemoveFromContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
reallyRemoveFromContextin classEntityManagement<org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyDelete
protected void reallyDelete() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
reallyDeletein classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
checkResource
protected void checkResource() throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
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.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
create
public String create() throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Overrides:
createin classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
internalCreate
public com.orientechnologies.orient.core.record.OVertex internalCreate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
internalCreatein classElementManagement<com.orientechnologies.orient.core.record.OVertex,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-