CONFIG
- STATE
- public abstract class StreamImportBase<CONFIG extends StreamImportConfiguratorBase,STATE extends StreamImportStateBase<CONFIG,StreamImportBase>> extends CdmImportBase<CONFIG,STATE>
CdmImportBase.TermMatchMode
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 |
---|
StreamImportBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalizeStream(IItemStream itemStream,
STATE state) |
protected abstract IPartitionableConverter<StreamItem,IReader<CdmBase>,java.lang.String> |
getConverter(TermUri namespace,
STATE state) |
ExtensionType |
getExtensionType(STATE state,
java.util.UUID uuid,
java.lang.String label,
java.lang.String description,
java.lang.String labelAbbrev) |
Feature |
getFeature(STATE state,
java.util.UUID uuid,
java.lang.String label,
java.lang.String description,
java.lang.String labelAbbrev,
TermVocabulary<Feature> voc)
Returns a feature for a given uuid by first checking if the uuid has already been used in this import, if not
checking if the feature exists in the database, if not creating it anew (with vocabulary etc.).
|
Language |
getLanguage(STATE state,
java.util.UUID uuid,
java.lang.String label,
java.lang.String description,
java.lang.String labelAbbrev,
TermVocabulary voc)
If uuid is null a random one is created.
|
MarkerType |
getMarkerType(STATE state,
java.util.UUID uuid,
java.lang.String label,
java.lang.String description,
java.lang.String labelAbbrev) |
NamedArea |
getNamedArea(STATE state,
java.util.UUID namedAreaUuid,
java.lang.String label,
java.lang.String description,
java.lang.String abbrevLabel,
TermVocabulary voc) |
PresenceAbsenceTerm |
getPresenceTerm(STATE state,
java.util.UUID statusUuid,
java.lang.String label,
java.lang.String description,
java.lang.String labelAbbrev,
boolean isAbsenceTerm) |
protected IIdentifiableEntityService |
getServiceByClass(java.lang.Class<?> clazz)
Returns an appropriate service to persist data of a certain class.
|
protected void |
handleSingleRecord(STATE state,
IItemStream recordStream) |
protected void |
makeSourceRef(STATE state) |
protected void |
save(CdmBase cdmBase,
STATE state,
java.lang.String location) |
void |
saveNewTerm(DefinedTermBase newTerm)
Saves a new term.
|
addOriginalSource, addOriginalSource, doubleFromString, fillMissingEpithets, fillMissingEpithetsForTaxa, getAcceptedTaxon, getAnnotationType, getByteArray, getDefaultResult, getDefaultTaxonDescription, getExtensionType, getFeature, getFeaturePlaceholder, getIdentiferType, getImageMedia, getImageMedia, getImageMedia, getKindOfUnit, getLanguage, getMarkedTaxonDescription, getMarkerType, getMarkerType, getMarkerType, getMeasurementUnit, getModifier, getNamedArea, getNamedArea, getNamedArea, getNamedAreaLevel, getNoDataResult, getNomenclaturalStatusType, 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, doCheck, doInvoke, fire, fireProgressEvent, fireWarningEvent, fireWarningEvent, getInstance, getObservers, getSuccessString, invoke, isBlank, isIgnore, 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
invoke
check, countSteps, fire, updateProgress, updateProgress, warnProgress
addObserver, addObservers, countObservers, getObservers, removeObserver, removeObservers
protected void makeSourceRef(STATE state)
protected void handleSingleRecord(STATE state, IItemStream recordStream)
state
- itemStream
- protected void finalizeStream(IItemStream itemStream, STATE state)
itemStream
- state
- protected abstract IPartitionableConverter<StreamItem,IReader<CdmBase>,java.lang.String> getConverter(TermUri namespace, STATE state)
protected IIdentifiableEntityService getServiceByClass(java.lang.Class<?> clazz) throws java.lang.IllegalArgumentException
IllegalArgumentException
is thrown.
TODO move to a more general place to make it available to everyone.app
- clazz
- java.lang.IllegalArgumentException
public void saveNewTerm(DefinedTermBase newTerm)
newTerm
- public Feature getFeature(STATE state, java.util.UUID uuid, java.lang.String label, java.lang.String description, java.lang.String labelAbbrev, TermVocabulary<Feature> voc)
CdmImportBase
null
no feature is created.getFeature
in class CdmImportBase<CONFIG extends StreamImportConfiguratorBase,STATE extends StreamImportStateBase<CONFIG,StreamImportBase>>
public Language getLanguage(STATE state, java.util.UUID uuid, java.lang.String label, java.lang.String description, java.lang.String labelAbbrev, TermVocabulary voc)
getLanguage
in class CdmImportBase<CONFIG extends StreamImportConfiguratorBase,STATE extends StreamImportStateBase<CONFIG,StreamImportBase>>
public NamedArea getNamedArea(STATE state, java.util.UUID namedAreaUuid, java.lang.String label, java.lang.String description, java.lang.String abbrevLabel, TermVocabulary voc)
public MarkerType getMarkerType(STATE state, java.util.UUID uuid, java.lang.String label, java.lang.String description, java.lang.String labelAbbrev)
getMarkerType
in class CdmImportBase<CONFIG extends StreamImportConfiguratorBase,STATE extends StreamImportStateBase<CONFIG,StreamImportBase>>
CdmImportBase.getMarkerType(ImportStateBase, UUID, String, String, String, TermVocabulary, Language)
public ExtensionType getExtensionType(STATE state, java.util.UUID uuid, java.lang.String label, java.lang.String description, java.lang.String labelAbbrev)
getExtensionType
in class CdmImportBase<CONFIG extends StreamImportConfiguratorBase,STATE extends StreamImportStateBase<CONFIG,StreamImportBase>>
public PresenceAbsenceTerm getPresenceTerm(STATE state, java.util.UUID statusUuid, java.lang.String label, java.lang.String description, java.lang.String labelAbbrev, boolean isAbsenceTerm)
getPresenceTerm
in class CdmImportBase<CONFIG extends StreamImportConfiguratorBase,STATE extends StreamImportStateBase<CONFIG,StreamImportBase>>
Copyright © 2007-2020 EDIT. All Rights Reserved.