fr.ifremer.echobase.ui.actions.importData
Class ConfigureFiles

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by fr.ifremer.echobase.ui.actions.EchoBaseActionSupport
              extended by fr.ifremer.echobase.ui.actions.importData.ConfigureFiles
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.nuiton.topia.framework.TopiaTransactionAware

public class ConfigureFiles
extends EchoBaseActionSupport
implements com.opensymphony.xwork2.Preparable

Action to load input files to import.

Since:
0.2
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  Map<String,String> importDataModes
          Universe of possible import modes.
protected  String missionId
          Id of selected voyage used in import.
protected  ImportDataConfiguration model
          Import data configuration to push in session.
 
Fields inherited from class fr.ifremer.echobase.ui.actions.EchoBaseActionSupport
APPLICATION_CONTEXT_PARAMETER, serviceContext, serviceFactory, SESSION_PARAMETER, transaction
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ConfigureFiles()
           
 
Method Summary
 String execute()
           
 ImportDataMode getImportDataMode()
           
 Map<String,String> getImportDataModes()
           
 String getMissionId()
           
 ImportDataConfiguration getModel()
           
 String input()
           
 void prepare()
           
 void setAcoustic(File file)
           
 void setAcousticContentType(String contentType)
           
 void setAcousticFileName(String fileName)
           
 void setCapture(File file)
           
 void setCaptureContentType(String contentType)
           
 void setCaptureFileName(String fileName)
           
 void setEvents(File file)
           
 void setEventsContentType(String contentType)
           
 void setEventsFileName(String fileName)
           
 void setImportDataMode(ImportDataMode importDataMode)
           
 void setLectureAgeGen(File file)
           
 void setLectureAgeGenContentType(String contentType)
           
 void setLectureAgeGenFileName(String fileName)
           
 void setMissionId(String missionId)
           
 void setTypeEchoSpecies(File file)
           
 void setTypeEchoSpeciesContentType(String contentType)
           
 void setTypeEchoSpeciesFileName(String fileName)
           
 
Methods inherited from class fr.ifremer.echobase.ui.actions.EchoBaseActionSupport
copyFile, decorate, formatDate, formatMonth, getActionContext, getApplicationVersion, getConfiguration, getDateFormat, getDecoratorService, getEchoBaseApplicationContext, getEchoBaseSession, getMonthFormat, getServiceContext, getServiceFactory, getTransaction, newService, setTransaction, sortAndDecorate
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_
 
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, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected ImportDataConfiguration model
Import data configuration to push in session.


missionId

protected String missionId
Id of selected voyage used in import.


importDataModes

protected Map<String,String> importDataModes
Universe of possible import modes.

Constructor Detail

ConfigureFiles

public ConfigureFiles()
Method Detail

setMissionId

public void setMissionId(String missionId)

setImportDataMode

public void setImportDataMode(ImportDataMode importDataMode)

setAcoustic

public void setAcoustic(File file)

setAcousticContentType

public void setAcousticContentType(String contentType)

setAcousticFileName

public void setAcousticFileName(String fileName)

setCapture

public void setCapture(File file)

setCaptureContentType

public void setCaptureContentType(String contentType)

setCaptureFileName

public void setCaptureFileName(String fileName)

setLectureAgeGen

public void setLectureAgeGen(File file)

setLectureAgeGenContentType

public void setLectureAgeGenContentType(String contentType)

setLectureAgeGenFileName

public void setLectureAgeGenFileName(String fileName)

setEvents

public void setEvents(File file)

setEventsContentType

public void setEventsContentType(String contentType)

setEventsFileName

public void setEventsFileName(String fileName)

setTypeEchoSpecies

public void setTypeEchoSpecies(File file)

setTypeEchoSpeciesContentType

public void setTypeEchoSpeciesContentType(String contentType)

setTypeEchoSpeciesFileName

public void setTypeEchoSpeciesFileName(String fileName)

getMissionId

public String getMissionId()

getImportDataMode

public ImportDataMode getImportDataMode()

getModel

public ImportDataConfiguration getModel()

getImportDataModes

public Map<String,String> getImportDataModes()

input

public String input()
             throws Exception
Overrides:
input in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

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

prepare

public void prepare()
             throws Exception
Specified by:
prepare in interface com.opensymphony.xwork2.Preparable
Throws:
Exception


Copyright © 2011-2012 Ifremer. All Rights Reserved.