Interface ResourceRegistryClient

  • All Superinterfaces:
    org.gcube.informationsystem.resourceregistry.api.request.RequestInfo
    All Known Implementing Classes:
    ResourceRegistryClientImpl

    public interface ResourceRegistryClient
    extends org.gcube.informationsystem.resourceregistry.api.request.RequestInfo
    Author:
    Luca Frosini (ISTI - CNR)
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void addHeader​(String name, String value)  
      boolean existContext​(String uuid)  
      boolean existContext​(UUID uuid)  
      <ERElem extends org.gcube.informationsystem.model.reference.ERElement>
      boolean
      existInstance​(Class<ERElem> clazz, UUID uuid)  
      boolean existInstance​(String type, UUID uuid)  
      boolean existQueryTemplate​(String queryTemplateName)  
      boolean existQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)  
      <ME extends org.gcube.informationsystem.model.reference.ModelElement>
      boolean
      existType​(Class<ME> clazz)  
      boolean existType​(String typeName)  
      List<org.gcube.informationsystem.contexts.reference.entities.Context> getAllContext()  
      List<org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate> getAllQueryTemplates()  
      org.gcube.informationsystem.contexts.reference.entities.Context getContext​(String uuid)  
      org.gcube.informationsystem.contexts.reference.entities.Context getContext​(UUID uuid)  
      org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache getContextCache()  
      org.gcube.informationsystem.contexts.reference.entities.Context getCurrentContext()  
      <R extends org.gcube.informationsystem.model.reference.entities.Resource,​C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,​?>,​F extends org.gcube.informationsystem.model.reference.entities.Facet>
      List<R>
      getFilteredResources​(Class<R> resourceClass, Class<C> consistsOfClass, Class<F> facetClass, boolean polymorphic, Map<String,​String> facetConstraint)  
      String getFilteredResources​(String resourceType, String consistsOfType, String facetType, boolean polymorphic, Map<String,​String> facetConstraint)  
      <ERElem extends org.gcube.informationsystem.model.reference.ERElement>
      ERElem
      getInstance​(Class<ERElem> clazz, UUID uuid)  
      String getInstance​(String type, UUID uuid)  
      <ERElem extends org.gcube.informationsystem.model.reference.ERElement>
      Map<UUID,​String>
      getInstanceContexts​(Class<ERElem> clazz, UUID uuid)  
      Map<UUID,​String> getInstanceContexts​(String type, UUID uuid)  
      <ERElem extends org.gcube.informationsystem.model.reference.ERElement>
      List<ERElem>
      getInstances​(Class<ERElem> clazz, Boolean polymorphic)  
      String getInstances​(String type, Boolean polymorphic)  
      org.gcube.informationsystem.model.knowledge.ModelKnowledge<org.gcube.informationsystem.types.reference.Type,​org.gcube.informationsystem.types.knowledge.TypeInformation> getModelKnowledge()  
      <R extends org.gcube.informationsystem.model.reference.entities.Resource,​I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,​?>,​RR extends org.gcube.informationsystem.model.reference.entities.Resource>
      List<R>
      getRelatedResources​(Class<R> resourceClass, Class<I> isRelatedToClass, Class<RR> referenceResourceClass, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic)  
      String getRelatedResources​(String resourceType, String isRelatedToType, String referenceResourceType, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic)  
      <R extends org.gcube.informationsystem.model.reference.entities.Resource,​I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,​?>,​RR extends org.gcube.informationsystem.model.reference.entities.Resource>
      List<R>
      getRelatedResourcesFromReferenceResource​(Class<R> resourceClass, Class<I> isRelatedToClass, Class<RR> referenceResourceClass, UUID referenceResourceUUID, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic)  
      <R extends org.gcube.informationsystem.model.reference.entities.Resource,​I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,​?>,​RR extends org.gcube.informationsystem.model.reference.entities.Resource>
      List<R>
      getRelatedResourcesFromReferenceResource​(Class<R> resourceClass, Class<I> isRelatedToClass, RR referenceResource, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic)  
      String getRelatedResourcesFromReferenceResource​(String resourceType, String isRelatedToType, String referenceResourceType, UUID referenceResourceUUID, org.gcube.informationsystem.base.reference.Direction direction, boolean polymorphic)  
      <R extends org.gcube.informationsystem.model.reference.entities.Resource,​C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,​?>,​F extends org.gcube.informationsystem.model.reference.entities.Facet>
      List<R>
      getResourcesFromReferenceFacet​(Class<R> resourceClass, Class<C> consistsOfClass, F referenceFacet, boolean polymorphic)  
      <R extends org.gcube.informationsystem.model.reference.entities.Resource,​C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,​?>,​F extends org.gcube.informationsystem.model.reference.entities.Facet>
      List<R>
      getResourcesFromReferenceFacet​(Class<R> resourceClass, Class<C> consistsOfClass, Class<F> facetClass, UUID referenceFacetUUID, boolean polymorphic)  
      String getResourcesFromReferenceFacet​(String resourceType, String consistsOfType, String facetType, UUID referenceFacetUUID, boolean polymorphic)  
      <ME extends org.gcube.informationsystem.model.reference.ModelElement>
      List<org.gcube.informationsystem.types.reference.Type>
      getType​(Class<ME> clazz, int level)  
      <ME extends org.gcube.informationsystem.model.reference.ModelElement>
      List<org.gcube.informationsystem.types.reference.Type>
      getType​(Class<ME> clazz, Boolean polymorphic)  
      String getType​(String typeName, int level)  
      String getType​(String typeName, Boolean polymorphic)  
      <ME extends org.gcube.informationsystem.model.reference.ModelElement>
      org.gcube.informationsystem.tree.Node<org.gcube.informationsystem.types.reference.Type>
      getTypeTreeNode​(Class<ME> clazz)  
      org.gcube.informationsystem.tree.Node<org.gcube.informationsystem.types.reference.Type> getTypeTreeNode​(String typeName)  
      boolean isIncludeContextsInHeader()
      Deprecated.
      String jsonQuery​(String query)  
      <E extends org.gcube.informationsystem.model.reference.entities.Entity>
      List<E>
      jsonQuery​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)  
      String rawQuery​(String query)  
      String rawQuery​(String query, boolean raw)  
      org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate readQueryTemplate​(String queryTemplateName)  
      org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate readQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)  
      String readQueryTemplateAsString​(String queryTemplateName)  
      void renewModelKnowledge()  
      String runQueryTemplate​(String name)  
      String runQueryTemplate​(String name, String params)  
      String runQueryTemplate​(String name, org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)  
      String runQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)  
      String runQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate, org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)  
      String runQueryTemplateGetString​(String name)  
      void setIncludeContextsInHeader​(boolean includeContexts)
      Deprecated.
      • Methods inherited from interface org.gcube.informationsystem.resourceregistry.api.request.RequestInfo

        allMeta, getLimit, getOffset, includeContexts, includeMeta, isHierarchicalMode, setAllMeta, setHierarchicalMode, setIncludeContexts, setIncludeMeta, setLimit, setOffset
    • Method Detail

      • isIncludeContextsInHeader

        @Deprecated
        boolean isIncludeContextsInHeader()
        Deprecated.
        Use RequestInfo.includeContexts() instead
        Returns:
      • setIncludeContextsInHeader

        @Deprecated
        void setIncludeContextsInHeader​(boolean includeContexts)
        Deprecated.
        Use #includeContexts(boolean) instead
        Parameters:
        includeContextsInHeader -
      • getAllContext

        List<org.gcube.informationsystem.contexts.reference.entities.Context> getAllContext()
                                                                                     throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getContextCache

        org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache getContextCache()
      • existContext

        boolean existContext​(String uuid)
                      throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                             org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • existContext

        boolean existContext​(UUID uuid)
                      throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                             org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getContext

        org.gcube.informationsystem.contexts.reference.entities.Context getContext​(String uuid)
                                                                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                                                                                   org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getContext

        org.gcube.informationsystem.contexts.reference.entities.Context getContext​(UUID uuid)
                                                                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                                                                                   org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getCurrentContext

        org.gcube.informationsystem.contexts.reference.entities.Context getCurrentContext()
                                                                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                                                                                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getModelKnowledge

        org.gcube.informationsystem.model.knowledge.ModelKnowledge<org.gcube.informationsystem.types.reference.Type,​org.gcube.informationsystem.types.knowledge.TypeInformation> getModelKnowledge()
      • renewModelKnowledge

        void renewModelKnowledge()
      • existType

        boolean existType​(String typeName)
                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • existType

        <ME extends org.gcube.informationsystem.model.reference.ModelElement> boolean existType​(Class<ME> clazz)
                                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getType

        String getType​(String typeName,
                       Boolean polymorphic)
                throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                       org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getType

        String getType​(String typeName,
                       int level)
                throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                       org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getType

        <ME extends org.gcube.informationsystem.model.reference.ModelElement> List<org.gcube.informationsystem.types.reference.Type> getType​(Class<ME> clazz,
                                                                                                                                             Boolean polymorphic)
                                                                                                                                      throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                                                                                                                                             org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getType

        <ME extends org.gcube.informationsystem.model.reference.ModelElement> List<org.gcube.informationsystem.types.reference.Type> getType​(Class<ME> clazz,
                                                                                                                                             int level)
                                                                                                                                      throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                                                                                                                                             org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getTypeTreeNode

        <ME extends org.gcube.informationsystem.model.reference.ModelElement> org.gcube.informationsystem.tree.Node<org.gcube.informationsystem.types.reference.Type> getTypeTreeNode​(Class<ME> clazz)
                                                                                                                                                                               throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                                                                                                                                                                                      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getTypeTreeNode

        org.gcube.informationsystem.tree.Node<org.gcube.informationsystem.types.reference.Type> getTypeTreeNode​(String typeName)
                                                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException,
                                                                                                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstances

        <ERElem extends org.gcube.informationsystem.model.reference.ERElement> List<ERElem> getInstances​(Class<ERElem> clazz,
                                                                                                         Boolean polymorphic)
                                                                                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstances

        String getInstances​(String type,
                            Boolean polymorphic)
                     throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • existInstance

        <ERElem extends org.gcube.informationsystem.model.reference.ERElement> boolean existInstance​(Class<ERElem> clazz,
                                                                                                     UUID uuid)
                                                                                              throws org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
                                                                                                     org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • existInstance

        boolean existInstance​(String type,
                              UUID uuid)
                       throws org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
                              org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstance

        <ERElem extends org.gcube.informationsystem.model.reference.ERElement> ERElem getInstance​(Class<ERElem> clazz,
                                                                                                  UUID uuid)
                                                                                           throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                                                                                                  org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
                                                                                                  org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstance

        String getInstance​(String type,
                           UUID uuid)
                    throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                           org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
                           org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstanceContexts

        <ERElem extends org.gcube.informationsystem.model.reference.ERElement> Map<UUID,​String> getInstanceContexts​(Class<ERElem> clazz,
                                                                                                                          UUID uuid)
                                                                                                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                                                                                                                          org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
                                                                                                                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstanceContexts

        Map<UUID,​String> getInstanceContexts​(String type,
                                                   UUID uuid)
                                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                                                   org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
                                                   org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getAllQueryTemplates

        List<org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate> getAllQueryTemplates()
                                                                                                           throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • existQueryTemplate

        boolean existQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)
                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • existQueryTemplate

        boolean existQueryTemplate​(String queryTemplateName)
                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • readQueryTemplate

        org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate readQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)
                                                                                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                                                                                         org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • readQueryTemplate

        org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate readQueryTemplate​(String queryTemplateName)
                                                                                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                                                                                         org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • readQueryTemplateAsString

        String readQueryTemplateAsString​(String queryTemplateName)
                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                         org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • runQueryTemplateGetString

        String runQueryTemplateGetString​(String name)
                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                         org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • runQueryTemplate

        String runQueryTemplate​(String name)
                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • runQueryTemplate

        String runQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate)
                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • runQueryTemplate

        String runQueryTemplate​(String name,
                                String params)
                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • runQueryTemplate

        String runQueryTemplate​(String name,
                                org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • runQueryTemplate

        String runQueryTemplate​(org.gcube.informationsystem.queries.templates.reference.entities.QueryTemplate queryTemplate,
                                org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException,
                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.templates.QueryTemplateNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getResourcesFromReferenceFacet

        <R extends org.gcube.informationsystem.model.reference.entities.Resource,​C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,​?>,​F extends org.gcube.informationsystem.model.reference.entities.Facet> List<R> getResourcesFromReferenceFacet​(Class<R> resourceClass,
                                                                                                                                                                                                                                                                                                Class<C> consistsOfClass,
                                                                                                                                                                                                                                                                                                F referenceFacet,
                                                                                                                                                                                                                                                                                                boolean polymorphic)
                                                                                                                                                                                                                                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getResourcesFromReferenceFacet

        <R extends org.gcube.informationsystem.model.reference.entities.Resource,​C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,​?>,​F extends org.gcube.informationsystem.model.reference.entities.Facet> List<R> getResourcesFromReferenceFacet​(Class<R> resourceClass,
                                                                                                                                                                                                                                                                                                Class<C> consistsOfClass,
                                                                                                                                                                                                                                                                                                Class<F> facetClass,
                                                                                                                                                                                                                                                                                                UUID referenceFacetUUID,
                                                                                                                                                                                                                                                                                                boolean polymorphic)
                                                                                                                                                                                                                                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getResourcesFromReferenceFacet

        String getResourcesFromReferenceFacet​(String resourceType,
                                              String consistsOfType,
                                              String facetType,
                                              UUID referenceFacetUUID,
                                              boolean polymorphic)
                                       throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getFilteredResources

        <R extends org.gcube.informationsystem.model.reference.entities.Resource,​C extends org.gcube.informationsystem.model.reference.relations.ConsistsOf<?,​?>,​F extends org.gcube.informationsystem.model.reference.entities.Facet> List<R> getFilteredResources​(Class<R> resourceClass,
                                                                                                                                                                                                                                                                                      Class<C> consistsOfClass,
                                                                                                                                                                                                                                                                                      Class<F> facetClass,
                                                                                                                                                                                                                                                                                      boolean polymorphic,
                                                                                                                                                                                                                                                                                      Map<String,​String> facetConstraint)
                                                                                                                                                                                                                                                                               throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getFilteredResources

        String getFilteredResources​(String resourceType,
                                    String consistsOfType,
                                    String facetType,
                                    boolean polymorphic,
                                    Map<String,​String> facetConstraint)
                             throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getRelatedResourcesFromReferenceResource

        <R extends org.gcube.informationsystem.model.reference.entities.Resource,​I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,​?>,​RR extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getRelatedResourcesFromReferenceResource​(Class<R> resourceClass,
                                                                                                                                                                                                                                                                                                               Class<I> isRelatedToClass,
                                                                                                                                                                                                                                                                                                               RR referenceResource,
                                                                                                                                                                                                                                                                                                               org.gcube.informationsystem.base.reference.Direction direction,
                                                                                                                                                                                                                                                                                                               boolean polymorphic)
                                                                                                                                                                                                                                                                                                        throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getRelatedResourcesFromReferenceResource

        <R extends org.gcube.informationsystem.model.reference.entities.Resource,​I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,​?>,​RR extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getRelatedResourcesFromReferenceResource​(Class<R> resourceClass,
                                                                                                                                                                                                                                                                                                               Class<I> isRelatedToClass,
                                                                                                                                                                                                                                                                                                               Class<RR> referenceResourceClass,
                                                                                                                                                                                                                                                                                                               UUID referenceResourceUUID,
                                                                                                                                                                                                                                                                                                               org.gcube.informationsystem.base.reference.Direction direction,
                                                                                                                                                                                                                                                                                                               boolean polymorphic)
                                                                                                                                                                                                                                                                                                        throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getRelatedResourcesFromReferenceResource

        String getRelatedResourcesFromReferenceResource​(String resourceType,
                                                        String isRelatedToType,
                                                        String referenceResourceType,
                                                        UUID referenceResourceUUID,
                                                        org.gcube.informationsystem.base.reference.Direction direction,
                                                        boolean polymorphic)
                                                 throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getRelatedResources

        <R extends org.gcube.informationsystem.model.reference.entities.Resource,​I extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<?,​?>,​RR extends org.gcube.informationsystem.model.reference.entities.Resource> List<R> getRelatedResources​(Class<R> resourceClass,
                                                                                                                                                                                                                                                                                          Class<I> isRelatedToClass,
                                                                                                                                                                                                                                                                                          Class<RR> referenceResourceClass,
                                                                                                                                                                                                                                                                                          org.gcube.informationsystem.base.reference.Direction direction,
                                                                                                                                                                                                                                                                                          boolean polymorphic)
                                                                                                                                                                                                                                                                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getRelatedResources

        String getRelatedResources​(String resourceType,
                                   String isRelatedToType,
                                   String referenceResourceType,
                                   org.gcube.informationsystem.base.reference.Direction direction,
                                   boolean polymorphic)
                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • jsonQuery

        String jsonQuery​(String query)
                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
                         org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • jsonQuery

        <E extends org.gcube.informationsystem.model.reference.entities.Entity> List<E> jsonQuery​(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNode)
                                                                                           throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
                                                                                                  org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • rawQuery

        String rawQuery​(String query)
                 throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
                        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • rawQuery

        String rawQuery​(String query,
                        boolean raw)
                 throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
                        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException