public class VirtualEadImporter extends EadImporter
the archdesc should describe the purpose of this vc. it can not in itself refer to a DU.
every c level is either 1) a virtual level (=VirtualLevel), or 2) it points to an existing DocumentaryUnit (=VirtualReferrer) (and consequently to the entire subtree beneath it) 1) there is no repository-tag with a ehri-label
2) there is exactly one repository-tag with an ehri-label <repository label="ehri_repository_vc">il-002777</repository> (this will not be shown in the portal) and exactly one unitid with a ehri-main-identifier label, that is identical to the existing unitid within the graph for this repository
all other tags will be ignored, since the DocumentsDescription of the referred DocumentaryUnit will be shown. there should not be any c-levels beneath such a c-level
ACCESS_POINT
actioner, framedGraph, log, manager, permissionScope
Constructor and Description |
---|
VirtualEadImporter(com.tinkerpop.frames.FramedGraph<?> graph,
PermissionScope permissionScope,
Actioner actioner,
ImportLog log)
Construct a VirtualEadImporter object.
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<Map<String,Object>> |
extractRelations(Map<String,Object> data) |
AbstractUnit |
importItem(Map<String,Object> itemData)
Import an item representation into the graph, and return the Node.
|
AbstractUnit |
importItem(Map<String,Object> itemData,
List<String> idPath)
Import a single archdesc or c01-12 item, keeping a reference to the hierarchical depth.
|
getDescription, mergeWithPreviousAndSave
addCallback, addErrorCallback, getActioner, getPermissionScope, getPersister, getPersister, handleCallbacks, handleError
public VirtualEadImporter(com.tinkerpop.frames.FramedGraph<?> graph, PermissionScope permissionScope, Actioner actioner, ImportLog log)
graph
- the framed graphpermissionScope
- the permission scopelog
- the import logpublic AbstractUnit importItem(Map<String,Object> itemData, List<String> idPath) throws ValidationError
importItem
in interface ItemImporter<Map<String,Object>,AbstractUnit>
importItem
in class EadImporter
itemData
- The data mapidPath
- The identifiers of parent documents, not including those of the overall permission scopeValidationError
- when the itemData does not contain an identifier for the unit or...protected Iterable<Map<String,Object>> extractRelations(Map<String,Object> data)
extractRelations
in class EadImporter
public AbstractUnit importItem(Map<String,Object> itemData) throws ValidationError
ItemImporter
importItem
in interface ItemImporter<Map<String,Object>,AbstractUnit>
importItem
in class EadImporter
itemData
- the item representation to importValidationError
- when the item representation does not validateCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.