public class ImportDeduplicationHelper<STATE extends ImportStateBase>
extends java.lang.Object
Constructor and Description |
---|
ImportDeduplicationHelper() |
ImportDeduplicationHelper(ICdmRepository repository) |
Modifier and Type | Method and Description |
---|---|
AgentBase<?> |
getExistingAgent(STATE state,
AgentBase<?> agent) |
<T extends TeamOrPersonBase<?>> |
getExistingAuthor(STATE state,
T author) |
Collection |
getExistingCollection(STATE state,
Collection collection) |
Rights |
getExistingCopyright(STATE state,
Rights right) |
<NAME extends INonViralName> |
getExistingName(STATE state,
NAME name) |
Reference |
getExistingReference(STATE state,
Reference ref) |
static ImportDeduplicationHelper<?> |
NewInstance(ICdmRepository repository) |
static <STATE extends ImportStateBase<?,?>> |
NewInstance(ICdmRepository repository,
STATE state) |
static ImportDeduplicationHelper<?> |
NewStandaloneInstance() |
void |
replaceAuthorNamesAndNomRef(STATE state,
INonViralName name)
This method replaces name authors, nomenclatural reference and
nomenclatural reference author by existing authors and references
if matching authors or references exist.
|
void |
restartSession() |
void |
restartSession(ICdmRepository repository,
ImportResult importResult) |
public ImportDeduplicationHelper(ICdmRepository repository)
public ImportDeduplicationHelper()
public static ImportDeduplicationHelper<?> NewInstance(ICdmRepository repository)
public static ImportDeduplicationHelper<?> NewStandaloneInstance()
public static <STATE extends ImportStateBase<?,?>> ImportDeduplicationHelper<STATE> NewInstance(ICdmRepository repository, STATE state)
repository
- state
- not used, only for correct casting of genericspublic void restartSession()
public void restartSession(ICdmRepository repository, ImportResult importResult)
public void replaceAuthorNamesAndNomRef(STATE state, INonViralName name)
state
- the import statename
- the name with authors and references to replacepublic <T extends TeamOrPersonBase<?>> T getExistingAuthor(STATE state, T author)
state
- combAuthor
- public Collection getExistingCollection(STATE state, Collection collection)
public <NAME extends INonViralName> NAME getExistingName(STATE state, NAME name)
Copyright © 2007-2020 EDIT. All Rights Reserved.