Class IsRelatedToManagement
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<ResourceManagement,org.gcube.informationsystem.types.reference.entities.ResourceType>
org.gcube.informationsystem.resourceregistry.instances.model.relations.IsRelatedToManagement
- All Implemented Interfaces:
ERManagement
public class IsRelatedToManagement
extends RelationManagement<ResourceManagement,org.gcube.informationsystem.types.reference.entities.ResourceType>
- 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 org.gcube.com.fasterxml.jackson.databind.JsonNodeprotected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAlreadyPresentExceptiongetSpecificAlreadyPresentException(String message) org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAvailableInAnotherContextExceptionprotected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToNotFoundExceptiongetSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e) protected ResourceManagementvoidMethods 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, reallyCreate, reallyDelete, reallyGetAll, reallyRemoveFromContext, reallyUpdate, removeFromContext, serializeJsonNodeCollectionAsString, setForceAddToContext, setHonourPropagationConstraintsInContextSharing, setSourceInstanceEnvironment, setTargetInstanceEnvironmentMethods inherited from class org.gcube.informationsystem.resourceregistry.base.relations.RelationElementManagement
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_IS_RELATED_TO_PC
public static final org.gcube.informationsystem.model.reference.properties.PropagationConstraint DEFAULT_IS_RELATED_TO_PC
-
-
Constructor Details
-
IsRelatedToManagement
public IsRelatedToManagement()
-
-
Method Details
-
getSpecificNotFoundException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToNotFoundException 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.ResourceType>>
-
getSpecificAvailableInAnotherContextException
public org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAvailableInAnotherContextException getSpecificAvailableInAnotherContextException(String message) -
getSpecificAlreadyPresentException
protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAlreadyPresentException 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.ResourceType>>
-
newTargetEntityManagement
protected ResourceManagement newTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
newTargetEntityManagementin classRelationElementManagement<ResourceManagement,ResourceManagement, org.gcube.informationsystem.types.reference.entities.ResourceType, org.gcube.informationsystem.types.reference.entities.ResourceType> - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
createCompleteJsonNode
protected org.gcube.com.fasterxml.jackson.databind.JsonNode createCompleteJsonNode() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Overrides:
createCompleteJsonNodein classRelationElementManagement<ResourceManagement,ResourceManagement, org.gcube.informationsystem.types.reference.entities.ResourceType, org.gcube.informationsystem.types.reference.entities.ResourceType> - Throws:
org.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.ResourceType>> - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-