fr.paris.lutece.plugins.genericattributes.service.upload
Interface IGAAsyncUploadHandler

All Superinterfaces:
fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler
All Known Implementing Classes:
AbstractAsynchronousUploadHandler

public interface IGAAsyncUploadHandler
extends fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler

Interface for asynchronous upload handlers used by entries of type upload


Method Summary
 void addFileItemToUploadedFile(org.apache.commons.fileupload.FileItem fileItem, String strIdEntry, String strSessionId)
          Add file item to the list of uploaded files
 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.
 List<org.apache.commons.fileupload.FileItem> getFileItems(String strIdEntry, String strSessionId)
          Gets the fileItem for the entry and the given session.
 boolean hasRemoveFlag(javax.servlet.http.HttpServletRequest request, String strIdEntry)
          Check if the request has a remove flag for a given entry.
 void removeFileItem(String strIdEntry, String strSessionId, int nIndex)
          Remove file Item
 
Methods inherited from interface fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler
isInvoked, process
 

Method Detail

removeFileItem

void removeFileItem(String strIdEntry,
                    String strSessionId,
                    int nIndex)
Remove file Item

Parameters:
strIdEntry - the id entry
strSessionId - The id of the session of the current user
nIndex - the index

getFileItems

List<org.apache.commons.fileupload.FileItem> getFileItems(String strIdEntry,
                                                          String strSessionId)
Gets the fileItem for the entry and the given session.

Parameters:
strIdEntry - the entry
strSessionId - The id of the session of the current user
Returns:
the fileItem found, null otherwise.

addFileItemToUploadedFile

void addFileItemToUploadedFile(org.apache.commons.fileupload.FileItem fileItem,
                               String strIdEntry,
                               String strSessionId)
Add file item to the list of uploaded files

Parameters:
fileItem - the file item
strIdEntry - the id entry
strSessionId - the session id

hasRemoveFlag

boolean hasRemoveFlag(javax.servlet.http.HttpServletRequest request,
                      String strIdEntry)
Check if the request has a remove flag for a given entry.

Parameters:
request - The request
strIdEntry - The id of the entry
Returns:
True if the request has a remove flag for the given entry, false otherwise

doRemoveFile

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. Files are selected from the request.

Parameters:
request - The request
strIdEntry - The id of the entry


Copyright © 2014 Mairie de Paris. All Rights Reserved.