public class CsvAuthoritativeItemImporter extends AbstractImporter<Map<String,Object>,AuthoritativeItem>
actioner, framedGraph, log, manager, permissionScope
Constructor and Description |
---|
CsvAuthoritativeItemImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph,
PermissionScope permissionScope,
Actioner actioner,
ImportLog log) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
extractUnit(Map<String,Object> itemData) |
protected Map<String,Object> |
extractUnitDescription(Map<String,Object> itemData,
EntityClass entityClass) |
AuthoritativeItem |
importItem(Map<String,Object> itemData)
Import an item representation into the graph, and return the Node.
|
AuthoritativeItem |
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, handleError
public CsvAuthoritativeItemImporter(com.tinkerpop.frames.FramedGraph<?> framedGraph, PermissionScope permissionScope, Actioner actioner, ImportLog log)
public AuthoritativeItem importItem(Map<String,Object> itemData) throws ValidationError
ItemImporter
itemData
- the item representation to importValidationError
- when the item representation does not validatepublic AuthoritativeItem importItem(Map<String,Object> itemData, List<String> idPath) throws ValidationError
ItemImporter
itemData
- the item representation to importidPath
- parent identifiers for ID generation,
not including permission scopeValidationError
- when the item representation does not validateCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.