public interface IAsyncUploadHandler
extends fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler
| Modifier and Type | Method and Description |
|---|---|
void |
addFileItemToUploadedFilesList(org.apache.commons.fileupload.FileItem fileItem,
String strFieldName,
javax.servlet.http.HttpServletRequest request)
Add a file item to the list of uploaded files
|
void |
addFilesUploadedSynchronously(javax.servlet.http.HttpServletRequest request,
String strFieldName)
Add files uploaded synchronously for a given field
|
String |
canUploadFiles(javax.servlet.http.HttpServletRequest request,
String strFieldName,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale)
Check if the file can be uploaded or not.
|
void |
doRemoveFile(javax.servlet.http.HttpServletRequest request,
String strFieldName)
Do remove a file of a given entry if a flag is present in the request.
|
String |
doRemoveUploadedFile(javax.servlet.http.HttpServletRequest request,
String strFieldName,
List<Integer> listIndexesFilesToRemove)
Do remove a list of files from uploaded files.
|
byte[] |
doRetrieveUploadedFile(javax.servlet.http.HttpServletRequest request)
Do retrieve a file from uploaded files.
|
String |
getHandlerName()
Get the name of the handler.
|
List<org.apache.commons.fileupload.FileItem> |
getListUploadedFiles(String strFieldName,
javax.servlet.http.HttpSession session)
Gets the list of upload files for a given field and a given session.
|
String |
getUploadCheckboxPrefix()
Get the upload checkbox prefix
|
String |
getUploadDeletePrefix()
Get the upload delete prefix
|
String |
getUploadSubmitPrefix()
Get the upload submit prefix
|
boolean |
hasAddFileFlag(javax.servlet.http.HttpServletRequest request,
String strFieldName)
Check if the request has the flag to submit a file without submitting the
form.
|
boolean |
hasRemoveFlag(javax.servlet.http.HttpServletRequest request,
String strFieldName)
Check if the request has a remove flag for a given entry.
|
void |
removeFileItem(String strFieldName,
javax.servlet.http.HttpSession session,
int nIndex)
Remove file Item
|
String getUploadSubmitPrefix()
String getUploadDeletePrefix()
String getUploadCheckboxPrefix()
String canUploadFiles(javax.servlet.http.HttpServletRequest request, String strFieldName, List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload, Locale locale)
request - The requeststrFieldName - the field namelistFileItemsToUpload - the list of files to uploadlocale - the localeList<org.apache.commons.fileupload.FileItem> getListUploadedFiles(String strFieldName, javax.servlet.http.HttpSession session)
strFieldName - the field namesession - The session of the current usernull otherwise.void removeFileItem(String strFieldName, javax.servlet.http.HttpSession session, int nIndex)
strFieldName - the field namesession - The session of the current usernIndex - the index of the file to remove (from 0 to n). The index is
the index of the file in the uploaded file list given by the
method getListUploadedFiles(String, HttpSession)void addFileItemToUploadedFilesList(org.apache.commons.fileupload.FileItem fileItem,
String strFieldName,
javax.servlet.http.HttpServletRequest request)
fileItem - the file itemstrFieldName - the field namerequest - the requestboolean hasRemoveFlag(javax.servlet.http.HttpServletRequest request,
String strFieldName)
request - The requeststrFieldName - The field namevoid doRemoveFile(javax.servlet.http.HttpServletRequest request,
String strFieldName)
request - The requeststrFieldName - The field nameString doRemoveUploadedFile(javax.servlet.http.HttpServletRequest request, String strFieldName, List<Integer> listIndexesFilesToRemove)
request - The requeststrFieldName - The field name of the files to removelistIndexesFilesToRemove - The list of indexes of files to removeboolean hasAddFileFlag(javax.servlet.http.HttpServletRequest request,
String strFieldName)
request - The requeststrFieldName - The id of the entryvoid addFilesUploadedSynchronously(javax.servlet.http.HttpServletRequest request,
String strFieldName)
request - The requeststrFieldName - The name of the field to add files ofString getHandlerName()
byte[] doRetrieveUploadedFile(javax.servlet.http.HttpServletRequest request)
request - The requestCopyright © 2019 City of Paris. All rights reserved.