public class EagImporter extends AbstractImporter<Map<String,Object>,Repository>
| Modifier and Type | Field and Description |
|---|---|
static String |
MAINTENANCE_NOTES |
static String |
PRIORITY |
actioner, framedGraph, log, manager, permissionScope| Constructor and Description |
|---|
EagImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
PermissionScope permissionScope,
Actioner actioner,
ImportLog log)
Construct an EagImporter object.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
extractUnit(Map<String,Object> itemData) |
Repository |
importItem(Map<String,Object> itemData)
Import an item representation into the graph, and return the Node.
|
Repository |
importItem(Map<String,Object> itemData,
List<String> idPath)
Import an item representation into the graph at a certain depth, and return the Node.
|
addCallback, addErrorCallback, getActioner, getPermissionScope, getPersister, getPersister, handleCallbacks, handleErrorpublic static final String MAINTENANCE_NOTES
public static final String PRIORITY
public EagImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
PermissionScope permissionScope,
Actioner actioner,
ImportLog log)
framedGraph - The graph instancepermissionScope - A permission scope, e.g. a countrylog - An import log instancepublic Repository importItem(Map<String,Object> itemData, List<String> idPath) throws ValidationError
ItemImporteritemData - the item representation to importidPath - parent identifiers for ID generation,
not including permission scopeValidationError - when the item representation does not validatepublic Map<String,Object> extractUnit(Map<String,Object> itemData) throws ValidationError
ValidationErrorpublic Repository importItem(Map<String,Object> itemData) throws ValidationError
ItemImporteritemData - A data treeValidationError - when the item representation does not validateCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.