Package | Description |
---|---|
eu.ehri.extension |
Jersey resource classes for providing
web service access to the graph, via
the
eu.ehri.project.api layer. |
eu.ehri.extension.base | |
eu.ehri.extension.errors.mappers |
Classes that map caught exceptions to appropriate HTTP responses.
|
eu.ehri.project.api |
Classes that provide data access data on the graph in a
manner that incorporate the permission and access-control
systems.
|
eu.ehri.project.api.impl | |
eu.ehri.project.commands |
Classes that represent actions that can
be run via the
CmdEntryPoint
to manage the graph, e.g. |
eu.ehri.project.importers.base | |
eu.ehri.project.importers.csv | |
eu.ehri.project.importers.cvoc |
Tools to import controlled vocabularies into the graph database.
|
eu.ehri.project.importers.eac | |
eu.ehri.project.importers.ead | |
eu.ehri.project.importers.eag | |
eu.ehri.project.importers.json | |
eu.ehri.project.importers.links | |
eu.ehri.project.importers.managers | |
eu.ehri.project.importers.util | |
eu.ehri.project.persistence |
Classes dealing with persistence of
relational item data in sub-tree format.
|
eu.ehri.project.tools |
Modifier and Type | Method and Description |
---|---|
ImportLog |
RepositoryResource.addChildren(String id,
InputStream data)
Add items to a repository via serialised data.
|
long |
ToolsResource.autoLinkRepositoryDocs(String repositoryId,
String vocabularyId,
Set<AccessPointType> accessPointTypes,
String languageCode,
boolean excludeSingle,
boolean tolerant)
Create concepts and links derived from the access points
on a repository's documentary units.
|
ImportLog |
BatchResource.batchUpdate(String scope,
Boolean tolerant,
Boolean version,
String log,
boolean commit,
InputStream inputStream)
Update a batch of items via JSON containing (partial)
data bundles.
|
javax.ws.rs.core.Response |
CountryResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
AuthoritativeSetResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
VocabularyResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
HistoricalAgentResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
LinkResource.create(Bundle bundle,
String source,
String target,
List<String> bodies,
List<String> accessors)
Create a link between two items.
|
javax.ws.rs.core.Response |
GenericResource.createAccessPoint(String id,
String did,
Bundle bundle)
Create an access point on the given description, for the given
parent item.
|
javax.ws.rs.core.Response |
AnnotationResource.createAnnotation(String id,
String did,
List<String> accessors,
Bundle bundle)
Create an annotation for a particular item.
|
javax.ws.rs.core.Response |
CountryResource.createChild(String id,
Bundle bundle,
List<String> accessors)
Create a top-level repository unit for this country.
|
javax.ws.rs.core.Response |
AuthoritativeSetResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
VocabularyResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
CvocConceptResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
RepositoryResource.createChild(String id,
Bundle bundle,
List<String> accessors)
Create a documentary unit for this repository.
|
javax.ws.rs.core.Response |
DocumentaryUnitResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
VirtualUnitResource.createChildVirtualUnit(String id,
Bundle bundle,
List<String> accessors,
List<String> includedIds) |
javax.ws.rs.core.Response |
GenericResource.createDescription(String id,
Bundle bundle)
Create a new description for this item.
|
javax.ws.rs.core.Response |
GroupResource.createGroup(Bundle bundle,
List<String> accessors,
List<String> members) |
javax.ws.rs.core.Response |
VirtualUnitResource.createTopLevelVirtualUnit(Bundle bundle,
List<String> accessors,
List<String> includedIds) |
javax.ws.rs.core.Response |
UserProfileResource.createUserProfile(Bundle bundle,
List<String> groupIds,
List<String> accessors) |
void |
GroupResource.delete(String id) |
void |
CountryResource.delete(String id) |
void |
AnnotationResource.delete(String id) |
void |
AuthoritativeSetResource.delete(String id) |
void |
VocabularyResource.delete(String id) |
void |
CvocConceptResource.delete(String id) |
void |
LinkResource.delete(String id) |
void |
RepositoryResource.delete(String id) |
void |
DocumentaryUnitResource.delete(String id) |
void |
VirtualUnitResource.delete(String id) |
void |
HistoricalAgentResource.delete(String id) |
void |
UserProfileResource.delete(String id) |
void |
GenericResource.deleteAccessPoint(String id,
String did,
String apid)
Delete the access point with the given ID, on the given description,
belonging to the given parent item.
|
void |
GenericResource.deleteDescription(String id,
String did)
Delete a description with the given ID, belonging to the given parent item.
|
Table |
ToolsResource.findReplace(String from,
String to,
String type,
String subType,
String property,
int maxItems,
boolean commit)
Find and replace text in descriptions for a given item type
and description property name.
|
ImportLog |
ImportResource.importCsv(String scopeId,
Boolean tolerant,
Boolean allowUpdates,
String logMessage,
String importerClass,
boolean commit,
InputStream data)
Import a set of CSV files.
|
ImportLog |
ImportResource.importEac(String scopeId,
Boolean tolerant,
Boolean allowUpdates,
String logMessage,
String propertyFile,
String handlerClass,
String importerClass,
boolean commit,
InputStream data)
Import EAC files.
|
ImportLog |
ImportResource.importEad(String scopeId,
Boolean tolerant,
Boolean allowUpdates,
String logMessage,
String propertyFile,
String handlerClass,
String importerClass,
boolean commit,
InputStream data)
Import a set of EAD files.
|
ImportLog |
ImportResource.importEag(String scopeId,
Boolean tolerant,
Boolean allowUpdates,
String logMessage,
String propertyFile,
String handlerClass,
String importerClass,
boolean commit,
InputStream data)
Import EAG files.
|
ImportLog |
ImportResource.importSkos(String scopeId,
Boolean tolerant,
String baseURI,
String uriSuffix,
String logMessage,
String format,
boolean commit,
InputStream stream)
Import a SKOS file, of varying formats, as specified by the "language"
column of the file extensions table here.
|
javax.ws.rs.core.Response |
GenericResource.removeDemotion(String id)
Remove a down vote.
|
javax.ws.rs.core.Response |
GenericResource.removePromotion(String id)
Remove an up vote.
|
SyncLog |
ImportResource.syncEad(String scopeId,
String fonds,
Boolean tolerant,
Boolean allowUpdates,
String logMessage,
String propertyFile,
String handlerClass,
String importerClass,
Set<String> ex,
boolean commit,
InputStream data)
Synchronise a repository or fonds via EAD data, removing
items which are not present in the incoming data.
|
javax.ws.rs.core.Response |
GroupResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
CountryResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
AnnotationResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
AuthoritativeSetResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
VocabularyResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
CvocConceptResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
LinkResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
RepositoryResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
DocumentaryUnitResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
VirtualUnitResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
HistoricalAgentResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
UserProfileResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
GenericResource.updateDescription(String id,
Bundle bundle)
Update a description belonging to the given item.
|
javax.ws.rs.core.Response |
GenericResource.updateDescriptionWithId(String id,
String did,
Bundle bundle)
Update a description with the given ID, belonging to the given parent item.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
CreateResource.create(Bundle bundle,
List<String> accessors)
Create a resource.
|
javax.ws.rs.core.Response |
ParentResource.createChild(String id,
Bundle bundle,
List<String> accessors)
Create a subordinate resource.
|
javax.ws.rs.core.Response |
AbstractAccessibleResource.createItem(Bundle entityBundle,
List<String> accessorIds) |
javax.ws.rs.core.Response |
AbstractAccessibleResource.createItem(Bundle entityBundle,
List<String> accessorIds,
AbstractAccessibleResource.Handler<E> handler)
Create an instance of the 'entity' in the database
|
<T extends Accessible> |
AbstractAccessibleResource.createItem(Bundle entityBundle,
List<String> accessorIds,
AbstractAccessibleResource.Handler<T> handler,
Api scopedApi,
Class<T> otherCls)
Create an instance of the 'entity' in the database
|
void |
DeleteResource.delete(String id)
Delete a resource.
|
protected void |
AbstractAccessibleResource.deleteItem(String id)
Delete (remove) an instance of the 'entity' in the database
|
protected void |
AbstractAccessibleResource.deleteItem(String id,
AbstractAccessibleResource.Handler<E> preProcess)
Delete (remove) an instance of the 'entity' in the database,
running a handler callback beforehand.
|
javax.ws.rs.core.Response |
UpdateResource.update(String id,
Bundle bundle)
Update a resource.
|
javax.ws.rs.core.Response |
AbstractAccessibleResource.updateItem(Bundle entityBundle)
Update (change) an instance of the 'entity' in the database.
|
javax.ws.rs.core.Response |
AbstractAccessibleResource.updateItem(String id,
Bundle rawBundle)
Update (change) an instance of the 'entity' in the database
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
ValidationErrorMapper.toResponse(ValidationError e) |
Modifier and Type | Method and Description |
---|---|
<E extends Accessible> |
Api.create(Bundle bundle,
Class<E> cls)
Create a new object of type `E` from the given data, within the scope of
`scope`.
|
<E extends Accessible> |
Api.create(Bundle bundle,
Class<E> cls,
Optional<String> logMessage)
Create a new object of type `E` from the given data, saving an Action log
with the given log message.
|
Link |
Api.createAccessPointLink(String targetId1,
String targetId2,
String descriptionId,
String bodyName,
AccessPointType bodyType,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage)
Create a link between two items, along with an access point on the given description.
|
Annotation |
Api.createAnnotation(String id,
String did,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage)
Create an annotation for a dependent node of an item.
|
<T extends Accessible> |
Api.createDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage)
Create a dependent item, belonging to the given parent.
|
Link |
Api.createLink(String targetId1,
String targetId2,
List<String> bodies,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage)
Create a link between two items.
|
<E extends Accessible> |
Api.createOrUpdate(Bundle bundle,
Class<E> cls)
Create or update a new object of type `E` from the given data, within the
scope of `scope`.
|
<E extends Accessible> |
Api.createOrUpdate(Bundle bundle,
Class<E> cls,
Optional<String> logMessage)
Create or update a new object of type `E` from the given data, within the
scope of `scope`.
|
int |
Api.delete(String id)
Delete an object bundle, following dependency cascades, within the scope
of item `scope`.
|
int |
Api.delete(String id,
Optional<String> logMessage)
Delete an object bundle, following dependency cascades, within the scope
of item `scope`.
|
<E extends Accessible> |
Api.update(Bundle bundle,
Class<E> cls)
Update an object bundle, also updating dependent items.
|
<E extends Accessible> |
Api.update(Bundle bundle,
Class<E> cls,
Optional<String> logMessage)
Create or update a new object of type `E` from the given data, saving an
Action log with the given log message.
|
<T extends Accessible> |
Api.updateDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage)
Update a dependent item, belonging to the given parent.
|
Modifier and Type | Method and Description |
---|---|
<E extends Accessible> |
ApiImpl.create(Bundle bundle,
Class<E> cls) |
<E extends Accessible> |
ApiImpl.create(Bundle bundle,
Class<E> cls,
Optional<String> logMessage) |
Link |
ApiImpl.createAccessPointLink(String targetId1,
String targetId2,
String descriptionId,
String bodyName,
AccessPointType bodyType,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage) |
Annotation |
ApiImpl.createAnnotation(String id,
String did,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage) |
<T extends Accessible> |
ApiImpl.createDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage) |
Link |
ApiImpl.createLink(String targetId1,
String targetId2,
List<String> bodies,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage) |
<E extends Accessible> |
ApiImpl.createOrUpdate(Bundle bundle,
Class<E> cls) |
<E extends Accessible> |
ApiImpl.createOrUpdate(Bundle bundle,
Class<E> cls,
Optional<String> logMessage) |
int |
ApiImpl.delete(String id) |
int |
ApiImpl.delete(String id,
Optional<String> logMessage) |
<E extends Accessible> |
ApiImpl.update(Bundle bundle,
Class<E> cls) |
<E extends Accessible> |
ApiImpl.update(Bundle bundle,
Class<E> cls,
Optional<String> logMessage) |
<T extends Accessible> |
ApiImpl.updateDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage) |
Modifier and Type | Method and Description |
---|---|
void |
EntityAdd.createItem(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine,
String id,
Bundle bundle,
PermissionScope scope,
UserProfile user,
String logMessage) |
int |
EntityAdd.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
int |
UserAdd.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
int |
UserMod.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
int |
CountryAdd.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
Modifier and Type | Method and Description |
---|---|
T |
ItemImporter.importItem(I itemData)
Import an item representation into the graph, and return the Node.
|
T |
ItemImporter.importItem(I itemData,
List<String> scopeIds)
Import an item representation into the graph at a certain depth, and return the Node.
|
Modifier and Type | Method and Description |
---|---|
AbstractUnit |
UkrainianUnitImporter.importItem(Map<String,Object> itemData) |
AuthoritativeItem |
CsvConceptImporter.importItem(Map<String,Object> itemData) |
AuthoritativeItem |
CsvAuthoritativeItemImporter.importItem(Map<String,Object> itemData) |
HistoricalAgent |
PersonalitiesImporter.importItem(Map<String,Object> itemData) |
HistoricalAgent |
Wp2PersonalitiesImporter.importItem(Map<String,Object> itemData) |
AuthoritativeItem |
CsvHistoricalAgentImporter.importItem(Map<String,Object> itemData) |
HistoricalAgent |
Wp2PersonalitiesImporter.importItem(Map<String,Object> itemData,
int depth) |
AbstractUnit |
UkrainianUnitImporter.importItem(Map<String,Object> itemData,
List<String> scopeIds) |
AuthoritativeItem |
CsvAuthoritativeItemImporter.importItem(Map<String,Object> itemData,
List<String> idPath) |
HistoricalAgent |
PersonalitiesImporter.importItem(Map<String,Object> itemData,
List<String> idPath) |
Modifier and Type | Method and Description |
---|---|
ImportLog |
JenaSkosImporter.importFile(InputStream ios,
String logMessage)
Import an input stream.
|
ImportLog |
SkosImporter.importFile(InputStream ios,
String logMessage)
Import an input stream with a given log message.
|
ImportLog |
JenaSkosImporter.importFile(String filePath,
String logMessage)
Import a file by path.
|
ImportLog |
SkosImporter.importFile(String filePath,
String logMessage)
Import a file with a given log message.
|
Modifier and Type | Method and Description |
---|---|
HistoricalAgent |
EacImporter.importItem(Map<String,Object> itemData) |
HistoricalAgent |
EacImporter.importItem(Map<String,Object> itemData,
List<String> idPath) |
Modifier and Type | Method and Description |
---|---|
protected Bundle |
EadImporter.getDescription(Map<String,Object> itemData)
Extract the documentary unit description bundle from the raw map data.
|
AbstractUnit |
EadImporter.importItem(Map<String,Object> itemData) |
AbstractUnit |
VirtualEadImporter.importItem(Map<String,Object> itemData) |
AbstractUnit |
EadImporter.importItem(Map<String,Object> itemData,
List<String> idPath)
Import a single archdesc or c01-12 item, keeping a reference to the hierarchical depth.
|
AbstractUnit |
VirtualEadImporter.importItem(Map<String,Object> itemData,
List<String> idPath)
Import a single archdesc or c01-12 item, keeping a reference to the hierarchical depth.
|
protected Bundle |
EadImporter.mergeWithPreviousAndSave(Bundle unit,
Bundle descBundle,
List<String> idPath)
Finds any bundle in the graph with the same ObjectIdentifier.
|
ImportLog |
EadSync.EadIngestOperation.runIngest(ImportManager manager) |
SyncLog |
EadSync.sync(EadSync.EadIngestOperation op,
Set<String> excludes,
String logMessage)
Synchronise an archival scope from EAD files.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
EagImporter.extractUnit(Map<String,Object> itemData) |
Repository |
EagImporter.importItem(Map<String,Object> itemData) |
Repository |
EagImporter.importItem(Map<String,Object> itemData,
List<String> idPath) |
Modifier and Type | Method and Description |
---|---|
ImportLog |
BatchOperations.batchImport(InputStream inputStream,
Actioner actioner,
Optional<String> logMessage)
Create or update a batch of items.
|
ImportLog |
BatchOperations.batchUpdate(InputStream inputStream,
Actioner actioner,
Optional<String> logMessage)
Update a batch of items.
|
Modifier and Type | Method and Description |
---|---|
int |
LinkResolver.solveUndeterminedRelationships(Described unit) |
Modifier and Type | Method and Description |
---|---|
ImportLog |
AbstractImportManager.importArchive(org.apache.commons.compress.archivers.ArchiveInputStream stream,
String logMessage) |
ImportLog |
ImportManager.importArchive(org.apache.commons.compress.archivers.ArchiveInputStream stream,
String logMessage)
Import multiple items via an archive input stream.
|
ImportLog |
AbstractImportManager.importFile(String filePath,
String logMessage) |
ImportLog |
ImportManager.importFile(String filePath,
String logMessage)
Import a file by specifying its path.
|
ImportLog |
AbstractImportManager.importFiles(List<String> filePaths,
String logMessage) |
ImportLog |
ImportManager.importFiles(List<String> filePaths,
String logMessage)
Import multiple files via a list of file paths.
|
default ImportLog |
ImportManager.importInputStream(InputStream stream,
String logMessage)
Import an item via an input stream.
|
protected void |
SaxImportManager.importInputStream(InputStream stream,
String tag,
ActionManager.EventContext context,
ImportLog log)
Import XML from the given InputStream, as part of the given action.
|
protected abstract void |
AbstractImportManager.importInputStream(InputStream stream,
String tag,
ActionManager.EventContext context,
ImportLog log)
Import an InputStream with an event context.
|
protected void |
CsvImportManager.importInputStream(InputStream stream,
String tag,
ActionManager.EventContext context,
ImportLog log)
Import CSV from the given InputStream, as part of the given action.
|
ImportLog |
AbstractImportManager.importInputStream(InputStream stream,
String tag,
String logMessage) |
ImportLog |
ImportManager.importInputStream(InputStream stream,
String tag,
String logMessage)
Import an item via an input stream.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
ImportHelpers.extractIdentifiers(Map<String,Object> itemData)
Extract DocumentaryUnit properties from the itemData and return them as a new Map.
|
static Map<String,Object> |
ImportHelpers.extractUnknownProperties(Map<String,Object> itemData)
Extract properties from the itemData Map that are marked as unknown, and return them in a new Map.
|
Modifier and Type | Method and Description |
---|---|
<T extends Entity> |
BundleManager.create(Bundle bundle,
Class<T> cls)
Entry-point for creating a bundle.
|
<T extends Entity> |
BundleManager.createOrUpdate(Bundle bundle,
Class<T> cls)
Entry point for creating or updating a bundle, depending on whether it has a supplied id.
|
<T extends Entity> |
BundleManager.update(Bundle bundle,
Class<T> cls)
Entry-point for updating a bundle.
|
Modifier and Type | Method and Description |
---|---|
int |
Linker.createAndLinkRepositoryVocabulary(Repository repository,
Vocabulary vocabulary,
Actioner user)
Populate a pre-created vocabulary with concepts created based on
access points for all collections within a repository, then link
those concepts to the relevant documentary units.
|
List<List<String>> |
FindReplace.findAndReplace(EntityClass contentType,
EntityClass entityType,
String property,
String textToFind,
String replacement,
Actioner actioner,
String logMessage)
Find and replace a string
|
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.