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  ImportDataConfiguration model
          Import data configuration to push in session.
protected  String voyageId
          Id of selected voyage used in import.
 
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
protected  void copyFile(InputFile inputFile, File dataDirectory)
           
 String execute()
           
 ImportDataConfiguration getModel()
           
 String getVoyageId()
           
 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 setLectureAgeGen(File file)
           
 void setLectureAgeGenContentType(String contentType)
           
 void setLectureAgeGenFileName(String fileName)
           
 void setTypeEchoSpecies(File file)
           
 void setTypeEchoSpeciesContentType(String contentType)
           
 void setTypeEchoSpeciesFileName(String fileName)
           
 void setVoyageId(String voyageId)
           
 
Methods inherited from class fr.ifremer.echobase.ui.actions.EchoBaseActionSupport
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.


voyageId

protected String voyageId
Id of selected voyage used in import.

Constructor Detail

ConfigureFiles

public ConfigureFiles()
Method Detail

setVoyageId

public void setVoyageId(String voyageId)

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)

getVoyageId

public String getVoyageId()

getModel

public ImportDataConfiguration getModel()

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

copyFile

protected void copyFile(InputFile inputFile,
                        File dataDirectory)
                 throws IOException
Throws:
IOException


Copyright © 2011 Ifremer. All Rights Reserved.