public class FileDownloadAction extends AbstractSispeaAction
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
chosenCompetences
the chosen competences
|
protected List<CompetenceDto> |
competences
the competence list
|
protected String |
contentDisposition
The name of the returned file.
|
protected String |
contentType
The content type (MIME type).
|
protected String |
downloadFormat
file format to download
|
static String[] |
EMPTY_STRING_ARRAY |
protected Integer |
exerciseId
the selected exercise id
|
protected Map<Integer,String> |
exerciseList |
protected ExerciseService |
exerciseService |
protected TerritoryDto |
extractTerritory
territory to extract
|
protected Integer |
extractTerritoryId
territory id to extract
|
protected FileExchangeService |
fileExchangeService |
protected String |
fileName
The filename.
|
protected Long |
fileSize
The file size.
|
protected FileType |
fileType
file type
|
protected InputStream |
inputStream
The CSV input stream.
|
protected ReferentialService |
referentialService |
protected Integer |
selectionId
Teritory Id selected returned from "Enhance my selections"
|
protected List<TerritoryDto> |
userSelection
the user selected territories
|
protected Boolean |
withData
Flag to note if the data should be included in downloaded file
|
protected Boolean |
withReferential
Flag to note if the referential should be included in downloaded file
|
application, configuration, formatDate, formatDateOnly, menu, nextPage, parameters, serviceMessages, session, sispeaSession, strutsMessages, submitValue, territoryService, userService| Constructor and Description |
|---|
FileDownloadAction() |
buildMenu, checkIfUserCanViewDashBoard, checkRight, checkUserRight, checkUserRight, checkUserRight, createMenu, doHandleException, doHandleSispeaException, execute, getApplication, getCurrentUser, getCurrentUserTerritory, getFormatDate, getFormatDateOnly, getMenu, getNextPage, getOption, getParameters, getSession, getSispeaSession, getSubmitValue, initSession, isEnglish, isFrench, isSpanish, logException, openMenu, removeSession, setApplication, setMenu, setNextPage, setParameters, setSession, setSubmitValueaddActionError, 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, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validatepublic static final String[] EMPTY_STRING_ARRAY
@Autowired protected transient FileExchangeService fileExchangeService
@Autowired protected transient ExerciseService exerciseService
@Autowired protected transient ReferentialService referentialService
protected Integer extractTerritoryId
protected TerritoryDto extractTerritory
protected String fileName
protected FileType fileType
protected Boolean withData
protected Boolean withReferential
protected List<CompetenceDto> competences
protected String[] chosenCompetences
protected String contentDisposition
protected String contentType
protected Long fileSize
protected transient InputStream inputStream
protected String downloadFormat
protected Integer exerciseId
protected List<TerritoryDto> userSelection
protected Integer selectionId
protected String doExecute() throws Exception
AbstractSispeaActiondoExecute in class AbstractSispeaActionExceptionprotected void loadAvailableDownloads(UserDto pUser) throws SispeaException
SispeaExceptionprotected void manageDefaultValues()
protected void checkCompetence()
throws SispeaException
SispeaExceptionprotected void checkUsersSelections()
throws SispeaException
SispeaExceptionpublic Map<String,String> getSelectedTerritories()
public Map<Integer,String> getExerciseList() throws SispeaException
SispeaExceptionpublic Integer getBackPageId()
public TerritoryDto getExtractTerritory()
public void setExtractTerritory(TerritoryDto pExtractTerritory)
public String getContentType()
public void setContentType(String pContentType)
public Long getFileSize()
public void setFileSize(Long pFileSize)
public InputStream getInputStream()
public void setInputStream(InputStream pInputStream)
public String getDownloadFormat()
public void setDownloadFormat(String pDownloadFormat)
public String getFileName()
public void setFileName(String pFileName)
public Boolean getWithData()
public void setWithData(Boolean pWithData)
public Boolean getWithReferential()
public void setWithReferential(Boolean pWithReferential)
public List<CompetenceDto> getCompetences()
public void setCompetences(List<CompetenceDto> pCompetences)
public String[] getChosenCompetences()
public void setChosenCompetences(String[] pChosenCompetences)
public FileType getFileType()
public void setFileType(FileType pFileType)
public Integer getExerciseId()
public void setExerciseId(Integer pExerciseId)
public Integer getExtractTerritoryId()
public void setExtractTerritoryId(Integer pExtractTerritoryId)
public List<TerritoryDto> getUserSelection()
public void setUserSelection(List<TerritoryDto> pUserSelection)
public String getContentDisposition()
public void setContentDisposition(String pContentDisposition)
public List<AvailableDownload> getAvailableDownloads()
public Integer getSelectionId()
public void setSelectionId(Integer pSelectionId)
protected void loadExcerciseList()
throws SispeaException
SispeaExceptionCopyright © 2014–2015 eaudefrance. All rights reserved.