Class ConsistsOfManagement
java.lang.Object
org.gcube.informationsystem.resourceregistry.base.ElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<SET,TET>>
org.gcube.informationsystem.resourceregistry.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
FieldsModifier and TypeFieldDescriptionstatic final org.gcube.informationsystem.model.reference.properties.PropagationConstraintFields inherited from class org.gcube.informationsystem.resourceregistry.instances.model.relations.RelationManagement
defaultPropagationConstraint, forceAddToContext, honourPropagationConstraintsInContextSharing, propagationConstraint, skipped, sourceInstanceEnvironment, targetInstanceEnvironmentFields inherited from class org.gcube.informationsystem.resourceregistry.base.relations.RelationElementManagement
IN, includeSource, includeTarget, OUT, sourceEntityClass, sourceEntityManagement, targetEntityClass, targetEntityManagementFields inherited from class org.gcube.informationsystem.resourceregistry.base.ElementManagement
accessType, affectedInstances, AT, cachedType, complete, DELETED, DOLLAR, dryRun, element, elementClass, entryPoint, forceIncludeAllMeta, forceIncludeMeta, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingEnvironment -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAlreadyPresentExceptiongetSpecificAlreadyPresentException(String message) org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfAvailableInAnotherContextExceptionprotected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.consistsof.ConsistsOfNotFoundExceptiongetSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e) protected FacetManagementprotected com.orientechnologies.orient.core.record.OEdgevoidMethods inherited from class org.gcube.informationsystem.resourceregistry.instances.model.relations.RelationManagement
addToContext, checkPropagationConstraint, checksourceAndTargetEntityCompliancy, forcedAddToContext, fullSerialize, getElement, getEntityTypeNotValidErrroMessage, getPropagationConstraint, getSourceInstanceEnvironment, getTargetInstanceEnvironment, getWorkingEnvironment, giveMeSourceEntityManagementAsIs, internalAddToContext, internalRemoveFromContext, isAvailableOnContext, isHonourPropagationConstraintsInContextSharing, newSourceEntityManagement, reallyAddToContext, reallyDelete, reallyGetAll, reallyRemoveFromContext, reallyUpdate, removeFromContext, serializeJsonNodeCollectionAsString, setForceAddToContext, setHonourPropagationConstraintsInContextSharing, setSourceInstanceEnvironment, setTargetInstanceEnvironmentMethods inherited from class org.gcube.informationsystem.resourceregistry.base.relations.RelationElementManagement
createCompleteJsonNode, getSourceEntityManagement, getTargetEntityManagement, includeSource, includeTarget, setSourceEntityManagement, setTargetEntityManagementMethods inherited from class org.gcube.informationsystem.resourceregistry.base.ElementManagement
all, checkERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, create, createOrUpdate, delete, exists, getAccessType, getAffectedInstances, getAllProperties, getCachedType, getContexts, getContextsAsObjectNode, getContextsSet, getMandatoryErrorMessage, getNotNullErrorMessage, getOClass, getPropertyForJson, getPropertyMap, getTypeName, getUUID, internalCreate, 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, setWorkingEnvironment, typeSatified, update, updatePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.resourceregistry.instances.model.ERManagement
getAffectedInstances
-
Field Details
-
DEFAULT_CONSISTS_OF_PC
public static final org.gcube.informationsystem.model.reference.properties.PropagationConstraint DEFAULT_CONSISTS_OF_PC
-
-
Constructor Details
-
ConsistsOfManagement
public ConsistsOfManagement()
-
-
Method Details
-
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
-