eu.etaxonomy.cdm.io.common
Class ExportConfiguratorBase<DESTINATION,STATE extends ExportStateBase,TRANSFORM extends IExportTransformer>

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.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

Nested Class Summary
 
Nested classes/interfaces inherited from interface eu.etaxonomy.cdm.io.common.IExportConfigurator
IExportConfigurator.CHECK, IExportConfigurator.DO_REFERENCES
 
Field Summary
protected  Class<ICdmIO>[] ioClassList
           
protected  IDatabase sourceReference
           
 
Fields inherited from class eu.etaxonomy.cdm.io.common.IoConfiguratorBase
cdmApp
 
Constructor Summary
ExportConfiguratorBase(TRANSFORM transformer)
           
 
Method Summary
 CdmApplicationController getCdmAppController(boolean createNew)
          Returns a CdmApplicationController created by the values of this configuration.
 CdmApplicationController getCdmAppController(boolean createNew, boolean omitTermLoading)
          Returns a CdmApplicationController created by the values of this configuration.
 IExportConfigurator.CHECK getCheck()
           
 DESTINATION getDestination()
           
 Class<ICdmIO>[] getIoClassList()
           
 CdmApplicationController getNewCdmAppController()
          Returns a new instance of CdmApplicationController created by the values of this configuration.
 ICdmDataSource getSource()
          The CDM data source for the export Don't use when using a spring data source
 String getSourceNameString()
          A String representation of the used source may it be a source to be imported (e.g.
 IDatabase getSourceReference()
           
 TRANSFORM getTransformer()
           
 boolean isValid()
           
protected abstract  void makeIoClassList()
           
 void setCheck(IExportConfigurator.CHECK check)
           
 void setDestination(DESTINATION destination)
           
 void setSource(ICdmDataSource source)
           
 void setTransformer(TRANSFORM transformer)
           
 
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 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.IExportConfigurator
getNewState
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoConfigurator
authenticateAsDefaultAdmin, getAuthenticationToken, getCdmAppController, getDbSchemaValidation, getDestinationNameString, getObservers, getProgressMonitor, setAuthentication, setAuthenticationToken, setCdmAppController, setDbSchemaValidation, setObservers, setProgressMonitor
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoObservable
addObserver, addObservers, countObservers, removeObserver, removeObservers
 

Field Detail

sourceReference

protected IDatabase sourceReference

ioClassList

protected Class<ICdmIO>[] ioClassList
Constructor Detail

ExportConfiguratorBase

public ExportConfiguratorBase(TRANSFORM transformer)
Method Detail

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.