Class FacetManagement

  • All Implemented Interfaces:
    ERManagement

    public class FacetManagement
    extends EntityManagement<org.gcube.informationsystem.model.reference.entities.Facet,​org.gcube.informationsystem.types.reference.entities.FacetType>
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • FacetManagement

        public FacetManagement()
    • Method Detail

      • getSpecificNotFoundException

        protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException getSpecificNotFoundException​(org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException e)
        Specified by:
        getSpecificNotFoundException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
      • getSpecificAvailableInAnotherContextException

        public org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAvailableInAnotherContextException getSpecificAvailableInAnotherContextException​(String message)
      • getSpecificAlreadyPresentException

        protected org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentException getSpecificAlreadyPresentException​(String message)
        Specified by:
        getSpecificAlreadyPresentException in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
      • createCompleteJsonNode

        public org.gcube.com.fasterxml.jackson.databind.JsonNode createCompleteJsonNode()
                                                                                 throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Specified by:
        createCompleteJsonNode in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • reallyCreate

        protected com.orientechnologies.orient.core.record.OVertex reallyCreate()
                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentException,
                                                                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Specified by:
        reallyCreate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetAlreadyPresentException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • reallyUpdate

        protected com.orientechnologies.orient.core.record.OVertex reallyUpdate()
                                                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException,
                                                                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Specified by:
        reallyUpdate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • reallyRemoveFromContext

        protected void reallyRemoveFromContext()
                                        throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException,
                                               org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Overrides:
        reallyRemoveFromContext in class EntityManagement<org.gcube.informationsystem.model.reference.entities.Facet,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • reallyDelete

        protected void reallyDelete()
                             throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException,
                                    org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Specified by:
        reallyDelete in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.entities.facet.FacetNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • checkResource

        protected void checkResource()
                              throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException,
                                     org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException
        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:
        sanityCheck in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • create

        public String create()
                      throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException,
                             org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Overrides:
        create in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • internalCreate

        public com.orientechnologies.orient.core.record.OVertex internalCreate()
                                                                        throws org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException,
                                                                               org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Overrides:
        internalCreate in class ElementManagement<com.orientechnologies.orient.core.record.OVertex,​org.gcube.informationsystem.types.reference.entities.FacetType>
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.AlreadyPresentException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException