Class IsRelatedToManagement
- 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<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
Fields Modifier and Type Field Description static org.gcube.informationsystem.model.reference.properties.PropagationConstraintDEFAULT_IS_RELATED_TO_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, forceIncludeAllMeta, forceIncludeMeta, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingContext
-
-
Constructor Summary
Constructors Constructor Description IsRelatedToManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.gcube.com.fasterxml.jackson.databind.JsonNodecreateCompleteJsonNode()protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAlreadyPresentExceptiongetSpecificAlreadyPresentException(String message)org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToAvailableInAnotherContextExceptiongetSpecificAvailableInAnotherContextException(String message)protected org.gcube.informationsystem.resourceregistry.api.exceptions.relations.isrelatedto.IsRelatedToNotFoundExceptiongetSpecificNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)protected ResourceManagementnewTargetEntityManagement()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, reallyCreate, reallyDelete, reallyGetAll, reallyRemoveFromContext, reallyUpdate, removeFromContext, serializeEdges, serializeJsonNodeCollectionAsString, setForceAddToContext, setHonourPropagationConstraintsInContextSharing, setSourceSecurityContext, setTargetSecurityContext
-
Methods inherited from class org.gcube.informationsystem.resourceregistry.instances.base.relations.RelationElementManagement
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, getContexts, getContextsAsObjectNode, getContextsSet, getMandatoryErrorMessage, getNotNullErrorMessage, getObjectFromJsonNode, getOClass, getPropertyForJson, getPropertyMap, getTypeName, getUUID, getWorkingContext, 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, 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.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
-
-