eu.etaxonomy.cdm.io.berlinModel.in
Class BerlinModelImportConfigurator

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.ObservableBase
      extended by eu.etaxonomy.cdm.io.common.IoConfiguratorBase
          extended by eu.etaxonomy.cdm.io.common.ImportConfiguratorBase<STATE,Source>
              extended by eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase<BerlinModelImportState>
                  extended by eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportConfigurator
All Implemented Interfaces:
IImportConfigurator, IIoConfigurator, IIoObservable

public class BerlinModelImportConfigurator
extends DbImportConfiguratorBase<BerlinModelImportState>
implements IImportConfigurator

Version:
1.0
Author:
a.mueller

Nested Class Summary
 
Nested classes/interfaces inherited from interface eu.etaxonomy.cdm.io.common.IImportConfigurator
IImportConfigurator.CHECK, IImportConfigurator.DO_REFERENCES, IImportConfigurator.EDITOR
 
Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.io.common.ImportConfiguratorBase
ioBeans, ioClassList, ioList, sourceReference
 
Fields inherited from class eu.etaxonomy.cdm.io.common.IoConfiguratorBase
cdmApp
 
Constructor Summary
protected BerlinModelImportConfigurator(Source berlinModelSource, ICdmDataSource destination)
           
 
Method Summary
protected  void addPartialSynonym(Synonym partialSynonym)
           
protected  void addProParteSynonym(Synonym proParteSynonym)
           
 String getAuthorFilter()
           
 String getAuthorTeamFilter()
           
 String getClassificationQuery()
           
 String getCommonNameFilter()
           
 IImportConfigurator.DO_REFERENCES getDoReferences()
           
 String getFactFilter()
           
 String getInfrGenericRankAbbrev()
           
 String getInfrSpecificRankAbbrev()
           
 Method getMakeUrlForTaxon()
           
 int getMaximumNumberOfNameFacts()
           
 File getMediaPath()
           
 URL getMediaUrl()
           
 String getNameIdTable()
           
 Method getNamerelationshipTypeMethod()
           
 Method getNameTypeDesignationStatusMethod()
           
 BerlinModelImportState getNewState()
          Factory method.
 String getOccurrenceFilter()
           
 String getOccurrenceSourceFilter()
           
 String getReferenceIdTable()
           
 String getRelTaxaIdQuery()
           
 BerlinModelTaxonImport.PublishMarkerChooser getTaxonPublishMarker()
           
 String getTaxonTable()
           
 Method getUuidForDefTermMethod()
           
 String getWebMarkerFilter()
           
 boolean isAllowInfraSpecTaxonRank()
           
 boolean isDoAuthors()
           
 boolean isDoCommonNames()
           
 boolean isDoFacts()
           
 boolean isDoMarker()
           
 boolean isDoNameFacts()
           
 boolean isDoNameStatus()
           
 boolean isDoOccurrence()
           
 boolean isDoRelNames()
          Import name relationships yes/no?.
 boolean isDoRelTaxa()
           
 boolean isDoTaxa()
           
 boolean isDoTaxonNames()
           
 boolean isDoTypes()
           
 boolean isDoUser()
           
 boolean isIgnore0AuthorTeam()
          If true, an authorTeam with authorTeamId = 0 is not imported (casus Salvador)
 boolean isIncludeAllNonMisappliedRelatedClassifications()
           
 boolean isIncludeFlatClassifications()
           
 boolean isIncludesAreaEmCode()
           
protected  boolean isPartialSynonym(Synonym synonym)
           
protected  boolean isProParteSynonym(Synonym synonym)
           
 boolean isRemoveHttpMapsAnchor()
           
 boolean isSplitTdwgCodes()
           
 boolean isSwitchSpeciesGroup()
           
 boolean isUseSingleClassification()
           
protected  void makeIoClassList()
           
