public class ResourceManagement extends EntityManagement<org.gcube.informationsystem.model.entity.Resource>
relationManagementsaccessType, AT, element, elementClass, erType, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, orientGraph, reload, UNDERSCORE, uuid, workingContext| Constructor and Description |
|---|
ResourceManagement() |
ResourceManagement(SecurityContext workingContext,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph) |
| Modifier and Type | Method and Description |
|---|---|
static org.codehaus.jettison.json.JSONObject |
addConsistsOf(org.codehaus.jettison.json.JSONObject sourceResource,
org.codehaus.jettison.json.JSONObject consistsOf) |
static org.codehaus.jettison.json.JSONObject |
addIsRelatedTo(org.codehaus.jettison.json.JSONObject sourceResource,
org.codehaus.jettison.json.JSONObject isRelatedTo) |
String |
all(boolean polymorphic,
Map<String,String> constraint) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException |
getSpecificElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException e) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException |
getSpecificERAlreadyPresentException(String message) |
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAvailableInAnotherContextException |
getSpecificERAvailableInAnotherContextException(String message) |
protected com.tinkerpop.blueprints.Vertex |
reallyCreate() |
protected boolean |
reallyDelete() |
String |
reallyGetAll(boolean polymorphic,
Map<String,String> constraint) |
protected com.tinkerpop.blueprints.Vertex |
reallyUpdate() |
String |
serialize() |
org.codehaus.jettison.json.JSONObject |
serializeAsJson() |
addRelation, addToRelationManagement, createVertex, getRelationManagement, reallyAddToContext, reallyGetAll, reallyRemoveFromContextaddToContext, all, checkERMatch, checkJSON, checkUUIDMatch, create, delete, exists, getAccessType, getClassProperty, getElement, getObjectFromElement, getOClass, getPropertyForJson, getPropertyMap, getSuperclasses, getWorkingContext, internalAddToContext, internalCreate, internalCreateOrUdate, internalDelete, internalRemoveFromContext, internalUpdate, isReload, read, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serializeSelfOnly, setElement, setElementType, setJSON, setJSON, setReload, setUUID, setWorkingContext, toJSONObject, update, updatePropertiespublic ResourceManagement()
public ResourceManagement(SecurityContext workingContext, com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph)
protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException getSpecificElementNotFoundException(org.gcube.informationsystem.resourceregistry.api.exceptions.er.ERNotFoundException e)
getSpecificElementNotFoundException in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAvailableInAnotherContextException getSpecificERAvailableInAnotherContextException(String message)
getSpecificERAvailableInAnotherContextException in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>protected org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException getSpecificERAlreadyPresentException(String message)
getSpecificERAlreadyPresentException in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>public String serialize() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serialize in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.codehaus.jettison.json.JSONObject serializeAsJson()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serializeAsJson in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static org.codehaus.jettison.json.JSONObject addConsistsOf(org.codehaus.jettison.json.JSONObject sourceResource,
org.codehaus.jettison.json.JSONObject consistsOf)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static org.codehaus.jettison.json.JSONObject addIsRelatedTo(org.codehaus.jettison.json.JSONObject sourceResource,
org.codehaus.jettison.json.JSONObject isRelatedTo)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.tinkerpop.blueprints.Vertex reallyCreate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyCreate in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.tinkerpop.blueprints.Vertex reallyUpdate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyUpdate in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean reallyDelete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyDelete in class ERManagement<org.gcube.informationsystem.model.entity.Resource,com.tinkerpop.blueprints.Vertex>org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String all(boolean polymorphic, Map<String,String> constraint) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.