com.gisgraphy.webapp.action
Class ImportAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by com.gisgraphy.webapp.action.ImportAction
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 ImportAction
extends com.opensymphony.xwork2.ActionSupport

Action that do the all import

Author:
David Masclet
See Also:
ImporterManager, Serialized Form

Field Summary
static java.lang.String WAIT
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ImportAction()
           
 
Method Summary
 java.lang.String doImport()
          Run import if not in progress or already done, otherwise return Wait view
 java.lang.String doWait()
           
 java.lang.String execute()
           
 IImporterManager getImporterManager()
           
 java.util.List<ImporterStatusDto> getImporterStatusDtoList()
           
 void setImporterManager(IImporterManager importerManager)
           
 java.lang.String status()
           
 
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, 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

WAIT

public static java.lang.String WAIT
Constructor Detail

ImportAction

public ImportAction()
Method Detail

doImport

public java.lang.String doImport()
                          throws java.lang.Exception
Run import if not in progress or already done, otherwise return Wait view

Returns:
'success'
Throws:
java.lang.Exception - When errors occurred

doWait

public java.lang.String doWait()
                        throws java.lang.Exception
Returns:
'Wait'
Throws:
java.lang.Exception - if errors occurred

status

public java.lang.String status()
                        throws java.lang.Exception
Returns:
'Wait'
Throws:
java.lang.Exception - if errors occurred

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

setImporterManager

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

getImporterStatusDtoList

public java.util.List<ImporterStatusDto> getImporterStatusDtoList()
Returns:
the importerStatusDtoList

getImporterManager

public IImporterManager getImporterManager()
Returns:
the importerManager


Copyright © 2009. All Rights Reserved.