|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.form.business.Entry
fr.paris.lutece.plugins.form.business.AbstractEntryTypeUpload
public abstract class AbstractEntryTypeUpload
AbstractEntryTypeUpload
| Field Summary | |
|---|---|
protected static String |
ALL
|
protected static String |
COMMA
|
protected static String |
CONSTANT_EXPORT_BINARY
|
protected static String |
CONSTANT_FILE_MAX_SIZE
|
protected static String |
CONSTANT_MAX_FILES
|
protected static String |
PARAMETER_EXPORT_BINARY
|
protected static String |
PARAMETER_FILE_MAX_SIZE
|
protected static String |
PARAMETER_ID_RESPONSE
|
protected static String |
PARAMETER_MAX_FILES
|
| Constructor Summary | |
|---|---|
AbstractEntryTypeUpload()
|
|
| Method Summary | |
|---|---|
FormError |
canUploadFiles(List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale)
Check if the file can be uploaded or not. |
protected String |
checkEntryData(javax.servlet.http.HttpServletRequest request,
Locale locale)
Check the entry data |
protected abstract FormError |
checkResponseData(org.apache.commons.fileupload.FileItem fileItem,
Locale locale)
Check the response data for a single file item |
protected FormError |
checkResponseData(List<org.apache.commons.fileupload.FileItem> listFilesSource,
Locale locale,
javax.servlet.http.HttpServletRequest request)
Check the record field data |
protected List<org.apache.commons.fileupload.FileItem> |
getFileSources(javax.servlet.http.HttpServletRequest request)
Get the file source from the session |
String |
getResponseValueForExport(javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
Get the response value associate to the entry to export in the file export |
protected void |
setFields(javax.servlet.http.HttpServletRequest request)
Set the list of fields |
protected abstract void |
setFields(javax.servlet.http.HttpServletRequest request,
List<Field> listFields)
Set the fields |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String PARAMETER_ID_RESPONSE
protected static final String PARAMETER_MAX_FILES
protected static final String PARAMETER_FILE_MAX_SIZE
protected static final String PARAMETER_EXPORT_BINARY
protected static final String CONSTANT_MAX_FILES
protected static final String CONSTANT_FILE_MAX_SIZE
protected static final String CONSTANT_EXPORT_BINARY
protected static final String ALL
protected static final String COMMA
| Constructor Detail |
|---|
public AbstractEntryTypeUpload()
| Method Detail |
|---|
protected abstract void setFields(javax.servlet.http.HttpServletRequest request,
List<Field> listFields)
request - the HTTP requestlistFields - the list of fields to set
protected abstract FormError checkResponseData(org.apache.commons.fileupload.FileItem fileItem,
Locale locale)
fileItem - the file itemlocale - the locale
public FormError canUploadFiles(List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale)
canUploadFiles in interface IEntrycanUploadFiles in class EntrylistUploadedFileItems - the list of uploaded fileslistFileItemsToUpload - the list of files to uploadlocale - the locale
public String getResponseValueForExport(javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
getResponseValueForExport in interface IEntrygetResponseValueForExport in class Entryrequest - the requestresponse - the response associate to the entrylocale - the locale
protected String checkEntryData(javax.servlet.http.HttpServletRequest request,
Locale locale)
request - the HTTP requestlocale - the locale
protected FormError checkResponseData(List<org.apache.commons.fileupload.FileItem> listFilesSource,
Locale locale,
javax.servlet.http.HttpServletRequest request)
listFilesSource - the list of source files to uploadlocale - the localerequest - the HTTP request
protected List<org.apache.commons.fileupload.FileItem> getFileSources(javax.servlet.http.HttpServletRequest request)
request - the HttpServletRequestsession - the HttpSession
protected void setFields(javax.servlet.http.HttpServletRequest request)
request - the HTTP request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||