|
||||||||||
| 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 java.lang.String |
ALL
|
protected static java.lang.String |
COMMA
|
protected static java.lang.String |
CONSTANT_FILE_MAX_SIZE
|
protected static java.lang.String |
CONSTANT_MAX_FILES
|
protected static java.lang.String |
PARAMETER_FILE_MAX_SIZE
|
protected static java.lang.String |
PARAMETER_MAX_FILES
|
| Constructor Summary | |
|---|---|
AbstractEntryTypeUpload()
|
|
| Method Summary | |
|---|---|
FormError |
canUploadFiles(java.util.List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
java.util.List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
java.util.Locale locale)
Check if the file can be uploaded or not. |
protected java.lang.String |
checkEntryData(javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Check the entry data |
protected abstract FormError |
checkResponseData(org.apache.commons.fileupload.FileItem fileItem,
java.util.Locale locale)
Check the response data for a single file item |
protected FormError |
checkResponseData(java.util.List<org.apache.commons.fileupload.FileItem> listFilesSource,
java.util.Locale locale,
javax.servlet.http.HttpServletRequest request)
Check the record field data |
protected java.util.List<org.apache.commons.fileupload.FileItem> |
getFileSources(javax.servlet.http.HttpServletRequest request)
Get the file source from the session |
protected void |
setFields(javax.servlet.http.HttpServletRequest request)
Set the list of fields |
protected abstract void |
setFields(javax.servlet.http.HttpServletRequest request,
java.util.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 java.lang.String PARAMETER_MAX_FILES
protected static final java.lang.String PARAMETER_FILE_MAX_SIZE
protected static final java.lang.String CONSTANT_MAX_FILES
protected static final java.lang.String CONSTANT_FILE_MAX_SIZE
protected static final java.lang.String ALL
protected static final java.lang.String COMMA
| Constructor Detail |
|---|
public AbstractEntryTypeUpload()
| Method Detail |
|---|
protected abstract void setFields(javax.servlet.http.HttpServletRequest request,
java.util.List<Field> listFields)
request - the HTTP requestlistFields - the list of fields to set
protected abstract FormError checkResponseData(org.apache.commons.fileupload.FileItem fileItem,
java.util.Locale locale)
fileItem - the file itemlocale - the locale
public FormError canUploadFiles(java.util.List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
java.util.List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
java.util.Locale locale)
canUploadFiles in interface IEntrycanUploadFiles in class EntrylistUploadedFileItems - the list of uploaded fileslistFileItemsToUpload - the list of files to uploadlocale - the locale
protected java.lang.String checkEntryData(javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
request - the HTTP requestlocale - the locale
protected FormError checkResponseData(java.util.List<org.apache.commons.fileupload.FileItem> listFilesSource,
java.util.Locale locale,
javax.servlet.http.HttpServletRequest request)
fileSource - the file source to uploadlocale - the localerequest - the HTTP request
protected java.util.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 | |||||||||