com.gisgraphy.webapp.action
Class ImportConfirmAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by com.gisgraphy.webapp.action.ImportConfirmAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable

public class ImportConfirmAction
extends com.opensymphony.xwork2.ActionSupport

Action that retrieve the configuration and

Author:
David Masclet
See Also:
ImporterManager, Serialized Form

Field Summary
static java.lang.String STATUS
           
static java.lang.String STEP_BASE_VIEW_NAME
           
 int step_number
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ImportConfirmAction()
           
 
Method Summary
 java.lang.String disableGeonamesImporter()
          Disable Geonames importer
 java.lang.String disableOpenStreetMapImporter()
          Disable OpenStreetMap importer
 java.lang.String enableGeonamesImporter()
          Enable Geonames importer
 java.lang.String enableOpenStreetMapImporter()
          Enable OpenStreetMap importer
 java.lang.String execute()
           
 java.util.Map<java.lang.String,java.lang.String> getConfigValuesMap()
           
 java.lang.String getErrorMessage()
           
 java.lang.String getFulltextSearchEngineURL()
           
 ImporterConfig getImporterConfig()
           
 boolean isDownloadDirectoryAccessible()
           
 boolean isFulltextSearchEngineAlive()
           
 boolean isGeonamesImporterEnabled()
           
 boolean isOpenStreetMapDownloadDirectoryAccessible()
           
 boolean isOpenStreetMapImporterEnabled()
           
 boolean isRegexpCorrects()
           
 void setFullTextSearchEngine(IFullTextSearchEngine fullTextSearchEngine)
           
 void setImporterConfig(ImporterConfig importerConfig)
           
 void setImporterManager(IImporterManager importerManager)
           
 java.lang.String step1()
           
 java.lang.String step2()
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS

public static final java.lang.String STATUS
See Also:
Constant Field Values

STEP_BASE_VIEW_NAME

public static final java.lang.String STEP_BASE_VIEW_NAME
See Also:
Constant Field Values

step_number

public int step_number
Constructor Detail

ImportConfirmAction

public ImportConfirmAction()
Method Detail

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
java.lang.Exception

step1

public java.lang.String step1()
                       throws java.lang.Exception
Throws:
java.lang.Exception

step2

public java.lang.String step2()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getImporterConfig

public ImporterConfig getImporterConfig()
Returns:
the importerConfig

isDownloadDirectoryAccessible

public boolean isDownloadDirectoryAccessible()
Returns:
true if the directory with the file to import exists and is accessible

isOpenStreetMapDownloadDirectoryAccessible

public boolean isOpenStreetMapDownloadDirectoryAccessible()
Returns:
true if the directory with the file to import exists and is accessible

isRegexpCorrects

public boolean isRegexpCorrects()
Returns:
true if the regexp of the feature class/ code are correct

isFulltextSearchEngineAlive

public boolean isFulltextSearchEngineAlive()
Returns:
true if he fulltext search engine is alive

getFulltextSearchEngineURL

public java.lang.String getFulltextSearchEngineURL()
Returns:
true if he fulltext search engine is alive

isGeonamesImporterEnabled

public boolean isGeonamesImporterEnabled()
Returns:
true if he Geonames importer is enabled

disableGeonamesImporter

public java.lang.String disableGeonamesImporter()
Disable Geonames importer


enableGeonamesImporter

public java.lang.String enableGeonamesImporter()
Enable Geonames importer


isOpenStreetMapImporterEnabled

public boolean isOpenStreetMapImporterEnabled()
Returns:
true if he openStreetMap importer is enabled

disableOpenStreetMapImporter

public java.lang.String disableOpenStreetMapImporter()
Disable OpenStreetMap importer


enableOpenStreetMapImporter

public java.lang.String enableOpenStreetMapImporter()
Enable OpenStreetMap importer


setImporterManager

public void setImporterManager(IImporterManager importerManager)
Parameters:
importerManager - the importerManager to set

setFullTextSearchEngine

public void setFullTextSearchEngine(IFullTextSearchEngine fullTextSearchEngine)
Parameters:
fullTextSearchEngine - the fullTextSearchEngine to set

getConfigValuesMap

public java.util.Map<java.lang.String,java.lang.String> getConfigValuesMap()

setImporterConfig

public void setImporterConfig(ImporterConfig importerConfig)
Parameters:
importerConfig - the importerConfig to set

getErrorMessage

public java.lang.String getErrorMessage()


Copyright © 2010. All Rights Reserved.