public class ImportTable extends AbstractLoadPage
LoadEntities 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...| Modifier and Type | Field and Description |
|---|---|
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 ?
|
protected ImportService |
importService |
dbEditorService, entityType, entityTypes, tableMeta| Constructor and Description |
|---|
ImportTable() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
Exception |
getError() |
String |
getErrorStack() |
File |
getImportFile() |
String |
getImportFileContentType() |
String |
getImportFileFileName() |
org.nuiton.topia.persistence.csv.in.CsvImportResult<EchoBaseEntityEnum> |
getResult() |
String |
input() |
boolean |
isCreateIfNotFound() |
void |
setCreateIfNotFound(boolean createIfNotFound) |
void |
setImportFile(File importFile) |
void |
setImportFileContentType(String importFileContentType) |
void |
setImportFileFileName(String importFileFileName) |
void |
setImportService(ImportService importService) |
getColumnMetas, getEntityType, getEntityTypes, load, setDbEditorService, setEntityTypeaddFlashError, addFlashMessage, addFlashWarning, formatDate, formatMonth, getDocumentation, getDocumentation, getEchoBaseApplicationContext, getEchoBaseSession, getServiceContext, newService, setApplicationContext, setEchoBaseSession, setServiceContextaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected File importFile
protected boolean createIfNotFound
protected String importFileContentType
protected String importFileFileName
protected transient ImportService importService
public org.nuiton.topia.persistence.csv.in.CsvImportResult<EchoBaseEntityEnum> 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 Exception getError()
public String getErrorStack()
public String input() throws Exception
input in class com.opensymphony.xwork2.ActionSupportExceptionpublic String execute() throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionpublic void setImportService(ImportService importService)
Copyright © 2011–2013 Ifremer. All rights reserved.