Uses of Class
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.client
Methods in org.gcube.informationsystem.resourceregistry.api.client that throw ResourceRegistryException Modifier and Type Method Description TResourceRegistryCall. execute()Executes the client operation.<T> ResourceRegistryResponse<T>ResourceRegistryResponses. execute(ResourceRegistryCall<T> call)Executes one ordinary client call through its existing transport path.<T> ResourceRegistryResponse<T>ResourceRegistryResponses. execute(ResourceRegistryRequestOptions options, ResourceRegistryCall<T> call)Executes one ordinary client call with immutable invocation-specific options. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.contexts
Methods in org.gcube.informationsystem.resourceregistry.api.contexts that throw ResourceRegistryException Modifier and Type Method Description org.gcube.informationsystem.contexts.reference.entities.ContextContextCache. getContextByPath(String contextPath)Gets the context by path.org.gcube.informationsystem.contexts.reference.entities.ContextContextCache. getContextByUUID(String uuid)Gets the context by UUID.org.gcube.informationsystem.contexts.reference.entities.ContextContextCache. getContextByUUID(UUID uuid)Gets the context by UUID.static org.gcube.informationsystem.contexts.reference.entities.ContextContextUtility. getContextFromReadResponse(String contextsJson)Reads the response of a Context read (GET /contexts/{uuid}andGET /contexts/@current): a flat JSON array with the requested Context first, followed by its descendants level by level.StringContextCache. getContextPathByUUID(String uuid)Gets the context path by UUID.StringContextCache. getContextPathByUUID(UUID uuid)Gets the context path by UUID.Map<String,UUID>ContextCache. getContextPathToUUIDAssociation()Gets the context path to UUID association.List<org.gcube.informationsystem.contexts.reference.entities.Context>ContextCache. getContexts()Gets the contexts.org.gcube.informationsystem.dag.Dag<org.gcube.informationsystem.contexts.reference.entities.Context>ContextCache. getContextsTree()Gets the contexts tree.UUIDContextCache. getUUIDByPath(String contextPath)Gets the UUID of the Context a path names: its current path first, then one of its previous paths, as the Resource Registry resolves a token that still names a moved or renamed Context.Map<UUID,String>ContextCache. getUUIDToContextPathAssociation()Gets the UUID to context path association.voidContextCache. refreshContextsIfNeeded()Refresh contexts if needed.voidContextCache. renew()Renew.List<org.gcube.informationsystem.contexts.reference.entities.Context>ContextCacheRenewal. renew()Triggers the renewal of the context cache.protected booleanContextCache. renewOnMiss()Renews the cache when a lookup misses, unless the last renewal is more recent thanContextCache.MISS_RENEWAL_INTERVAL. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions Modifier and Type Class Description classAlreadyPresentExceptionBase exception for "an element with this identity already exists" error conditions across every collection (Context, Type, Instance, Query Template) — specialized per collection (e.g.classConcurrentWriteExceptionThe Class ConcurrentWriteException.classCreationExceptionBase exception for a generic, non-conflict failure to create a new Resource, Facet, relation, Context, Type schema, or Query Template — specialized per collection (e.g.classInvalidUUIDExceptionThe Class InvalidUUIDException.classNotFoundExceptionBase exception for "the requested element does not exist" error conditions across every collection (Context, Type, Instance, Query Template) — specialized per collection (e.g.classUUIDAlreadyInUseExceptionThe Class UUIDAlreadyInUseException.Methods in org.gcube.informationsystem.resourceregistry.api.exceptions with type parameters of type ResourceRegistryException Modifier and Type Method Description static <RRE extends ResourceRegistryException>
StringExceptionMapper. marshal(RRE object)Returns the String serialization of a given resource.static <T extends OutputStream,RRE extends ResourceRegistryException>
TExceptionMapper. marshal(RRE object, T stream)Writes the serialization of a given resource to a givenOutputStream.static <T extends Writer,RRE extends ResourceRegistryException>
TExceptionMapper. marshal(RRE object, T writer)Writes the serialization of a given resource to a givenWriter.static <RRE extends ResourceRegistryException>
RREExceptionMapper. unmarshal(Class<RRE> clz, InputStream stream)Creates a resource of given class from its serialization in a givenInputStream.static <RRE extends ResourceRegistryException>
RREExceptionMapper. unmarshal(Class<RRE> clz, Reader reader)Creates a resource of given class from its serialization in a givenReader.static <RRE extends ResourceRegistryException>
RREExceptionMapper. unmarshal(Class<RRE> clz, String string)Creates a resource of given class from its serialization in a given String.Methods in org.gcube.informationsystem.resourceregistry.api.exceptions that return ResourceRegistryException Modifier and Type Method Description ResourceRegistryExceptionResourceRegistryException. withResponseMetadata(ResponseMetadata metadata)Attaches immutable HTTP metadata captured from the failed client request. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.contexts
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.contexts Modifier and Type Class Description classContextAlreadyPresentExceptionThrown when a Context with the given UUID already exists with a different representation than the one being submitted.classContextCreationExceptionThrown when a generic, non-conflict failure occurs while creating a Context (e.g.classContextExceptionBase exception for Context-domain error conditions that do not fall underContextLifecycleExceptionorContextVisibilityException(e.g.classContextLifecycleExceptionThrown when an operation violates Context lifecycle state machine transitions or tree hierarchy rules (e.g.classContextMoveExceptionThrown when moving (reparenting) a Context fails for a reason other than the lifecycle state-machine checks covered byContextLifecycleException(e.g.classContextNotFoundExceptionThrown when the Context identified by the given UUID (or the@currentliteral) does not exist, or is not visible to the caller under the requested lifecycle scope (live/deleted/all).classContextVisibilityExceptionThrown when a Context exists in the system but falls outside the caller's authorized scope or visibility boundaries.classInvalidContextNameExceptionThrown when a caller-supplied Contextnamedoes not match the required format. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances Modifier and Type Class Description classAvailableInAnotherContextExceptionBase exception thrown when the requested instance exists, but only in a Context other than the one scoping the request — a visibility boundary violation distinct fromNotFoundException(element genuinely absent). -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities Modifier and Type Class Description classEntityAlreadyPresentExceptionBase exception for "a Resource or Facet with this identity already exists" error conditions.classEntityAvailableInAnotherContextExceptionBase exception for "the requested Resource or Facet exists, but only in a Context other than the one scoping the request" error conditions.classEntityCreationExceptionBase exception for a generic, non-conflict failure to create a Resource or Facet.classEntityNotFoundExceptionBase exception for "the requested Resource or Facet does not exist" error conditions. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.facet
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.facet Modifier and Type Class Description classFacetAlreadyPresentExceptionThrown when a Facet with the given UUID already exists (e.g.classFacetAvailableInAnotherContextExceptionThrown when the requested Facet exists, but only in a Context other than the one scoping the request.classFacetCreationExceptionThrown when a generic, non-conflict failure occurs while creating a Facet.classFacetNotFoundExceptionThrown when the Facet identified by the given UUID does not exist, or is not visible to the caller. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.resource
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.entities.resource Modifier and Type Class Description classResourceAlreadyPresentExceptionThrown when a Resource with the given UUID already exists (e.g.classResourceAvailableInAnotherContextExceptionThrown when the requested Resource exists, but only in a Context other than the one scoping the request.classResourceCreationExceptionThrown when a generic, non-conflict failure occurs while creating a Resource.classResourceNotFoundExceptionThrown when the Resource identified by the given UUID does not exist, or is not visible to the caller. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations Modifier and Type Class Description classRelationAlreadyPresentExceptionBase exception for "a relation (ConsistsOf/IsRelatedTo) between this source and target already exists" error conditions.classRelationAvailableInAnotherContextExceptionBase exception for "the requested relation exists, but only in a Context other than the one scoping the request" error conditions.classRelationCreationExceptionBase exception for a generic, non-conflict failure to create a relation (ConsistsOf/IsRelatedTo).classRelationNotFoundExceptionBase exception for "the requested relation does not exist" error conditions. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.consistsof
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.consistsof Modifier and Type Class Description classConsistsOfAlreadyPresentExceptionThrown when a ConsistsOf relation between the given Resource and Facet already exists (e.g.classConsistsOfAvailableInAnotherContextExceptionThrown when the requested ConsistsOf relation exists, but only in a Context other than the one scoping the request.classConsistsOfCreationExceptionThrown when a generic, non-conflict failure occurs while creating a ConsistsOf relation.classConsistsOfNotFoundExceptionThrown when the requested ConsistsOf relation does not exist, or is not visible to the caller. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.isparentof
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.isparentof Modifier and Type Class Description classIsParentOfAlreadyPresentExceptionWould signal that anIsParentOfedge already exists between two Contexts.classIsParentOfCreationExceptionWould signal a generic failure while creating anIsParentOfedge.classIsParentOfExceptionBase exception for the internalIsParentOfContext-hierarchy edge.classIsParentOfNotFoundExceptionWould signal that a requestedIsParentOfedge does not exist. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.isrelatedto
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.instances.relations.isrelatedto Modifier and Type Class Description classIsRelatedToAlreadyPresentExceptionThrown when an IsRelatedTo relation between the given source and target Resources already exists (subject to the polymorphic uniqueness invariant).classIsRelatedToAvailableInAnotherContextExceptionThrown when the requested IsRelatedTo relation exists, but only in a Context other than the one scoping the request.classIsRelatedToCreationExceptionThrown when a generic, non-conflict failure occurs while creating an IsRelatedTo relation.classIsRelatedToNotFoundExceptionThrown when the requested IsRelatedTo relation does not exist, or is not visible to the caller. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.queries
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.queries Modifier and Type Class Description classInvalidQueryExceptionThrown when a JSON Query, raw backend query, or prepared query request is malformed, references an unknown type, or attempts a disallowed (non-read-only) operation. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates Modifier and Type Class Description classQueryTemplateAlreadyPresentExceptionThrown when a Query Template with the given name already exists with a different definition.classQueryTemplateCreationExceptionThrown when a generic, non-conflict failure occurs while creating a Query Template.classQueryTemplateExceptionBase exception for Query Template error conditions that do not fall underQueryTemplateAlreadyPresentExceptionorQueryTemplateNotFoundException(e.g.classQueryTemplateNotFoundExceptionThrown when the Query Template identified by the given name does not exist. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.types
Subclasses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.exceptions.types Modifier and Type Class Description classSchemaAlreadyPresentExceptionThrown when a Type with the given name already exists with a different schema (i.e.classSchemaCreationExceptionThrown when a generic, non-conflict failure occurs while creating a Type schema.classSchemaExceptionBase exception for Type schema error conditions that do not fall underSchemaAlreadyPresentException,SchemaNotFoundException, orSchemaViolationException(e.g.classSchemaNotFoundExceptionThrown when the Type identified by the given name does not exist.classSchemaViolationExceptionThrown when a Type schema registration or update violates a structural schema rule: a referenced parent/facet/relation type does not exist, a cardinality constraint contradicts an inherited one,abstractandfinalare both set, a multiple-inheritance precedence order is inconsistent (C3 failure), or a Type is still referenced by another Type definition on delete. -
Uses of ResourceRegistryException in org.gcube.informationsystem.resourceregistry.api.rest.httputils
Methods in org.gcube.informationsystem.resourceregistry.api.rest.httputils that throw ResourceRegistryException Modifier and Type Method Description protected static <C> NotFoundExceptionHTTPUtility. getElementNotFoundException(Class<C> clz)Builds the most specificNotFoundExceptionsubclass for the given model class, used when the server returned404 Not Foundfor a request whose response body could not be otherwise mapped (e.g.
-