static BerlinModelImportConfigurator NewInstance(Source berlinModelSource, ICdmDataSource destination)
           
 void setAllowInfraSpecTaxonRank(boolean allowInfraSpecTaxonRank)
           
 void setAuthorFilter(String authorFilter)
           
 void setAuthorTeamFilter(String authorTeamFilter)
           
 void setClassificationQuery(String classificationQuery)
           
 void setCommonNameFilter(String commonNameFilter)
           
 void setDoAuthors(boolean doAuthors)
           
 void setDoCommonNames(boolean doCommonNames)
           
 void setDoFacts(boolean doFacts)
           
 void setDoMarker(boolean doMarker)
           
 void setDoNameFacts(boolean doNameFacts)
           
 void setDoNameStatus(boolean doNameStatus)
           
 void setDoOccurrence(boolean doOccurrence)
           
 void setDoReferences(IImportConfigurator.DO_REFERENCES doReferences)
           
 void setDoRelNames(boolean doRelNames)
           
 void setDoRelTaxa(boolean doRelTaxa)
           
 void setDoTaxa(boolean doTaxa)
           
 void setDoTaxonNames(boolean doTaxonNames)
           
 void setDoTypes(boolean doTypes)
           
 void setDoUser(boolean doUser)
           
 void setFactFilter(String factFilter)
           
 void setIgnore0AuthorTeam(boolean isIgnore0AuthorTeam)
           
 void setIncludeAllNonMisappliedRelatedClassifications(boolean includeAllNonMisappliedRelatedClassifications)
           
 void setIncludeFlatClassifications(boolean includeFlatClassifications)
           
 void setIncludesEmCode(boolean includesEmCode)
           
 void setInfrGenericRankAbbrev(String infrGenericRankAbbrev)
           
 void setInfrSpecificRankAbbrev(String infrSpecificRankAbbrev)
           
 void setMakeUrlForTaxon(Method makeUrlForTaxon)
           
 void setMaximumNumberOfNameFacts(int maximumNumberOfNameFacts)
          set to 0 for unlimited
 void setMediaPath(File mediaPath)
           
 void setMediaPath(String mediaPathString)
           
 void setMediaUrl(String mediaUrlString)
           
 void setMediaUrl(URL mediaUrl)
           
 void setNameIdTable(String nameIdTable)
           
 void setNamerelationshipTypeMethod(Method namerelationshipTypeMethod)
           
 void setNameTypeDesignationStatusMethod(Method nameTypeDesignationStatusMethod)
           
 void setOccurrenceFilter(String occurrenceFilter)
           
 void setOccurrenceSourceFilter(String occurrenceSourceFilter)
           
 void setReferenceIdTable(String referenceIdTable)
           
 void setRelTaxaIdQuery(String relTaxaIdQuery)
           
 void setRemoveHttpMapsAnchor(boolean removeHttpMapsAnchor)
           
 void setSplitTdwgCodes(boolean isSplitTdwgCodes)
           
 void setSwitchSpeciesGroup(boolean switchSpeciesGroup)
          If true, the rankId for speicesGroup is changed from 59 to 57 and 59 is used for coll.
 void setTaxonPublishMarker(BerlinModelTaxonImport.PublishMarkerChooser taxonPublishMarker)
           
 void setTaxonTable(String taxonTable)
           
 void setUseSingleClassification(boolean useSingleClassification)
           
 void setUuidForDefTermMethod(Method uuidForDefTermMethod)
           
 void setWebMarkerFilter(String webMarkerFilter)
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase
getRecordsPerTransaction, getSource, getSourceNameString, getSourceReference, getUserTransformationMethod, setRecordsPerTransaction, setSource, setUserTransformationMethod
 
Methods inherited from class eu.etaxonomy.cdm.io.common.ImportConfiguratorBase
getAuthenticationToken, getCheck, getClassificationName, getClassificationUuid, getCommentator, getDefaultFunction, getDestination, getDestinationNameString, getEditor, getFeatureMap, getIoClassList, getNomenclaturalCode, getSecUuid, getSourceReferenceTitle, getSourceRefUuid, getSourceSecId, getTransformer, isCreateNew, isIgnoreNull, isInteractWithUser, isOmitTermLoading, isValid, setCheck, setClassificationName, setClassificationUuid, setCommentator, setDestination, setEditor, setFeatureMap, setIgnoreNull, setInteractWithUser, setIoClassList, setIoClassList, setNomenclaturalCode, setSecUuid, setSourceReference, setSourceReferenceTitle, setSourceRefUuid, setSourceSecId, setTransformer
 
