eu.etaxonomy.cdm.io.common
Class ExportConfiguratorBase<DESTINATION,STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
java.lang.Object
eu.etaxonomy.cdm.io.common.ObservableBase
eu.etaxonomy.cdm.io.common.IoConfiguratorBase
eu.etaxonomy.cdm.io.common.ExportConfiguratorBase<DESTINATION,STATE,TRANSFORM>
- All Implemented Interfaces:
- IExportConfigurator<STATE,TRANSFORM>, IIoConfigurator, IIoObservable
- Direct Known Subclasses:
- DbExportConfiguratorBase, JaxbExportConfigurator, XmlExportConfiguratorBase
public abstract class ExportConfiguratorBase<DESTINATION,STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
- extends IoConfiguratorBase
- implements IExportConfigurator<STATE,TRANSFORM>
- Author:
- a.babadshanjan
| Methods inherited from class eu.etaxonomy.cdm.io.common.IoConfiguratorBase |
authenticateAsDefaultAdmin, getAuthenticationToken, getCdmAppController, getDbSchemaValidation, getProgressMonitor, isUseClassification, setAuthentication, setAuthenticationToken, setCdmAppController, setDbSchemaValidation, setProgressMonitor, setUseClassification |
| 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.IIoConfigurator |
authenticateAsDefaultAdmin, getAuthenticationToken, getCdmAppController, getDbSchemaValidation, getDestinationNameString, getObservers, getProgressMonitor, setAuthentication, setAuthenticationToken, setCdmAppController, setDbSchemaValidation, setObservers, setProgressMonitor |
sourceReference
protected IDatabase sourceReference
ioClassList
protected Class<ICdmIO>[] ioClassList
ExportConfiguratorBase
public ExportConfiguratorBase(TRANSFORM transformer)
makeIoClassList
protected abstract void makeIoClassList()
getTransformer
public TRANSFORM getTransformer()
- Specified by:
getTransformer in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
setTransformer
public void setTransformer(TRANSFORM transformer)
- Specified by:
setTransformer in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
getSource
public ICdmDataSource getSource()
- Description copied from interface:
IExportConfigurator
- The CDM data source for the export
Don't use when using a spring data source
- Specified by:
getSource in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
- Returns:
setSource
public void setSource(ICdmDataSource source)
- Specified by:
setSource in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
getDestination
public DESTINATION getDestination()
- Parameters:
source - the source to get
setDestination
public void setDestination(DESTINATION destination)
- Parameters:
source - the source to set
getSourceReference
public IDatabase getSourceReference()
getIoClassList
public Class<ICdmIO>[] getIoClassList()
- Specified by:
getIoClassList in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
getCheck
public IExportConfigurator.CHECK getCheck()
- Specified by:
getCheck in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
setCheck
public void setCheck(IExportConfigurator.CHECK check)
getNewCdmAppController
public CdmApplicationController getNewCdmAppController()
- Returns a new instance of
CdmApplicationController created by the values of this configuration.
- Returns:
getCdmAppController
public CdmApplicationController getCdmAppController(boolean createNew)
- Returns a
CdmApplicationController created by the values of this configuration.
If create new is true always a new controller is returned, else the last created controller is returned. If no controller has
been created before a new controller is returned.
- Returns:
getCdmAppController
public CdmApplicationController getCdmAppController(boolean createNew,
boolean omitTermLoading)
- Returns a
CdmApplicationController created by the values of this configuration.
If create new is true always a new controller is returned, else the last created controller is returned. If no controller has
been created before a new controller is returned.
- Returns:
isValid
public boolean isValid()
- Specified by:
isValid in interface IExportConfigurator<STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>
- Returns:
getSourceNameString
public String getSourceNameString()
- Description copied from interface:
IIoConfigurator
- A String representation of the used source may it be a source to be imported (e.g. "BerlinModel Cichorieae Database")
or a source to be exported (e.g. "CDM Cichorieae Database")
- Specified by:
getSourceNameString in interface IIoConfigurator
- Returns:
- String representing the source for the io
Copyright © 2007-2013 EDIT. All Rights Reserved.