eu.etaxonomy.cdm.io.common
Class IoConfiguratorBase

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.ObservableBase
      extended by eu.etaxonomy.cdm.io.common.IoConfiguratorBase
All Implemented Interfaces:
IIoConfigurator, IIoObservable
Direct Known Subclasses:
ExportConfiguratorBase, ImportConfiguratorBase

public abstract class IoConfiguratorBase
extends ObservableBase
implements IIoConfigurator, IIoObservable

Base class for all import/export configurators.

Author:
a.babadshanjan

Field Summary
protected  CdmApplicationController cdmApp
           
 
Constructor Summary
IoConfiguratorBase()
           
 
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
 IProgressMonitor getProgressMonitor()
          Returns the progress monitor.
 boolean isUseClassification()
           
 void setAuthentication(String login, String password)
           
 void setAuthenticationToken(org.springframework.security.authentication.UsernamePasswordAuthenticationToken authenticationToken)
           
 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 setProgressMonitor(IProgressMonitor monitor)
          Sets the progress monitor.
 void setUseClassification(boolean useClassification)
           
 
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.IIoConfigurator
getDestinationNameString, getObservers, getSourceNameString, setObservers
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoObservable
addObserver, addObservers, countObservers, removeObserver, removeObservers
 

Field Detail

cdmApp

protected CdmApplicationController cdmApp
Constructor Detail

IoConfiguratorBase

public IoConfiguratorBase()
Method Detail

getDbSchemaValidation

public DbSchemaValidation getDbSchemaValidation()
Description copied from interface: IIoConfigurator
Get the way how the CDM schema is validated

Specified by:
getDbSchemaValidation in interface IIoConfigurator
Returns:
See Also:
DbSchemaValidation

setDbSchemaValidation

public void setDbSchemaValidation(DbSchemaValidation dbSchemaValidation)
Description copied from interface: IIoConfigurator
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

Specified by:
setDbSchemaValidation in interface IIoConfigurator
See Also:
DbSchemaValidation

getCdmAppController

public CdmApplicationController getCdmAppController()
Description copied from interface: IIoConfigurator
Returns the CdmApplicationController

Specified by:
getCdmAppController in interface IIoConfigurator
Returns:

setCdmAppController

public void setCdmAppController(CdmApplicationController cdmApp)
Description copied from interface: IIoConfigurator
Sets the CdmApplicationController

Specified by:
setCdmAppController in interface IIoConfigurator
Parameters:
cdmApp - the cdmApp to set

isUseClassification

public boolean isUseClassification()
Returns:
the useClassification

setUseClassification

public void setUseClassification(boolean useClassification)
Parameters:
useClassification - the useClassification to set

setProgressMonitor

public void setProgressMonitor(IProgressMonitor monitor)
Description copied from interface: IIoConfigurator
Sets the progress monitor.

Specified by:
setProgressMonitor in interface IIoConfigurator
See Also:
IIoConfigurator.getProgressMonitor()

getProgressMonitor

public IProgressMonitor getProgressMonitor()
Description copied from interface: IIoConfigurator
Returns the progress monitor.

Specified by:
getProgressMonitor in interface IIoConfigurator
Returns:

getAuthenticationToken

public org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthenticationToken()
Specified by:
getAuthenticationToken in interface IIoConfigurator

setAuthenticationToken

public void setAuthenticationToken(org.springframework.security.authentication.UsernamePasswordAuthenticationToken authenticationToken)
Specified by:
setAuthenticationToken in interface IIoConfigurator

setAuthentication

public void setAuthentication(String login,
                              String password)
Specified by:
setAuthentication in interface IIoConfigurator

authenticateAsDefaultAdmin

public void authenticateAsDefaultAdmin()
Description copied from interface: IIoConfigurator
Creates the UsernamePasswordAuthenticationToken for the default admin.

Specified by:
authenticateAsDefaultAdmin in interface IIoConfigurator
See Also:
Configuration.adminLogin, Configuration.adminPassword


Copyright © 2007-2013 EDIT. All Rights Reserved.