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 <E extends org.gcube.informationsystem.model.embedded.Embedded> |
getEmbedded(Class<E> clz,
com.tinkerpop.blueprints.Element element,
String property) |
static UUID |
getUUID(com.tinkerpop.blueprints.Element element) |
static org.codehaus.jettison.json.JSONObject |
toJsonObject(com.tinkerpop.blueprints.Element element,
boolean raw) |
static org.codehaus.jettison.json.JSONObject |
toJsonObject(com.tinkerpop.blueprints.impls.orient.OrientElement element,
boolean raw) |
static String |
toJsonString(com.tinkerpop.blueprints.Element element,
boolean raw) |
static String |
toJsonString(com.orientechnologies.orient.core.record.ORecord oRecord,
boolean raw) |
static String |
toJsonString(com.tinkerpop.blueprints.impls.orient.OrientElement element,
boolean raw) |
public static final String SHOULD_NOT_OCCUR_ERROR_MESSAGE
public static org.codehaus.jettison.json.JSONObject toJsonObject(com.tinkerpop.blueprints.impls.orient.OrientElement element,
boolean raw)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static String toJsonString(com.tinkerpop.blueprints.impls.orient.OrientElement element, boolean raw)
public static String toJsonString(com.orientechnologies.orient.core.record.ORecord oRecord, boolean raw)
public static org.codehaus.jettison.json.JSONObject toJsonObject(com.tinkerpop.blueprints.Element element,
boolean raw)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic static String toJsonString(com.tinkerpop.blueprints.Element element, 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.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.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.er.ERNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static <E extends org.gcube.informationsystem.model.embedded.Embedded> E getEmbedded(Class<E> 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 © 2017. All Rights Reserved.