|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.directory.business.Entry
fr.paris.lutece.plugins.directory.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 | |
---|---|
void |
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 void |
checkRecordFieldData(org.apache.commons.fileupload.FileItem fileItem,
java.util.Locale locale)
Check the record field data for a single file item |
protected void |
checkRecordFieldData(java.util.List<org.apache.commons.fileupload.FileItem> listFilesSource,
java.util.Locale locale)
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 setprotected abstract void checkRecordFieldData(org.apache.commons.fileupload.FileItem fileItem, java.util.Locale locale) throws DirectoryErrorException
fileItem
- the file itemlocale
- the locale
DirectoryErrorException
- exception if there is an errorpublic void canUploadFiles(java.util.List<org.apache.commons.fileupload.FileItem> listUploadedFileItems, java.util.List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload, java.util.Locale locale) throws DirectoryErrorException
canUploadFiles
in interface IEntry
canUploadFiles
in class Entry
listUploadedFileItems
- the list of uploaded fileslistFileItemsToUpload
- the list of files to uploadlocale
- the locale
DirectoryErrorException
- exception if there is an errorprotected java.lang.String checkEntryData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
request
- the HTTP requestlocale
- the locale
protected void checkRecordFieldData(java.util.List<org.apache.commons.fileupload.FileItem> listFilesSource, java.util.Locale locale) throws DirectoryErrorException
fileSource
- the file source to uploadlocale
- the locale
DirectoryErrorException
- exception if there is an errorprotected 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 |