public class TropicosNameImportConfigurator extends CsvImportConfiguratorBase
IImportConfigurator.CHECK, IImportConfigurator.DO_REFERENCES, IImportConfigurator.EDITOR, IImportConfigurator.SOURCE_TYPE
ioBeans, ioClassList, ioList, sourceReference
authenticationToken, cdmApp, hibernateConfig, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassificationName()
If
isCreateTaxa() is true and if no
parent node uuid is given
the taxon to be created will be imported into a newly created
classification with the given classification name. |
TropicosNameImportState |
getNewState()
Factory method.
|
java.util.UUID |
getParentNodeUuid()
If
isCreateTaxa() is true the taxon
to be created will be imported below the taxon node
with the given taxon node uuid. |
boolean |
isAddAuthorsToReference()
If
true the name authors will be added
to the nomenclatural reference (Book or Article) though
it might not be the exact same author.Default is true |
boolean |
isAllowIpniDuplicates()
If
false and if the name has an IPNI ID
and if this IPNI ID already exists in the database or in previously
imported data the import of the given record will be stopped. |
boolean |
isAllowTropicosDuplicates()
If
false and if the name has a Tropicos ID
and if this Tropicos ID already exists in the database or in previously
imported data the import of the given record will be stopped. |
boolean |
isAllowWfoDuplicates()
If
false and if the name has a World Flora Online (WFO) ID
and if this WFO ID already exists in the database or in previously
imported data the import of the given record will be stopped. |
boolean |
isCreateTaxa()
If
true additional to the name a
taxon is created. |
boolean |
isReportDuplicateIdentifier()
|
boolean |
isUnplaced()
If taxa are created (
isCreateTaxa() should the according
taxon nodes be marked as unplaced? |
protected void |
makeIoClassList() |
static TropicosNameImportConfigurator |
NewInstance(java.io.InputStreamReader inputStream,
ICdmDataSource cdmDestination) |
static TropicosNameImportConfigurator |
NewInstance(java.net.URI uri,
ICdmDataSource cdmDestination) |
void |
setAddAuthorsToReference(boolean addAuthorsToReference) |
void |
setAllowIpniDuplicates(boolean allowIpniDuplicates) |
void |
setAllowTropicosDuplicates(boolean allowTropicosDuplicates) |
void |
setAllowWfoDuplicates(boolean allowWfoDuplicates) |
void |
setClassificationName(java.lang.String classificationName)
The classification name for the first classification.
|
void |
setCreateTaxa(boolean createTaxa)
|
void |
setParentNodeUuid(java.util.UUID parentNodeUuid) |
void |
setReportDuplicateIdentifier(boolean reportDuplicateIdentifier) |
void |
setUnplaced(boolean unplaced) |
getFieldSeparator, getSourceReference, getTransactionLineCount, newInputStream, setFieldSeparator, setTransactionLineCount
getAuthenticationToken, getCheck, getClassificationUuid, getCommentator, getDateString, getDefaultFunction, getDestination, getDestinationNameString, getEditor, getFeatureMap, getFeatureTreeTitle, getIoClassList, getNomenclaturalCode, getSecUuid, getSource, getSourceNameString, getSourceReferenceTitle, getSourceRefUuid, getSourceSecId, getTransformer, getUuidFeatureTree, isCreateNew, isInteractWithUser, isOmitTermLoading, isRegisterAuditing, isValid, setCheck, setClassificationUuid, setCommentator, setDestination, setEditor, setFeatureMap, setFeatureTreeTitle, setInteractWithUser, setIoClassList, setIoClassList, setNomenclaturalCode, setRegisterAuditing, setSecUuid, setSource, setSourceReference, setSourceReferenceTitle, setSourceRefUuid, setSourceSecId, setTransformer, setUuidFeatureTree
authenticateAsDefaultAdmin, getCdmAppController, getDbSchemaValidation, getHibernateConfig, getProgressMonitor, getUserFriendlyIOName, isUseClassification, setAuthentication, setAuthenticationToken, setCdmAppController, setDbSchemaValidation, setProgressMonitor, setUseClassification, setUserFriendlyIOName
addObserver, addObservers, countObservers, fire, fireWarningEvent, fireWarningEvent, getObservers, removeObserver, removeObservers, setObservers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDbSchemaValidation, setDbSchemaValidation
authenticateAsDefaultAdmin, getCdmAppController, getHibernateConfig, getObservers, getProgressMonitor, getUserFriendlyIOName, setAuthentication, setAuthenticationToken, setCdmAppController, setObservers, setProgressMonitor
addObserver, addObservers, countObservers, removeObserver, removeObservers
public static TropicosNameImportConfigurator NewInstance(java.io.InputStreamReader inputStream, ICdmDataSource cdmDestination)
inputStream
- object
- public static TropicosNameImportConfigurator NewInstance(java.net.URI uri, ICdmDataSource cdmDestination) throws java.io.IOException
java.io.IOException
protected void makeIoClassList()
makeIoClassList
in class ImportConfiguratorBase<CsvImportState<CsvImportConfiguratorBase>,java.io.InputStreamReader>
public TropicosNameImportState getNewState()
CsvImportConfiguratorBase
getNewState
in interface IImportConfigurator
getNewState
in class CsvImportConfiguratorBase
public boolean isCreateTaxa()
true
additional to the name a
taxon is created. Depending on further parameters
getParentNodeUuid()
and/or getClassificationName()
it is decided where to put the taxon in a classification.true
if a taxon is to be created.public void setCreateTaxa(boolean createTaxa)
public java.util.UUID getParentNodeUuid()
isCreateTaxa()
is true
the taxon
to be created will be imported below the taxon node
with the given taxon node uuid.public void setParentNodeUuid(java.util.UUID parentNodeUuid)
public java.lang.String getClassificationName()
isCreateTaxa()
is true
and if no
parent node uuid
is given
the taxon to be created will be imported into a newly created
classification with the given classification name.getClassificationName
in class ImportConfiguratorBase<CsvImportState<CsvImportConfiguratorBase>,java.io.InputStreamReader>
public void setClassificationName(java.lang.String classificationName)
ImportConfiguratorBase
setClassificationName
in class ImportConfiguratorBase<CsvImportState<CsvImportConfiguratorBase>,java.io.InputStreamReader>
classificationName
- the classificationName to setpublic boolean isUnplaced()
isCreateTaxa()
should the according
taxon nodes be marked as unplaced?isCreateTaxa()
,
getClassificationName()
,
getParentNodeUuid()
public void setUnplaced(boolean unplaced)
public boolean isAllowTropicosDuplicates()
false
and if the name has a Tropicos ID
and if this Tropicos ID already exists in the database or in previously
imported data the import of the given record will be stopped.true
if Tropicos duplicates are allowed for this importpublic void setAllowTropicosDuplicates(boolean allowTropicosDuplicates)
isAllowTropicosDuplicates()
public boolean isAllowIpniDuplicates()
false
and if the name has an IPNI ID
and if this IPNI ID already exists in the database or in previously
imported data the import of the given record will be stopped.true
if IPNI duplicates are allowed for this importpublic void setAllowIpniDuplicates(boolean allowIpniDuplicates)
isAllowIpniDuplicates()
public boolean isAllowWfoDuplicates()
false
and if the name has a World Flora Online (WFO) ID
and if this WFO ID already exists in the database or in previously
imported data the import of the given record will be stopped.true
if WFO duplicates are allowed for this importpublic void setAllowWfoDuplicates(boolean allowWfoDuplicates)
allowWfoDuplicates
- isAllowWfoDuplicates()
public boolean isAddAuthorsToReference()
true
the name authors will be added
to the nomenclatural reference (Book or Article) though
it might not be the exact same author.true
public void setAddAuthorsToReference(boolean addAuthorsToReference)
isAddAuthorsToReference()
public boolean isReportDuplicateIdentifier()
true
duplicate identifiers like
Tropicos IDs
IPNI IDs
or
WFO IDs
will be reported.
This is only relevant if duplicates are allowed,
otherwise the duplicates will be reported anyway.public void setReportDuplicateIdentifier(boolean reportDuplicateIdentifier)
isReportDuplicateIdentifier()
Copyright © 2007-2020 EDIT. All Rights Reserved.