public abstract class AbstractGenAttUploadHandler
extends fr.paris.lutece.plugins.asynchronousupload.service.AbstractAsynchronousUploadHandler
Constructor and Description |
---|
AbstractGenAttUploadHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addFileItemToUploadedFilesList(org.apache.commons.fileupload.FileItem fileItem,
String strFieldName,
javax.servlet.http.HttpServletRequest request) |
protected String |
buildFieldName(String strIdEntry)
Build the field name from a given id entry i.e.
|
String |
canUploadFiles(javax.servlet.http.HttpServletRequest request,
String strFieldName,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale) |
protected String |
getEntryIdFromFieldName(String strFieldName)
Get the id of the entry associated with a given field name
|
List<org.apache.commons.fileupload.FileItem> |
getListUploadedFiles(String strFieldName,
javax.servlet.http.HttpSession session) |
void |
removeFileItem(String strFieldName,
javax.servlet.http.HttpSession session,
int nIndex) |
void |
removeSessionFiles(String strSessionId)
Removes all files associated to the session
|
addFilesUploadedSynchronously, doRemoveFile, doRemoveUploadedFile, getUploadAction, getUploadCheckboxPrefix, getUploadDeletePrefix, getUploadSubmitPrefix, hasAddFileFlag, hasRemoveFlag, isInvoked, process
public String canUploadFiles(javax.servlet.http.HttpServletRequest request, String strFieldName, List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload, Locale locale)
public List<org.apache.commons.fileupload.FileItem> getListUploadedFiles(String strFieldName, javax.servlet.http.HttpSession session)
public void addFileItemToUploadedFilesList(org.apache.commons.fileupload.FileItem fileItem, String strFieldName, javax.servlet.http.HttpServletRequest request)
public void removeFileItem(String strFieldName, javax.servlet.http.HttpSession session, int nIndex)
public void removeSessionFiles(String strSessionId)
strSessionId
- the session idprotected String buildFieldName(String strIdEntry)
strIdEntry
- the id entryCopyright © 2018 City of Paris. All rights reserved.