Methods inherited from class eu.etaxonomy.cdm.io.common.IoConfiguratorBase
authenticateAsDefaultAdmin, getCdmAppController, getDbSchemaValidation, getProgressMonitor, isUseClassification, setAuthentication, setAuthenticationToken, setCdmAppController, setDbSchemaValidation, setProgressMonitor, setUseClassification
 
Methods inherited from class eu.etaxonomy.cdm.io.common.ObservableBase
addObserver, addObservers, countObservers, fire, fireWarningEvent, fireWarningEvent, getObservers, removeObserver, removeObservers, setObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IImportConfigurator
getCheck, getClassificationUuid, getCommentator, getDbSchemaValidation, getDestination, getEditor, getIoClassList, getNomenclaturalCode, getSecUuid, getSource, getSourceReference, getSourceReferenceTitle, getSourceSecId, getTransformer, isCreateNew, isIgnoreNull, isOmitTermLoading, isValid, setCheck, setClassificationUuid, setCommentator, setDbSchemaValidation, setDestination, setEditor, setIgnoreNull, setNomenclaturalCode, setSecUuid, setSourceReference, setSourceReferenceTitle, setTransformer
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoConfigurator
authenticateAsDefaultAdmin, getAuthenticationToken, getCdmAppController, getDestinationNameString, getObservers, getProgressMonitor, getSourceNameString, setAuthentication, setAuthenticationToken, setCdmAppController, setObservers, setProgressMonitor
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoObservable
addObserver, addObservers, countObservers, removeObserver, removeObservers
 

Constructor Detail

BerlinModelImportConfigurator

protected BerlinModelImportConfigurator(Source berlinModelSource,
                                        ICdmDataSource destination)
Parameters:
berlinModelSource -
sourceReference -
destination -
Method Detail

NewInstance

public static BerlinModelImportConfigurator NewInstance(Source berlinModelSource,
                                                        ICdmDataSource destination)

makeIoClassList

protected void makeIoClassList()
Specified by:
makeIoClassList in class ImportConfiguratorBase<BerlinModelImportState,Source>

getNewState

public BerlinModelImportState getNewState()
Description copied from interface: IImportConfigurator
Factory method. Creates a new state for the import type and adds this configuration to it.

Specified by:
getNewState in interface IImportConfigurator
Returns:

isDoRelNames

public boolean isDoRelNames()
Import name relationships yes/no?.

Returns:

setDoRelNames

public void setDoRelNames(boolean doRelNames)

addProParteSynonym

protected void addProParteSynonym(Synonym proParteSynonym)

isProParteSynonym

protected boolean isProParteSynonym(Synonym synonym)

addPartialSynonym

protected void addPartialSynonym(Synonym partialSynonym)

isPartialSynonym

protected boolean isPartialSynonym(Synonym synonym)

getMediaUrl

public URL getMediaUrl()
Returns:
the mediaUrl

setMediaUrl

public void setMediaUrl(URL mediaUrl)
Parameters:
mediaUrl - the mediaUrl to set

getMediaPath

public File getMediaPath()
Returns:
the mediaPath

setMediaPath

public void setMediaPath(File mediaPath)
Parameters:
mediaPath - the mediaPath to set

setMediaPath

public void setMediaPath(String mediaPathString)

setMediaUrl

public void setMediaUrl(String mediaUrlString)

getMaximumNumberOfNameFacts

public int getMaximumNumberOfNameFacts()
Returns:
the maximumNumberOfNameFacts

setMaximumNumberOfNameFacts

public void setMaximumNumberOfNameFacts(int maximumNumberOfNameFacts)
set to 0 for unlimited

Parameters:
maximumNumberOfNameFacts - the maximumNumberOfNameFacts to set

