public class Utility extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SHOULD_NOT_OCCUR_ERROR_MESSAGE |
| Constructor and Description |
|---|
Utility() |
| Modifier and Type | Method and Description |
|---|---|
static <El extends com.tinkerpop.blueprints.Element> |
getElementByUUID(com.tinkerpop.blueprints.Graph graph,
String elementType,
UUID uuid,
Class<? extends El> clz) |
static <El extends com.tinkerpop.blueprints.Element> |
getElementByUUIDAsAdmin(String elementType,
UUID uuid,
Class<? extends El> clz) |
static <P extends org.gcube.informationsystem.model.reference.properties.Property> |
getPropertyDocument(Class<P> clz,
com.tinkerpop.blueprints.Element element,
String property) |
static UUID |
getUUID(com.tinkerpop.blueprints.Element element) |
static com.fasterxml.jackson.databind.JsonNode |
toJsonNode(com.tinkerpop.blueprints.Element element,
boolean raw) |
static com.fasterxml.jackson.databind.JsonNode |
toJsonNode(com.orientechnologies.orient.core.record.ORecord oRecord,
boolean raw) |
static String |
toJsonString(com.tinkerpop.blueprints.Element element,
boolean raw) |
static String |
toJsonString(com.orientechnologies.orient.core.record.ORecord oRecord,
boolean raw) |
public static final String SHOULD_NOT_OCCUR_ERROR_MESSAGE
public static com.fasterxml.jackson.databind.JsonNode toJsonNode(com.tinkerpop.blueprints.Element element,
boolean raw)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static com.fasterxml.jackson.databind.JsonNode toJsonNode(com.orientechnologies.orient.core.record.ORecord oRecord,
boolean raw)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static String toJsonString(com.tinkerpop.blueprints.Element element, boolean raw)
public static String toJsonString(com.orientechnologies.orient.core.record.ORecord oRecord, boolean raw)
public static <El extends com.tinkerpop.blueprints.Element> El getElementByUUIDAsAdmin(String elementType, UUID uuid, Class<? extends El> clz) throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static <El extends com.tinkerpop.blueprints.Element> El getElementByUUID(com.tinkerpop.blueprints.Graph graph,
String elementType,
UUID uuid,
Class<? extends El> clz)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static <P extends org.gcube.informationsystem.model.reference.properties.Property> P getPropertyDocument(Class<P> clz, com.tinkerpop.blueprints.Element element, String property) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static UUID getUUID(com.tinkerpop.blueprints.Element element) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2019. All Rights Reserved.