|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.nuiton.web.struts2.BaseAction
fr.ifremer.echobase.ui.actions.EchoBaseActionSupport
fr.ifremer.echobase.ui.actions.dbeditor.AbstractLoadPage
fr.ifremer.echobase.ui.actions.dbeditor.ImportTable
public class ImportTable
To import datas from import file.
FIXME 20111117 sletellier : extendsLoadEntities find a better way to redirect to dbeditor page on validation error
UPDATE 20111118 sletellier : with @InputConfig probleme is solve ? dbeditor root page is prepared only on validation error...
| Field Summary | |
|---|---|
protected boolean |
createIfNotFound
Flag to authorize to create an entity if not found in db. |
protected File |
importFile
WTF ? |
protected String |
importFileContentType
WTF ? |
protected String |
importFileFileName
WTF ? |
| Fields inherited from class fr.ifremer.echobase.ui.actions.dbeditor.AbstractLoadPage |
|---|
entityType, entityTypes, tableMeta |
| 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 | |
|---|---|
ImportTable()
|
|
| Method Summary | |
|---|---|
String |
execute()
|
File |
getImportFile()
|
String |
getImportFileContentType()
|
String |
getImportFileFileName()
|
CsvImportResult |
getResult()
|
String |
input()
|
boolean |
isCreateIfNotFound()
|
void |
setCreateIfNotFound(boolean createIfNotFound)
|
void |
setImportFile(File importFile)
|
void |
setImportFileContentType(String importFileContentType)
|
void |
setImportFileFileName(String importFileFileName)
|
| Methods inherited from class fr.ifremer.echobase.ui.actions.dbeditor.AbstractLoadPage |
|---|
getColumnMetas, getEntityType, getEntityTypes, load, setEntityType |
| Methods inherited from class fr.ifremer.echobase.ui.actions.EchoBaseActionSupport |
|---|
copyFile, decorate, decorateEnums, formatDate, formatMonth, getActionContext, getApplicationVersion, getConfiguration, getDateFormat, getDecoratorService, getEchoBaseApplicationContext, getEchoBaseSession, getMonthFormat, getServiceContext, getServiceFactory, getTransaction, isAdmin, 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 |
|---|
protected File importFile
protected boolean createIfNotFound
protected String importFileContentType
protected String importFileFileName
| Constructor Detail |
|---|
public ImportTable()
| Method Detail |
|---|
public CsvImportResult getResult()
public File getImportFile()
public void setImportFile(File importFile)
public String getImportFileContentType()
public void setImportFileContentType(String importFileContentType)
public String getImportFileFileName()
public void setImportFileFileName(String importFileFileName)
public boolean isCreateIfNotFound()
public void setCreateIfNotFound(boolean createIfNotFound)
public String input()
throws Exception
input in class com.opensymphony.xwork2.ActionSupportException
public String execute()
throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||