@Component public class SpecimenCdmExcelImport extends ExcelTaxonOrSpecimenImportBase<SpecimenCdmExcelImportState,SpecimenCdmExcelImportConfigurator,SpecimenRow> implements ICdmIO<SpecimenCdmExcelImportState>
ExcelTaxonOrSpecimenImportBase.KeyValue, ExcelTaxonOrSpecimenImportBase.SourceType
CdmImportBase.TermMatchMode
CDM_UUID_COLUMN, FAMILY_COLUMN, FULL_NAME_COLUMN, GENUS_COLUMN, IGNORE_COLUMN, INFRASPECIFIC_EPITHET_COLUMN, LANGUAGE, RANK_COLUMN, SPECIFIC_EPITHET_COLUMN, TAXON_UUID_COLUMN
SCIENTIFIC_NAME_COLUMN
CREATE, IMAGE_GALLERY, READ_MEDIA_DATA, uuidUserDefinedAnnotationTypeVocabulary, uuidUserDefinedExtensionTypeVocabulary, uuidUserDefinedFeatureVocabulary, uuidUserDefinedIdentifierTypeVocabulary, uuidUserDefinedKindOfUnitVocabulary, uuidUserDefinedLanguageVocabulary, uuidUserDefinedMarkerTypeVocabulary, uuidUserDefinedMeasurementUnitVocabulary, uuidUserDefinedModifierVocabulary, uuidUserDefinedNamedAreaLevelVocabulary, uuidUserDefinedNamedAreaVocabulary, uuidUserDefinedNomenclaturalStatusTypeVocabulary, uuidUserDefinedPresenceAbsenceVocabulary, uuidUserDefinedRankVocabulary, uuidUserDefinedReferenceSystemVocabulary, uuidUserDefinedStateVocabulary, uuidUserDefinedStatisticalMeasureVocabulary, uuidUserDefinedTaxonRelationshipTypeVocabulary
INCLUDE_UNPUBLISHED, ioName, NO_UNPUBLISHED
applicationContext
FEATURE_STORE, NOMREF_STORE, REFERENCE_STORE, SPECIMEN_STORE, TAXON_STORE, TAXONNAME_STORE, TEAM_STORE
Constructor and Description |
---|
SpecimenCdmExcelImport() |
Modifier and Type | Method and Description |
---|---|
protected void |
analyzeSingleValue(ExcelTaxonOrSpecimenImportBase.KeyValue keyValue,
SpecimenCdmExcelImportState state)
Analyzes a single record value and fills the row instance accordingly.
|
protected SpecimenRow |
createDataHolderRow() |
protected boolean |
doCheck(SpecimenCdmExcelImportState state) |
protected void |
firstPass(SpecimenCdmExcelImportState state) |
protected java.lang.String |
getWorksheetName(SpecimenCdmExcelImportConfigurator config)
To define a worksheet name other then the one defined in the configurator
override this method with a non
null return value. |
protected boolean |
isIgnore(SpecimenCdmExcelImportState state)
Returns true if this (IO-)class should be ignored during the import/export process.
|
protected boolean |
needsNomenclaturalCode() |
protected void |
secondPass(SpecimenCdmExcelImportState state) |
analyzeFeatures, analyzeRecord, fireWarningEvent, handleExtensions, isInteger, makeKeyValue
doInvoke, floatString2IntStringValue, floatString2IntValue, getConfigurator, getSourceReference, getTaxonByCdmId, getTimePeriod, getValue, verifyName
addOriginalSource, addOriginalSource, doubleFromString, fillMissingEpithets, fillMissingEpithetsForTaxa, getAcceptedTaxon, getAnnotationType, getByteArray, getDefaultResult, getDefaultTaxonDescription, getExtensionType, getExtensionType, getFeature, getFeature, getFeaturePlaceholder, getIdentiferType, getImageMedia, getImageMedia, getImageMedia, getKindOfUnit, getLanguage, getLanguage, getMarkedTaxonDescription, getMarkerType, getMarkerType, getMarkerType, getMarkerType, getMeasurementUnit, getModifier, getNamedArea, getNamedArea, getNamedArea, getNamedAreaLevel, getNoDataResult, getNomenclaturalStatusType, getPresenceTerm, getPresenceTerm, getRank, getReferenceSystem, getSpecimenDescription, getSpecimenDescription, getStateTerm, getStateTerm, getStatisticalMeasure, getTaxonDescription, getTaxonDescription, getTaxonNameDescription, getTaxonNameDescription, getTaxonRelationshipType, getVocabulary, intFromString, makeTree, makeTreeMemSave, NB, nullSafeBoolean, nullSafeDouble, nullSafeFloat, nullSafeInt, parseAuthorString, saveNameRelations
addObserver, addObservers, check, commitTransaction, countObservers, countSteps, fire, fireProgressEvent, fireWarningEvent, fireWarningEvent, getInstance, getObservers, getSuccessString, invoke, isBlank, isNotBlank, removeObserver, removeObservers, rollbackTransaction, startTransaction, startTransaction, updateProgress, updateProgress, warnProgress
authenticate, clearSession, getAgentService, getAmplificationService, getAnnotationService, getAuthenticationManager, getBean, getClassificationService, getCollectionService, getCommonService, getDatabaseService, getDescriptionService, getDescriptiveDataSetService, getEntityConstraintViolationService, getEntityValidationService, getEventBaseService, getFeatureNodeService, getFeatureTreeService, getGrantedAuthorityService, getGroupService, getIdentificationKeyService, getLocationService, getLongRunningTasksService, getMediaService, getMetadataService, getNameService, getOccurrenceService, getPermissionEvaluator, getPolytomousKeyNodeService, getPolytomousKeyService, getPreferenceService, getPrimerService, getProgressMonitorService, getReferenceService, getRegistrationService, getRightsService, getSequenceService, getSession, getSessionFactory, getTaxonNodeService, getTaxonService, getTermNodeService, getTermService, getTermTreeService, getTransactionManager, getUserService, getVocabularyService, NewConversation, setApplicationContext, setDataSource, setSessionFactory, setTransactionManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
check, countSteps, fire, updateProgress, updateProgress, warnProgress
addObserver, addObservers, countObservers, getObservers, removeObserver, removeObservers
invoke
protected void analyzeSingleValue(ExcelTaxonOrSpecimenImportBase.KeyValue keyValue, SpecimenCdmExcelImportState state)
ExcelTaxonOrSpecimenImportBase
protected void firstPass(SpecimenCdmExcelImportState state)
firstPass
in class ExcelImportBase<SpecimenCdmExcelImportState,SpecimenCdmExcelImportConfigurator,SpecimenRow>
protected void secondPass(SpecimenCdmExcelImportState state)
secondPass
in class ExcelImportBase<SpecimenCdmExcelImportState,SpecimenCdmExcelImportConfigurator,SpecimenRow>
protected java.lang.String getWorksheetName(SpecimenCdmExcelImportConfigurator config)
ExcelImportBase
null
return value.
If null
is returned the first worksheet is taken.getWorksheetName
in class ExcelImportBase<SpecimenCdmExcelImportState,SpecimenCdmExcelImportConfigurator,SpecimenRow>
null if no worksheet is defined.
protected boolean needsNomenclaturalCode()
protected SpecimenRow createDataHolderRow()
protected boolean doCheck(SpecimenCdmExcelImportState state)
doCheck
in class ExcelImportBase<SpecimenCdmExcelImportState,SpecimenCdmExcelImportConfigurator,SpecimenRow>
protected boolean isIgnore(SpecimenCdmExcelImportState state)
CdmIoBase
isIgnore
in class CdmIoBase<SpecimenCdmExcelImportState,ImportResult>
Copyright © 2007-2020 EDIT. All Rights Reserved.