Class ElementManagementUtility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.instances.base.ElementManagementUtility
-
public class ElementManagementUtility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description ElementManagementUtility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.orientechnologies.orient.core.record.OElementgetAnyElementByUUID(com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument, UUID uuid)static com.orientechnologies.orient.core.record.OElementgetAnyElementByUUID(UUID uuid)static <E extends com.orientechnologies.orient.core.record.OElement>
EgetElementFromOptional(Optional<E> optional)static EntityManagement<?,?>getEntityManagement(SecurityContext workingContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument, com.orientechnologies.orient.core.record.OVertex vertex)static ElementManagement<?,?>getERManagement(String type)static ElementManagement<?,?>getERManagement(SecurityContext workingContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, com.orientechnologies.orient.core.record.OElement element)static ElementManagement<?,?>getERManagementFromUUID(SecurityContext workingContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph, UUID uuid)static com.orientechnologies.orient.core.metadata.schema.OClassgetOClass(com.orientechnologies.orient.core.record.OElement oElement)static RelationManagement<?,?>getRelationManagement(SecurityContext workingContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument, com.orientechnologies.orient.core.record.OEdge edge)
-
-
-
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.NotFoundExceptionorg.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.NotFoundExceptionorg.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
-
-