Class ConfigurationTemplateAnalyser

java.lang.Object
org.gcube.resourcemanagement.analyser.InstanceAnalyser<GR,GCubeInstance>
org.gcube.resourcemanagement.analyser.GCubeAnalyser<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate>
org.gcube.resourcemanagement.analyser.ConfigurationTemplateAnalyser

public class ConfigurationTemplateAnalyser extends GCubeAnalyser<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate>
Author:
Luca Frosini (ISTI - CNR)
  • Field Summary

    Fields inherited from class org.gcube.resourcemanagement.analyser.InstanceAnalyser

    ancestor, client, derivatedRelatedResourceGroups, instance, instanceUUID, level, logger, mandatory, mandatoryRelatedResources, mapper, publisher, resource, targetContext, templateClient, type
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<org.gcube.informationsystem.base.reference.IdentifiableElement>
     
    protected List<org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet>
     
    protected List<org.gcube.informationsystem.base.reference.IdentifiableElement>
     
    Class<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate>
     
    boolean
     
    protected boolean
    validateInstanceAgainstTemplate(org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet tf, org.gcube.informationsystem.model.reference.entities.Facet newFacet)
     
    protected List<org.gcube.informationsystem.base.reference.IdentifiableElement>
    validateInstancesToCreate(List<org.gcube.informationsystem.base.reference.IdentifiableElement> newInstances)
     

    Methods inherited from class org.gcube.resourcemanagement.analyser.InstanceAnalyser

    add, addDerivatedRelatedResourceGroup, addDerivatedRelatedResources, addMandatoryRelatedResources, createNewInstances, executeAdd, executeQuery, executeQueryTemplate, getAncestor, getDerivatedRelatedResources, getDescription, getDRRMap, getInstance, getInstanceUUID, getLevel, getMandatoryRelatedResources, getMandatoryRelatedResourcesQTR, getName, getPriority, getResource, getType, read, readToAdd, readToRemove, remove, setAncestor, setInstance, setInstanceUUID, setLevel, setResource, setTargetContext, setType, validateDerivatedRelatedResources, validateMandatoryRelatedResources

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurationTemplateAnalyser

      public ConfigurationTemplateAnalyser()
    • ConfigurationTemplateAnalyser

      public ConfigurationTemplateAnalyser(String type, UUID instanceUUID)
  • Method Details

    • getTypeClass

      public Class<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate> getTypeClass()
      Specified by:
      getTypeClass in class org.gcube.resourcemanagement.analyser.InstanceAnalyser<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate,GCubeInstance>
    • polymorphic

      public boolean polymorphic()
      Overrides:
      polymorphic in class org.gcube.resourcemanagement.analyser.InstanceAnalyser<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate,GCubeInstance>
    • getTemplateFacets

      protected List<org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet> getTemplateFacets() throws jakarta.ws.rs.WebApplicationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Throws:
      jakarta.ws.rs.WebApplicationException
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
    • getTemplateFacetsAsIdentifiableElements

      protected List<org.gcube.informationsystem.base.reference.IdentifiableElement> getTemplateFacetsAsIdentifiableElements() throws jakarta.ws.rs.WebApplicationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Throws:
      jakarta.ws.rs.WebApplicationException
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
    • validateInstanceAgainstTemplate

      protected boolean validateInstanceAgainstTemplate(org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet tf, org.gcube.informationsystem.model.reference.entities.Facet newFacet) throws jakarta.ws.rs.WebApplicationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Throws:
      jakarta.ws.rs.WebApplicationException
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
    • validateInstancesToCreate

      protected List<org.gcube.informationsystem.base.reference.IdentifiableElement> validateInstancesToCreate(List<org.gcube.informationsystem.base.reference.IdentifiableElement> newInstances) throws jakarta.ws.rs.WebApplicationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Specified by:
      validateInstancesToCreate in class org.gcube.resourcemanagement.analyser.InstanceAnalyser<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate,GCubeInstance>
      Throws:
      jakarta.ws.rs.WebApplicationException
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
    • getNewInstances

      protected List<org.gcube.informationsystem.base.reference.IdentifiableElement> getNewInstances() throws jakarta.ws.rs.WebApplicationException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Specified by:
      getNewInstances in class org.gcube.resourcemanagement.analyser.InstanceAnalyser<org.gcube.resourcemanagement.model.reference.entities.resources.ConfigurationTemplate,GCubeInstance>
      Throws:
      jakarta.ws.rs.WebApplicationException
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException