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.service.csv.in.CsvImportResult<EchoBaseUserEntityEnum> |
getResult() |
String |
input() |
boolean |
isCreateIfNotFound() |
void |
setCreateIfNotFound(boolean createIfNotFound) |
void |
setImportFile(File importFile) |
void |
setImportFileContentType(String importFileContentType) |
void |
setImportFileFileName(String importFileFileName) |
getColumnMetas, getEntityType, getEntityTypes, load, setEntityTypeaddFlashError, addFlashMessage, addFlashWarning, formatDate, formatMonth, getDocumentation, getDocumentation, getEchoBaseApplicationContext, getEchoBaseSession, getServiceContext, newServiceaddActionError, 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
@Inject protected transient ImportService importService
public org.nuiton.topia.service.csv.in.CsvImportResult<EchoBaseUserEntityEnum> 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.ActionSupportExceptionCopyright © 2011–2014 Ifremer. All rights reserved.