public class EadSync extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
EadSync.EadIngestOperation
An operation that performs the actual ingest, given the
ImportManager
and returning an ImportLog . |
class |
EadSync.EadSyncError
Signal that something has gone wrong with the sync operation.
|
Constructor and Description |
---|
EadSync(com.tinkerpop.frames.FramedGraph<?> graph,
Api api,
PermissionScope scope,
Actioner actioner,
SaxImportManager importManager) |
Modifier and Type | Method and Description |
---|---|
SyncLog |
sync(EadSync.EadIngestOperation op,
Set<String> excludes,
String logMessage)
Synchronise an archival scope from EAD files.
|
public EadSync(com.tinkerpop.frames.FramedGraph<?> graph, Api api, PermissionScope scope, Actioner actioner, SaxImportManager importManager)
public SyncLog sync(EadSync.EadIngestOperation op, Set<String> excludes, String logMessage) throws ValidationError, DeserializationError, IOException, EadSync.EadSyncError
SaxImportManager
instance.
For sync to work correctly the local (scoped) item identifiers must be unique in the scope in which sync is taking place.
op
- the ingest operationlogMessage
- a log message that will be attached to the delete eventSyncLog
instanceEadSync.EadSyncError
- if local identifiers are not uniqueValidationError
DeserializationError
IOException
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.