public abstract class ERManagement<ERType extends org.gcube.informationsystem.model.ER,El extends com.tinkerpop.blueprints.Element> extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
AT |
protected String |
baseType |
protected El |
element |
protected Class<El> |
elementClass |
protected String |
erType |
protected Class<ERType> |
erTypeClass |
protected Set<String> |
ignoreKeys |
protected Set<String> |
ignoreStartWithKeys |
protected com.fasterxml.jackson.databind.JsonNode |
jsonNode |
protected com.tinkerpop.blueprints.impls.orient.OrientGraph |
orientGraph |
String |
UNDERSCORE |
protected UUID |
uuid |
| Modifier | Constructor and Description |
|---|---|
protected |
ERManagement(Class<ERType> erClass) |
protected |
ERManagement(Class<ERType> erClass,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToContext() |
String |
all(boolean polymorphic) |
protected void |
checkERMatch() |
protected void |
checkJSON() |
protected void |
checkUUIDMatch() |
boolean |
delete() |
static String |
getClassProperty(com.fasterxml.jackson.databind.JsonNode jsonNode) |
El |
getElement() |
static ERManagement |
getERManagement(org.gcube.informationsystem.model.AccessType querableType) |
static ERManagement |
getERManagement(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.tinkerpop.blueprints.Element element) |
static ERManagement |
getERManagement(String type) |
static ERManagement |
getERManagementFromUUID(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
UUID uuid) |
static Object |
getObjectFromElement(com.fasterxml.jackson.databind.JsonNode value) |
static Map<String,Object> |
getPropertyMap(com.fasterxml.jackson.databind.JsonNode jsonNode,
Set<String> ignoreKeys,
Set<String> ignoreStartWith) |
String |
read() |
abstract boolean |
reallyAddToContext() |
abstract boolean |
reallyDelete() |
abstract String |
reallyGetAll(boolean polymorphic) |
abstract boolean |
reallyRemoveFromContext() |
abstract El |
reallyUpdate() |
boolean |
removeFromContext() |
abstract String |
serialize() |
abstract org.codehaus.jettison.json.JSONObject |
serializeAsJson() |
org.codehaus.jettison.json.JSONObject |
serializeSelfOnly() |
void |
setElement(El element) |
void |
setElementType(String erType) |
void |
setJSON(com.fasterxml.jackson.databind.JsonNode jsonNode) |
void |
setJSON(String jsonRepresentation) |
void |
setUUID(UUID uuid) |
protected void |
throwElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException e) |
org.codehaus.jettison.json.JSONObject |
toJSONObject() |
String |
update() |
static com.tinkerpop.blueprints.Element |
updateProperties(com.tinkerpop.blueprints.Element element,
com.fasterxml.jackson.databind.JsonNode jsonNode,
Set<String> ignoreKeys,
Set<String> ignoreStartWithKeys) |
public final String AT
public final String UNDERSCORE
protected String baseType
protected com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph
protected UUID uuid
protected com.fasterxml.jackson.databind.JsonNode jsonNode
protected String erType
protected El extends com.tinkerpop.blueprints.Element element
public static ERManagement getERManagement(org.gcube.informationsystem.model.AccessType querableType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static ERManagement getERManagement(String type) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static ERManagement getERManagement(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph, com.tinkerpop.blueprints.Element element) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static ERManagement getERManagementFromUUID(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setUUID(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setJSON(com.fasterxml.jackson.databind.JsonNode jsonNode)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setJSON(String jsonRepresentation) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setElementType(String erType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void checkJSON()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void checkERMatch()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void checkUUIDMatch()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.codehaus.jettison.json.JSONObject serializeSelfOnly()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract String serialize() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract org.codehaus.jettison.json.JSONObject serializeAsJson()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract El reallyUpdate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract boolean reallyDelete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract boolean reallyAddToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract boolean reallyRemoveFromContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setElement(El element) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void throwElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException e)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic El getElement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract String reallyGetAll(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String all(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String read() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String update() throws org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean delete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionpublic boolean removeFromContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionpublic static String getClassProperty(com.fasterxml.jackson.databind.JsonNode jsonNode)
public static Object getObjectFromElement(com.fasterxml.jackson.databind.JsonNode value) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static Map<String,Object> getPropertyMap(com.fasterxml.jackson.databind.JsonNode jsonNode, Set<String> ignoreKeys, Set<String> ignoreStartWith) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionpublic static com.tinkerpop.blueprints.Element updateProperties(com.tinkerpop.blueprints.Element element,
com.fasterxml.jackson.databind.JsonNode jsonNode,
Set<String> ignoreKeys,
Set<String> ignoreStartWithKeys)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.codehaus.jettison.json.JSONObject toJSONObject()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.