|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.genericattributes.service.upload.AbstractAsynchronousUploadHandler
public abstract class AbstractAsynchronousUploadHandler
AbstractAsynchronousUploadHandler.
getFileItems(String, String),
removeFileItem(String, String, int)| Constructor Summary | |
|---|---|
AbstractAsynchronousUploadHandler()
|
|
| Method Summary | |
|---|---|
void |
addFileItemToUploadedFile(org.apache.commons.fileupload.FileItem fileItem,
String strIdEntry,
String strSessionId)
Add file item to the list of uploaded files |
String |
buildFieldName(String strIdEntry)
Build the field name from a given id entry i.e. : form_1 |
void |
doRemoveFile(javax.servlet.http.HttpServletRequest request,
String strIdEntry)
Do remove a file of a given entry if a flag is present in the request. |
void |
doUploadAction(javax.servlet.http.HttpServletRequest request,
String strUploadAction)
Performs an upload action. |
List<org.apache.commons.fileupload.FileItem> |
getFileItems(String strIdEntry,
String strSessionId)
Gets the fileItem for the entry and the given session. |
String |
getUploadAction(javax.servlet.http.HttpServletRequest request)
Checks the request parameters to see if an upload submit has been called. |
abstract String |
getUploadCheckboxPrefix()
Get the upload checkbox prefix |
abstract String |
getUploadDeletePrefix()
Get the upload delete prefix |
abstract String |
getUploadSubmitPrefix()
Get the upload submit prefix |
boolean |
hasAddFileFlag(javax.servlet.http.HttpServletRequest request,
String strIdEntry)
Check if the request has the flag to submit a file without submitting the form. |
boolean |
hasRemoveFlag(javax.servlet.http.HttpServletRequest request,
String strIdEntry)
Check if the request has a remove flag for a given entry. |
void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
net.sf.json.JSONObject mainObject,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload)
|
void |
removeFileItem(String strIdEntry,
String strSessionId,
int nIndex)
Remove file Item |
void |
removeSessionFiles(String strSessionId)
Removes all files associated to the session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler |
|---|
isInvoked |
| Constructor Detail |
|---|
public AbstractAsynchronousUploadHandler()
| Method Detail |
|---|
public abstract String getUploadSubmitPrefix()
public abstract String getUploadDeletePrefix()
public abstract String getUploadCheckboxPrefix()
public void process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
net.sf.json.JSONObject mainObject,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload)
process in interface fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler
public List<org.apache.commons.fileupload.FileItem> getFileItems(String strIdEntry,
String strSessionId)
getFileItems in interface IGAAsyncUploadHandlerstrIdEntry - the entrystrSessionId - The id of the session of the current user
null otherwise.
public void removeFileItem(String strIdEntry,
String strSessionId,
int nIndex)
removeFileItem in interface IGAAsyncUploadHandlerstrIdEntry - the id entrystrSessionId - The id of the session of the current usernIndex - the indexpublic void removeSessionFiles(String strSessionId)
strSessionId - the session idpublic String getUploadAction(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
public void doUploadAction(javax.servlet.http.HttpServletRequest request,
String strUploadAction)
request - the HTTP requeststrUploadAction - the name of the upload action
public void doRemoveFile(javax.servlet.http.HttpServletRequest request,
String strIdEntry)
doRemoveFile in interface IGAAsyncUploadHandlerrequest - The requeststrIdEntry - The id of the entry
public void addFileItemToUploadedFile(org.apache.commons.fileupload.FileItem fileItem,
String strIdEntry,
String strSessionId)
addFileItemToUploadedFile in interface IGAAsyncUploadHandlerfileItem - the file itemstrIdEntry - the id entrystrSessionId - the session id
public boolean hasRemoveFlag(javax.servlet.http.HttpServletRequest request,
String strIdEntry)
hasRemoveFlag in interface IGAAsyncUploadHandlerrequest - The requeststrIdEntry - The id of the entry
public boolean hasAddFileFlag(javax.servlet.http.HttpServletRequest request,
String strIdEntry)
request - The requeststrIdEntry - The id of the entry
public String buildFieldName(String strIdEntry)
strIdEntry - the id entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||