com.gisgraphy.webapp.action
Class ImportConfirmAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
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, Serializable
public class ImportConfirmAction
- extends com.opensymphony.xwork2.ActionSupport
Action that retrieve the configuration and
- Author:
- David Masclet
- See Also:
ImporterManager
,
Serialized Form
Fields inherited from class com.opensymphony.xwork2.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork2.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
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 |
IMPORT_VIEW_NAME
protected static final String IMPORT_VIEW_NAME
- See Also:
- Constant Field Values
CHECK_CONFIG_VIEW_NAME
protected static final String CHECK_CONFIG_VIEW_NAME
- See Also:
- Constant Field Values
STATUS
public static final String STATUS
- See Also:
- Constant Field Values
STEP_BASE_VIEW_NAME
public static final String STEP_BASE_VIEW_NAME
- See Also:
- Constant Field Values
ImportConfirmAction
public ImportConfirmAction()
execute
public String execute()
throws Exception
- Specified by:
execute
in interface com.opensymphony.xwork2.Action
- Overrides:
execute
in class com.opensymphony.xwork2.ActionSupport
- Throws:
Exception
checkConfig
public String checkConfig()
getPlacetypesList
public FeatureCode[] getPlacetypesList()
doImport
public String doImport()
getNumberOfProcessors
public int getNumberOfProcessors()
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 String getFulltextSearchEngineURL()
- Returns:
- true if he fulltext search engine is alive
isGeonamesImporterEnabled
public boolean isGeonamesImporterEnabled()
- Returns:
- true if he Geonames importer is enabled
setGeonamesImporterEnabled
public void setGeonamesImporterEnabled(boolean geonamesImporterEnabled)
- Enable / Disable Geonames importer
isOpenStreetMapImporterEnabled
public boolean isOpenStreetMapImporterEnabled()
- Returns:
- true if he openStreetMap importer is enabled
setOpenStreetMapImporterEnabled
public void setOpenStreetMapImporterEnabled(boolean openStreetMapImporter)
- Enable / Disable OpenStreetMap importer
setImporterManager
public void setImporterManager(IImporterManager importerManager)
- Parameters:
importerManager
- the importerManager to set
setFullTextSearchEngine
public void setFullTextSearchEngine(com.gisgraphy.fulltext.IFullTextSearchEngine fullTextSearchEngine)
- Parameters:
fullTextSearchEngine
- the fullTextSearchEngine to set
setImporterConfig
public void setImporterConfig(ImporterConfig importerConfig)
getConfigValuesMap
public Map<String,String> getConfigValuesMap()
getErrorMessage
public String getErrorMessage()
isImportallcountries
public boolean isImportallcountries()
setImportallcountries
public void setImportallcountries(boolean importallcountries)
isImportallplacetype
public boolean isImportallplacetype()
setImportallplacetype
public void setImportallplacetype(boolean importallplacetype)
setPlacetypes
public void setPlacetypes(List<String> placetypes)
getPlacetypes
public List<String> getPlacetypes()
getCountryCodes
public List<String> getCountryCodes()
setCountryCodes
public void setCountryCodes(List<String> countryCodes)
getStep
public int getStep()
setStep
public void setStep(int step)
isImportEmbededAlternateNames
public boolean isImportEmbededAlternateNames()
setImportEmbededAlternateNames
public void setImportEmbededAlternateNames(boolean importEmbededAlternateNames)
isFillIsInEnabled
public boolean isFillIsInEnabled()
setFillIsInEnabled
public void setFillIsInEnabled(boolean fillIsInEnabled)
isRetrieveFileEnable
public boolean isRetrieveFileEnable()
setRetrieveFileEnable
public void setRetrieveFileEnable(boolean isRetrieveFileEnable)
isConfigOk
public boolean isConfigOk()
Copyright © 2012. All Rights Reserved.