isIgnore0AuthorTeam

public boolean isIgnore0AuthorTeam()
If true, an authorTeam with authorTeamId = 0 is not imported (casus Salvador)

Returns:
the isIgnore0AuthorTeam

setIgnore0AuthorTeam

public void setIgnore0AuthorTeam(boolean isIgnore0AuthorTeam)
Parameters:
isIgnore0AuthorTeam - the isIgnore0AuthorTeam to set

getNamerelationshipTypeMethod

public Method getNamerelationshipTypeMethod()
Returns:
the namerelationshipTypeMethod

setNamerelationshipTypeMethod

public void setNamerelationshipTypeMethod(Method namerelationshipTypeMethod)
Parameters:
namerelationshipTypeMethod - the namerelationshipTypeMethod to set

getTaxonPublishMarker

public BerlinModelTaxonImport.PublishMarkerChooser getTaxonPublishMarker()
Returns:
the taxonPublishMarker

setTaxonPublishMarker

public void setTaxonPublishMarker(BerlinModelTaxonImport.PublishMarkerChooser taxonPublishMarker)
Parameters:
taxonPublishMarker - the taxonPublishMarker to set

getUuidForDefTermMethod

public Method getUuidForDefTermMethod()
Returns:
the uuidForDefTermMethod

setUuidForDefTermMethod

public void setUuidForDefTermMethod(Method uuidForDefTermMethod)
Parameters:
uuidForDefTermMethod - the uuidForDefTermMethod to set

getNameTypeDesignationStatusMethod

public Method getNameTypeDesignationStatusMethod()
Returns:
the nameTypeDesignationStatusMethod

setNameTypeDesignationStatusMethod

public void setNameTypeDesignationStatusMethod(Method nameTypeDesignationStatusMethod)
Parameters:
nameTypeDesignationStatusMethod - the nameTypeDesignationStatusMethod to set

isDoNameStatus

public boolean isDoNameStatus()

setDoNameStatus

public void setDoNameStatus(boolean doNameStatus)

isDoCommonNames

public boolean isDoCommonNames()

setDoCommonNames

public void setDoCommonNames(boolean doCommonNames)
Parameters:
doCommonNames -

isDoFacts

public boolean isDoFacts()

setDoFacts

public void setDoFacts(boolean doFacts)

isDoOccurrence

public boolean isDoOccurrence()

setDoOccurrence

public void setDoOccurrence(boolean doOccurrence)

isDoMarker

public boolean isDoMarker()

setDoMarker

public void setDoMarker(boolean doMarker)

isDoUser

public boolean isDoUser()

setDoUser

public void setDoUser(boolean doUser)

isDoNameFacts

public boolean isDoNameFacts()

setDoNameFacts

public void setDoNameFacts(boolean doNameFacts)

isDoAuthors

public boolean isDoAuthors()

setDoAuthors

public void setDoAuthors(boolean doAuthors)

getDoReferences

public IImportConfigurator.DO_REFERENCES getDoReferences()

setDoReferences

public void setDoReferences(IImportConfigurator.DO_REFERENCES doReferences)

isDoTaxonNames

public boolean isDoTaxonNames()

setDoTaxonNames

public void setDoTaxonNames(boolean doTaxonNames)

isDoTypes

public boolean isDoTypes()

setDoTypes

public void setDoTypes(boolean doTypes)

isDoTaxa

public boolean isDoTaxa()

setDoTaxa

public void setDoTaxa(boolean doTaxa)

isDoRelTaxa

public boolean isDoRelTaxa()

setDoRelTaxa

public void setDoRelTaxa(boolean doRelTaxa)

getTaxonTable

public String getTaxonTable()

setTaxonTable

public void setTaxonTable(String taxonTable)
Parameters:
taxonTable - the taxonTable to set

getClassificationQuery

public String getClassificationQuery()

setClassificationQuery

public void setClassificationQuery(String classificationQuery)
Parameters:
classificationQuery - the classificationQuery to set

setRelTaxaIdQuery

