eu.etaxonomy.cdm.io.common
Interface IIoConfigurator

All Superinterfaces:
IIoObservable
All Known Subinterfaces:
IExportConfigurator<STATE,TRANSFORM>, IImportConfigurator
All Known Implementing Classes:
Abcd206ImportConfigurator, BerlinModelExportConfigurator, BerlinModelImportConfigurator, CacheUpdaterConfigurator, CsvTaxExportConfiguratorRedlist, DbExportConfiguratorBase, DbImportConfiguratorBase, DistributionImportConfigurator, DwcaImportConfigurator, DwcaTaxExportConfigurator, EndnoteImportConfigurator, ExcelImportConfiguratorBase, ExportConfiguratorBase, IkeyPlusImportConfigurator, ImportConfiguratorBase, IoConfiguratorBase, JaxbExportConfigurator, JaxbImportConfigurator, MarkupImportConfigurator, NormalExplicitImportConfigurator, PilotOutputExportConfigurator, SDDExportConfigurator, SDDImportConfigurator, SpecimenCdmExcelImportConfigurator, SpecimenSynthesysExcelImportConfigurator, TaxonXImportConfigurator, TcsRdfImportConfigurator, TcsXmlExportConfigurator, TcsXmlImportConfigurator, XmlExportConfiguratorBase, XmlImportConfiguratorBase

public interface IIoConfigurator
extends IIoObservable

Author:
a.babadshanjan

Method Summary
 void authenticateAsDefaultAdmin()
          Creates the UsernamePasswordAuthenticationToken for the default admin.
 org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthenticationToken()
           
 CdmApplicationController getCdmAppController()
          Returns the CdmApplicationController
 DbSchemaValidation getDbSchemaValidation()
          Get the way how the CDM schema is validated
 String getDestinationNameString()
          A String representation of the destination may it be an import destination and therefore a CDM (e.g.
 Set<IIoObserver> getObservers()
          Returns the observers for this import/export
 IProgressMonitor getProgressMonitor()
          Returns the progress monitor.
 String getSourceNameString()
          A String representation of the used source may it be a source to be imported (e.g.
 void setAuthentication(String login, String password)
           
 void setAuthenticationToken(org.springframework.security.authentication.UsernamePasswordAuthenticationToken token)
           
 void setCdmAppController(CdmApplicationController cdmApp)
          Sets the CdmApplicationController
 void setDbSchemaValidation(DbSchemaValidation dbSchemaValidation)
          Get the way how the CDM schema is validated For exports values that delete the source (CREATE, CREATE_DROP) are not allowed and may throw an Exception in the further run
 void setObservers(Set<IIoObserver> observers)
          Sets the observers for this import/export
 void setProgressMonitor(IProgressMonitor monitor)
          Sets the progress monitor.
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoObservable
addObserver, addObservers, countObservers, removeObserver, removeObservers
 

Method Detail

getSourceNameString

String getSourceNameString()
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")

Returns:
String representing the source for the io

getDestinationNameString

String getDestinationNameString()
A String representation of the destination may it be an import destination and therefore a CDM (e.g. CDM Cichorieae Database) or an export destination (e.g. CDM XML)

Returns:

getCdmAppController

CdmApplicationController getCdmAppController()
Returns the CdmApplicationController

Returns:

setCdmAppController

void setCdmAppController(CdmApplicationController cdmApp)
Sets the CdmApplicationController

Parameters:
cdmApp - the cdmApp to set

getDbSchemaValidation

DbSchemaValidation getDbSchemaValidation()
Get the way how the CDM schema is validated

Returns:
See Also:
DbSchemaValidation

setDbSchemaValidation

void setDbSchemaValidation(DbSchemaValidation dbSchemaValidation)
Get the way how the CDM schema is validated For exports values that delete the source (CREATE, CREATE_DROP) are not allowed and may throw an Exception in the further run

Parameters:
dbSchemaValidation -
See Also:
DbSchemaValidation

getProgressMonitor

IProgressMonitor getProgressMonitor()
Returns the progress monitor.

Returns:

setProgressMonitor

void setProgressMonitor(IProgressMonitor monitor)
Sets the progress monitor.

Parameters:
monitor -
See Also:
getProgressMonitor()

getObservers

Set<IIoObserver> getObservers()
Returns the observers for this import/export

Specified by:
getObservers in interface IIoObservable
Returns:

setObservers

void setObservers(Set<IIoObserver> observers)
Sets the observers for this import/export

Parameters:
observers -

getAuthenticationToken

org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthenticationToken()

setAuthenticationToken

void setAuthenticationToken(org.springframework.security.authentication.UsernamePasswordAuthenticationToken token)

setAuthentication

void setAuthentication(String login,
                       String password)

authenticateAsDefaultAdmin

void authenticateAsDefaultAdmin()
Creates the UsernamePasswordAuthenticationToken for the default admin.

See Also:
Configuration.adminLogin, Configuration.adminPassword


Copyright © 2007-2013 EDIT. All Rights Reserved.