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 |
|---|---|
protected org.gcube.informationsystem.model.AccessType |
accessType |
String |
AT |
protected El |
element |
protected Class<El> |
elementClass |
protected String |
erType |
protected Set<String> |
ignoreKeys |
protected Set<String> |
ignoreStartWithKeys |
protected com.fasterxml.jackson.databind.JsonNode |
jsonNode |
protected com.orientechnologies.orient.core.metadata.schema.OClass |
oClass |
protected com.tinkerpop.blueprints.impls.orient.OrientGraph |
orientGraph |
String |
UNDERSCORE |
protected UUID |
uuid |
| Modifier | Constructor and Description |
|---|---|
protected |
ERManagement(org.gcube.informationsystem.model.AccessType accessType) |
protected |
ERManagement(org.gcube.informationsystem.model.AccessType accessType,
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() |
String |
create() |
boolean |
delete() |
boolean |
exists() |
static com.tinkerpop.blueprints.Element |
getAnyElementByUUID(UUID uuid) |
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) |
protected com.orientechnologies.orient.core.metadata.schema.OClass |
getOClass() |
protected Object |
getPropertyForJson(String key,
Object object) |
static Map<String,Object> |
getPropertyMap(com.fasterxml.jackson.databind.JsonNode jsonNode,
Set<String> ignoreKeys,
Set<String> ignoreStartWith) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException |
getSpecificElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException e) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentException |
getSpecificERAlreadyPresentException(String message) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException |
getSpecificERAvailableInAnotherContextException(String message) |
protected Collection<String> |
getSuperclasses() |
String |
read() |
abstract boolean |
reallyAddToContext() |
abstract El |
reallyCreate() |
El |
reallyCreateOrUdate() |
abstract boolean |
reallyDelete() |
abstract String |
reallyGetAll(boolean polymorphic) |
abstract boolean |
reallyRemoveFromContext() |
abstract El |
reallyUpdate() |
boolean |
removeFromContext() |
El |
retrieveElement() |
El |
retrieveElementFromAnyContext() |
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) |
org.codehaus.jettison.json.JSONObject |
toJSONObject() |
String |
update() |
static com.tinkerpop.blueprints.Element |
updateProperties(com.orientechnologies.orient.core.metadata.schema.OClass oClass,
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 org.gcube.informationsystem.model.AccessType accessType
protected com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph
protected UUID uuid
protected com.fasterxml.jackson.databind.JsonNode jsonNode
protected com.orientechnologies.orient.core.metadata.schema.OClass oClass
protected String erType
protected El extends com.tinkerpop.blueprints.Element element
protected ERManagement(org.gcube.informationsystem.model.AccessType accessType)
protected ERManagement(org.gcube.informationsystem.model.AccessType accessType,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph)
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 com.tinkerpop.blueprints.Element getAnyElementByUUID(UUID uuid) 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 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.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.metadata.schema.OClass getOClass()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic 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 reallyCreate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract El reallyUpdate() 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 El reallyCreateOrUdate() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic abstract boolean reallyDelete()
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 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 org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException getSpecificElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException e)
protected org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException getSpecificERAvailableInAnotherContextException(String message)
protected org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentException getSpecificERAlreadyPresentException(String message)
public El getElement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic El retrieveElement() 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 El retrieveElementFromAnyContext() 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 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 boolean exists()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String create() throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String read() throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String update() throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean delete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.er.ERAvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionpublic boolean removeFromContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundExceptionorg.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 UnsupportedDataTypeException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
UnsupportedDataTypeExceptionorg.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.orientechnologies.orient.core.metadata.schema.OClass oClass,
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.ResourceRegistryExceptionprotected Object getPropertyForJson(String key, Object object) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected Collection<String> getSuperclasses() throws org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException
org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaExceptionpublic 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.