public void setRelTaxaIdQuery(String relTaxaIdQuery)
Parameters:
relTaxaIdQuery - the relTaxaIdQuery to set

getRelTaxaIdQuery

public String getRelTaxaIdQuery()

getNameIdTable

public String getNameIdTable()
Returns:
the nameIdTable

setNameIdTable

public void setNameIdTable(String nameIdTable)
Parameters:
nameIdTable - the nameIdTable to set

setReferenceIdTable

public void setReferenceIdTable(String referenceIdTable)

getReferenceIdTable

public String getReferenceIdTable()

setFactFilter

public void setFactFilter(String factFilter)

getFactFilter

public String getFactFilter()

getOccurrenceFilter

public String getOccurrenceFilter()

setOccurrenceFilter

public void setOccurrenceFilter(String occurrenceFilter)

getCommonNameFilter

public String getCommonNameFilter()

setCommonNameFilter

public void setCommonNameFilter(String commonNameFilter)

getOccurrenceSourceFilter

public String getOccurrenceSourceFilter()

setOccurrenceSourceFilter

public void setOccurrenceSourceFilter(String occurrenceSourceFilter)

getWebMarkerFilter

public String getWebMarkerFilter()

setWebMarkerFilter

public void setWebMarkerFilter(String webMarkerFilter)

isUseSingleClassification

public boolean isUseSingleClassification()

setUseSingleClassification

public void setUseSingleClassification(boolean useSingleClassification)

setAuthorTeamFilter

public void setAuthorTeamFilter(String authorTeamFilter)

getAuthorTeamFilter

public String getAuthorTeamFilter()

getAuthorFilter

public String getAuthorFilter()

setAuthorFilter

public void setAuthorFilter(String authorFilter)

isSwitchSpeciesGroup

public boolean isSwitchSpeciesGroup()

setSwitchSpeciesGroup

public void setSwitchSpeciesGroup(boolean switchSpeciesGroup)
If true, the rankId for speicesGroup is changed from 59 to 57 and 59 is used for coll. species instead

Parameters:
switchSpeciesGroup -

isSplitTdwgCodes

public boolean isSplitTdwgCodes()

setSplitTdwgCodes

public void setSplitTdwgCodes(boolean isSplitTdwgCodes)

getMakeUrlForTaxon

public Method getMakeUrlForTaxon()

setMakeUrlForTaxon

public void setMakeUrlForTaxon(Method makeUrlForTaxon)

getInfrGenericRankAbbrev

public String getInfrGenericRankAbbrev()

setInfrGenericRankAbbrev

public void setInfrGenericRankAbbrev(String infrGenericRankAbbrev)

getInfrSpecificRankAbbrev

public String getInfrSpecificRankAbbrev()

setInfrSpecificRankAbbrev

public void setInfrSpecificRankAbbrev(String infrSpecificRankAbbrev)

isRemoveHttpMapsAnchor

public boolean isRemoveHttpMapsAnchor()

setRemoveHttpMapsAnchor

public void setRemoveHttpMapsAnchor(boolean removeHttpMapsAnchor)

isIncludeFlatClassifications

public boolean isIncludeFlatClassifications()

setIncludeFlatClassifications

public void setIncludeFlatClassifications(boolean includeFlatClassifications)

isIncludesAreaEmCode

public boolean isIncludesAreaEmCode()

setIncludesEmCode

public void setIncludesEmCode(boolean includesEmCode)

isAllowInfraSpecTaxonRank

public boolean isAllowInfraSpecTaxonRank()

setAllowInfraSpecTaxonRank

public void setAllowInfraSpecTaxonRank(boolean allowInfraSpecTaxonRank)

isIncludeAllNonMisappliedRelatedClassifications

public boolean isIncludeAllNonMisappliedRelatedClassifications()

setIncludeAllNonMisappliedRelatedClassifications

public void setIncludeAllNonMisappliedRelatedClassifications(boolean includeAllNonMisappliedRelatedClassifications)


Copyright © 2007-2013 EDIT. All Rights Reserved.