Class ConsistsOfManagement
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<SET,TET>>
-
- org.gcube.informationsystem.resourceregistry.instances.base.relations.RelationElementManagement<ResourceManagement,T,org.gcube.informationsystem.types.reference.entities.ResourceType,TET>
-
- org.gcube.informationsystem.resourceregistry.instances.model.relations.RelationManagement<FacetManagement,org.gcube.informationsystem.types.reference.entities.FacetType>
-
- org.gcube.informationsystem.resourceregistry.instances.model.relations.ConsistsOfManagement
-
- All Implemented Interfaces:
ERManagement
public class ConsistsOfManagement extends RelationManagement<FacetManagement,org.gcube.informationsystem.types.reference.entities.FacetType>
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static org.gcube.informationsystem.model.reference.properties.PropagationConstraintDEFAULT_CONSISTS_OF_PC-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.model.relations.RelationManagement
defaultPropagationConstraint, forceAddToContext, honourPropagationConstraintsInContextSharing, propagationConstraint, skipped, sourceSecurityContext, targetSecurityContext
-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.base.relations.RelationElementManagement
IN, includeSource, includeTarget, OUT, sourceEntityClass, sourceEntityManagement, targetEntityClass, targetEntityManagement
-
Fields inherited from class org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement
accessType, affectedInstances, AT, cachedType, complete, DELETED, dryRun, element, elementClass, entryPoint, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingContext
-
-
Constructor Summary
Constructors Constructor Description ConsistsOfManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckResource()protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAlreadyPresentExceptiongetSpecificAlreadyPresentException(String message)org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAvailableInAnotherContextExceptiongetSpecificAvailableInAnotherContextException(String message)protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfNotFoundExceptiongetSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)protected FacetManagementnewTargetEntityManagement()protected com.orientechnologies.orient.core.record.OEdgereallyCreate()voidsanityCheck()-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.model.relations.RelationManagement
addToContext, checkPropagationConstraint, checksourceAndTargetEntityCompliancy, forcedAddToContext, fullSerialize, getElement, getEntityTypeNotValidErrroMessage, getPropagationConstraint, getSourceSecurityContext, getTargetSecurityContext, giveMeSourceEntityManagementAsIs, internalAddToContext, internalRemoveFromContext, isAvailableOnContext, isHonourPropagationConstraintsInContextSharing, newSourceEntityManagement, reallyAddToContext, reallyDelete, reallyGetAll, reallyRemoveFromContext, reallyUpdate, removeFromContext, serializeEdges, serializeJsonNodeCollectionAsString, setForceAddToContext, setHonourPropagationConstraintsInContextSharing, setSourceSecurityContext, setTargetSecurityContext
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.base.relations.RelationElementManagement
createCompleteJsonNode, getSourceEntityManagement, getTargetEntityManagement, includeSource, includeTarget, setSourceEntityManagement, setTargetEntityManagement
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.base.ElementManagement
all, checkERMatch, 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, 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
-
-
-
-
Method Detail
-
getSpecificNotFoundException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfNotFoundException getSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)
- Specified by:
getSpecificNotFoundExceptionin classElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<org.gcube.informationsystem.types.reference.entities.ResourceType,org.gcube.informationsystem.types.reference.entities.FacetType>>
-
getSpecificAvailableInAnotherContextException
public org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAvailableInAnotherContextException getSpecificAvailableInAnotherContextException(String message)
-
getSpecificAlreadyPresentException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAlreadyPresentException getSpecificAlreadyPresentException(String message)
- Specified by:
getSpecificAlreadyPresentExceptionin classElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<org.gcube.informationsystem.types.reference.entities.ResourceType,org.gcube.informationsystem.types.reference.entities.FacetType>>
-
newTargetEntityManagement
protected FacetManagement newTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Specified by:
newTargetEntityManagementin classRelationElementManagement<ResourceManagement,FacetManagement,org.gcube.informationsystem.types.reference.entities.ResourceType,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
reallyCreate
protected com.orientechnologies.orient.core.record.OEdge reallyCreate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
reallyCreatein classRelationManagement<FacetManagement,org.gcube.informationsystem.types.reference.entities.FacetType>- Throws:
org.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.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<org.gcube.informationsystem.types.reference.entities.ResourceType,org.gcube.informationsystem.types.reference.entities.FacetType>>- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-