public class BatchResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT |
ACCESSOR_PARAM, ALL_PARAM, AUTH_HEADER_NAME, COMMIT_PARAM, CSV_MEDIA_TYPE, DEFAULT_LIST_LIMIT, FILTER_PARAM, graph, GROUP_PARAM, ID_PARAM, INCLUDE_PROPS_PARAM, ITEM_CACHE_TIME, jsonFactory, jsonMapper, LIMIT_PARAM, LOG_MESSAGE_HEADER_NAME, LOG_PARAM, manager, N3_MIMETYPE, OFFSET_PARAM, PATCH_HEADER_NAME, RANGE_HEADER_NAME, RDF_MIMETYPE_FORMATS, RDF_XML_MIMETYPE, request, requestHeaders, RESOURCE_ENDPOINT_PREFIX, SCOPE_PARAM, SORT_PARAM, STREAM_HEADER_NAME, TOLERANT_PARAM, TURTLE_MIMETYPE, uriInfo, VERSION_PARAM
Constructor and Description |
---|
BatchResource(org.neo4j.graphdb.GraphDatabaseService database) |
Modifier and Type | Method and Description |
---|---|
String |
batchDelete(String scope,
Boolean version,
String log,
boolean commit,
Table ids)
Delete a batch of objects via JSON containing their IDs.
|
ImportLog |
batchUpdate(String scope,
Boolean tolerant,
Boolean version,
String log,
boolean commit,
InputStream inputStream)
Update a batch of items via JSON containing (partial)
data bundles.
|
anonymousApi, api, beginTx, creationResponse, getCacheControl, getCurrentActioner, getCurrentUser, getGraph, getIntQueryParam, getItemUri, getLogMessage, getQuery, getRdfFormat, getRequesterUserProfile, getSerializer, getStringListQueryParam, isPatch, isStreaming, single, streamingList, streamingList, streamingListOfLists, streamingPage, streamingPage, streamingVertexList, streamingVertexList
public static final String ENDPOINT
public BatchResource(@Context org.neo4j.graphdb.GraphDatabaseService database)
public ImportLog batchUpdate(String scope, Boolean tolerant, Boolean version, String log, boolean commit, InputStream inputStream) throws IOException, ItemNotFound, ValidationError, DeserializationError
scope
- the ID of there item's permission scopetolerant
- whether to allow individual validation failuresversion
- whether to create a version prior to deletelog
- an optional log messageinputStream
- a JSON document containing partial bundles containing
the needed data transformationsIOException
ItemNotFound
ValidationError
DeserializationError
public String batchDelete(String scope, Boolean version, String log, boolean commit, Table ids) throws IOException, DeserializationError
scope
- the ID of there item's permission scopeversion
- whether to create a version prior to deletelog
- an optional log message.IOException
DeserializationError
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.