public abstract class AbstractImportCsvAction extends WaoJspActionSupport
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.collect.ImmutableSet<String> |
CSV_CONTENT_TYPES |
protected File |
csvFile |
protected String |
csvFileContentType |
protected ReferentialService |
service |
applicationConfig, session| Constructor and Description |
|---|
AbstractImportCsvAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute() |
protected abstract String |
getSuccessMessage() |
protected abstract void |
importCsv(InputStream csvInputStream) |
void |
setCsvFile(File csvFile) |
void |
setCsvFileContentType(String csvFileContentType) |
void |
setService(ReferentialService service) |
formatDate, formatDateMonth, formatDateTime, formatDateYear, formatMonth, getAuthenticatedWaoUser, getDefaultCookie, getInstanceDisclaimer, getNow, getObsProgram, getOneYearAgoDatePlaceHolder, getPaginationFirstPage, getPaginationLastPage, getPaginationUrl, getSession, getText, getText, isContactsListFullViewByDefault, isGoogleAnalyticsEnabled, isLocaleFrench, isObsMer, isObsVente, isSamplingPlanFullViewByDefaultgetApplicationConfig, set_, setApplicationConfig, setFragment, setSessionaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected static final com.google.common.collect.ImmutableSet<String> CSV_CONTENT_TYPES
protected transient ReferentialService service
protected File csvFile
protected String csvFileContentType
public void setCsvFile(File csvFile)
public void setCsvFileContentType(String csvFileContentType)
public void setService(ReferentialService service)
protected abstract void importCsv(InputStream csvInputStream) throws ImportErrorException
ImportErrorExceptionprotected abstract String getSuccessMessage()
public String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportCopyright © 2009–2015 Ifremer. All rights reserved.