Class ElementManagementUtility


  • public class ElementManagementUtility
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • ElementManagementUtility

        public ElementManagementUtility()
    • Method Detail

      • getERManagement

        public static ElementManagement<?,​?> getERManagement​(String type)
                                                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getERManagement

        public static ElementManagement<?,​?> getERManagement​(SecurityContext workingContext,
                                                                   com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
                                                                   com.orientechnologies.orient.core.record.OElement element)
                                                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getAnyElementByUUID

        public static com.orientechnologies.orient.core.record.OElement getAnyElementByUUID​(UUID uuid)
                                                                                     throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                                                                                            org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getAnyElementByUUID

        public static com.orientechnologies.orient.core.record.OElement getAnyElementByUUID​(com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument,
                                                                                            UUID uuid)
                                                                                     throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                                                                                            org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getERManagementFromUUID

        public static ElementManagement<?,​?> getERManagementFromUUID​(SecurityContext workingContext,
                                                                           com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
                                                                           UUID uuid)
                                                                    throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getEntityManagement

        public static EntityManagement<?,​?> getEntityManagement​(SecurityContext workingContext,
                                                                      com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument,
                                                                      com.orientechnologies.orient.core.record.OVertex vertex)
                                                               throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getRelationManagement

        public static RelationManagement<?,​?> getRelationManagement​(SecurityContext workingContext,
                                                                          com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument,
                                                                          com.orientechnologies.orient.core.record.OEdge edge)
                                                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getElementFromOptional

        public static <E extends com.orientechnologies.orient.core.record.OElement> E getElementFromOptional​(Optional<E> optional)
                                                                                                      throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getOClass

        public static com.orientechnologies.orient.core.metadata.schema.OClass getOClass​(com.orientechnologies.orient.core.record.OElement oElement)
                                                                                  throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException