STATE
- the import state@Component public abstract class ImportConfiguratorBase<STATE extends ImportStateBase,SOURCE> extends IoConfiguratorBase implements IImportConfigurator
IImportConfigurator.CHECK, IImportConfigurator.DO_REFERENCES, IImportConfigurator.EDITOR, IImportConfigurator.SOURCE_TYPE
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
ioBeans |
protected java.lang.Class<ICdmImport>[] |
ioClassList |
protected ICdmIO[] |
ioList |
protected Reference |
sourceReference |
authenticationToken, cdmApp, hibernateConfig, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Modifier | Constructor and Description |
---|---|
protected |
ImportConfiguratorBase(IInputTransformer transformer) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.authentication.UsernamePasswordAuthenticationToken |
getAuthenticationToken() |
IImportConfigurator.CHECK |
getCheck() |
java.lang.String |
getClassificationName() |
java.util.UUID |
getClassificationUuid()
If this import implicitly represents a classification in the destination CDM database
one can define the classification's uuid here.
|
Person |
getCommentator() |
protected java.lang.String |
getDateString() |
protected static java.lang.reflect.Method |
getDefaultFunction(java.lang.Class<?> clazz,
java.lang.String methodName) |
ICdmDataSource |
getDestination()
The destination data source for the import
Don't use when using a spring data source
|
java.lang.String |
getDestinationNameString()
A String representation of the destination may it be an import destination and therefore a CDM (e.g.
|
IImportConfigurator.EDITOR |
getEditor() |
java.util.Map<java.lang.Integer,Feature> |
getFeatureMap() |
java.lang.String |
getFeatureTreeTitle() |
java.lang.Class<ICdmImport>[] |
getIoClassList() |
NomenclaturalCode |
getNomenclaturalCode() |
java.util.UUID |
getSecUuid()
If one wants do define the uuid of the accepted taxa (except for missaplied names) this can be
done here
|
SOURCE |
getSource()
Any object that represents the Source.
|
java.lang.String |
getSourceNameString()
A String representation of the used source may it be a source to be imported (e.g.
|
abstract Reference |
getSourceReference()
The reference that represents the source.
|
java.lang.String |
getSourceReferenceTitle() |
java.util.UUID |
getSourceRefUuid() |
java.lang.Object |
getSourceSecId() |
IInputTransformer |
getTransformer()
Returns the transformer used during import
|
java.util.UUID |
getUuidFeatureTree() |
boolean |
isCreateNew()
Defines if the database will be created anew.
|
boolean |
isInteractWithUser() |
boolean |
isOmitTermLoading()
Defines if term loading should take place if a new application controller
is created.
|
boolean |
isRegisterAuditing()
If
false auditing is switched off during import. |
boolean |
isValid() |
protected abstract void |
makeIoClassList() |
void |
setCheck(IImportConfigurator.CHECK check) |
void |
setClassificationName(java.lang.String classificationName)
The classification name for the first classification.
|
void |
setClassificationUuid(java.util.UUID classificationUuid) |
void |
setCommentator(Person commentator) |
void |
setDestination(ICdmDataSource destination) |
void |
setEditor(IImportConfigurator.EDITOR editor) |
void |
setFeatureMap(java.util.Map<java.lang.Integer,Feature> featureMap) |
void |
setFeatureTreeTitle(java.lang.String featureTreeTitle) |
void |
setInteractWithUser(boolean interaction) |
void |
setIoClassList(java.lang.Class<ICdmImport>[] ioClassList) |
void |
setIoClassList(ICdmImport[] ioList) |
void |
setNomenclaturalCode(NomenclaturalCode nomenclaturalCode) |
void |
setRegisterAuditing(boolean registerAuditing) |
void |
setSecUuid(java.util.UUID secUuid) |
void |
setSource(SOURCE source) |
void |
setSourceReference(Reference sourceReference) |
void |
setSourceReferenceTitle(java.lang.String sourceReferenceTitle) |
void |
setSourceRefUuid(java.util.UUID sourceRefUuid) |
void |
setSourceSecId(java.lang.Object sourceSecId) |
void |
setTransformer(IInputTransformer transformer)
Sets the transformer used during import
|
void |
setUuidFeatureTree(java.util.UUID uuidFeatureTree) |
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, getNewState, setDbSchemaValidation
authenticateAsDefaultAdmin, getCdmAppController, getHibernateConfig, getObservers, getProgressMonitor, getUserFriendlyIOName, setAuthentication, setAuthenticationToken, setCdmAppController, setObservers, setProgressMonitor
addObserver, addObservers, countObservers, removeObserver, removeObservers
protected Reference sourceReference
protected java.lang.Class<ICdmImport>[] ioClassList
protected ICdmIO[] ioList
protected java.lang.String[] ioBeans
protected ImportConfiguratorBase(IInputTransformer transformer)
protected abstract void makeIoClassList()
public IInputTransformer getTransformer()
IImportConfigurator
getTransformer
in interface IImportConfigurator
public void setTransformer(IInputTransformer transformer)
IImportConfigurator
setTransformer
in interface IImportConfigurator
public SOURCE getSource()
IImportConfigurator
getSource
in interface IImportConfigurator
public void setSource(SOURCE source)
public boolean isValid()
isValid
in interface IImportConfigurator
public void setIoClassList(ICdmImport[] ioList)
public java.lang.Class<ICdmImport>[] getIoClassList()
getIoClassList
in interface IImportConfigurator
public void setIoClassList(java.lang.Class<ICdmImport>[] ioClassList)
public IImportConfigurator.CHECK getCheck()
getCheck
in interface IImportConfigurator
public void setCheck(IImportConfigurator.CHECK check)
setCheck
in interface IImportConfigurator
public IImportConfigurator.EDITOR getEditor()
getEditor
in interface IImportConfigurator
public void setEditor(IImportConfigurator.EDITOR editor)
setEditor
in interface IImportConfigurator
editor
- sets the way how editing (created, updated) information is handledpublic ICdmDataSource getDestination()
IImportConfigurator
getDestination
in interface IImportConfigurator
public void setDestination(ICdmDataSource destination)
setDestination
in interface IImportConfigurator
public abstract Reference getSourceReference()
IImportConfigurator
getSourceReference
in interface IImportConfigurator
public void setSourceReference(Reference sourceReference)
setSourceReference
in interface IImportConfigurator
public java.lang.String getSourceReferenceTitle()
getSourceReferenceTitle
in interface IImportConfigurator
public void setSourceReferenceTitle(java.lang.String sourceReferenceTitle)
setSourceReferenceTitle
in interface IImportConfigurator
public Person getCommentator()
getCommentator
in interface IImportConfigurator
public void setCommentator(Person commentator)
setCommentator
in interface IImportConfigurator
public NomenclaturalCode getNomenclaturalCode()
getNomenclaturalCode
in interface IImportConfigurator
public void setNomenclaturalCode(NomenclaturalCode nomenclaturalCode)
setNomenclaturalCode
in interface IImportConfigurator
public java.util.UUID getClassificationUuid()
IImportConfigurator
getClassificationUuid
in interface IImportConfigurator
public void setClassificationUuid(java.util.UUID classificationUuid)
setClassificationUuid
in interface IImportConfigurator
public java.util.UUID getSecUuid()
IImportConfigurator
getSecUuid
in interface IImportConfigurator
public void setSecUuid(java.util.UUID secUuid)
setSecUuid
in interface IImportConfigurator
public java.lang.Object getSourceSecId()
getSourceSecId
in interface IImportConfigurator
public void setSourceSecId(java.lang.Object sourceSecId)
public java.util.Map<java.lang.Integer,Feature> getFeatureMap()
public void setFeatureMap(java.util.Map<java.lang.Integer,Feature> featureMap)
protected static java.lang.reflect.Method getDefaultFunction(java.lang.Class<?> clazz, java.lang.String methodName)
public java.lang.String getDestinationNameString()
IIoConfigurator
getDestinationNameString
in interface IIoConfigurator
public java.lang.String getSourceNameString()
IIoConfigurator
getSourceNameString
in interface IIoConfigurator
public void setClassificationName(java.lang.String classificationName)
classificationName
- the classificationName to setpublic java.lang.String getClassificationName()
public java.util.UUID getSourceRefUuid()
public void setSourceRefUuid(java.util.UUID sourceRefUuid)
public boolean isOmitTermLoading()
IImportConfigurator
isOmitTermLoading
in interface IImportConfigurator
public boolean isCreateNew()
IImportConfigurator
isCreateNew
in interface IImportConfigurator
public org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthenticationToken()
getAuthenticationToken
in interface IIoConfigurator
getAuthenticationToken
in class IoConfiguratorBase
public boolean isInteractWithUser()
public void setInteractWithUser(boolean interaction)
public java.util.UUID getUuidFeatureTree()
public void setUuidFeatureTree(java.util.UUID uuidFeatureTree)
public java.lang.String getFeatureTreeTitle()
public void setFeatureTreeTitle(java.lang.String featureTreeTitle)
protected java.lang.String getDateString()
public boolean isRegisterAuditing()
false
auditing is switched off during import.
This is only applicable if an own application context is started
for the import/export. For imports into/from running application contexts
it has no affect.public void setRegisterAuditing(boolean registerAuditing)
isRegisterAuditing()
Copyright © 2007-2020 EDIT. All Rights Reserved.