public class AdminResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_USER_ID_FORMAT |
static String |
DEFAULT_USER_ID_PREFIX |
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, logger, 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 |
---|
AdminResource(org.neo4j.graphdb.GraphDatabaseService database) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createDefaultUserProfile(String jsonData,
List<String> groups)
Create a new user with a default name and identifier.
|
javax.ws.rs.core.Response |
exportNodes() |
javax.ws.rs.core.Response |
getGraphSON()
Export the DB as a stream of JSON in
GraphSON format.
|
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 static final String DEFAULT_USER_ID_PREFIX
public static final String DEFAULT_USER_ID_FORMAT
public AdminResource(@Context org.neo4j.graphdb.GraphDatabaseService database)
public javax.ws.rs.core.Response getGraphSON() throws Exception
The mode used is EXTENDED.
Exception
public javax.ws.rs.core.Response createDefaultUserProfile(String jsonData, List<String> groups) throws Exception
jsonData
- Additional key/value data for the created objectgroups
- IDs for groups to which the user should belongException
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.