|
||||||||||
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
fr.paris.lutece.plugins.form.business.EntryTypeFile
public class EntryTypeFile
class EntryTypeFile
Field Summary |
---|
Fields inherited from class fr.paris.lutece.plugins.form.business.AbstractEntryTypeUpload |
---|
ALL, COMMA, CONSTANT_FILE_MAX_SIZE, CONSTANT_MAX_FILES, PARAMETER_FILE_MAX_SIZE, PARAMETER_MAX_FILES |
Constructor Summary | |
---|---|
EntryTypeFile()
|
Method Summary | |
---|---|
protected FormError |
checkResponseData(org.apache.commons.fileupload.FileItem fileItem,
java.util.Locale locale)
Check the response data for a single file item |
java.lang.String |
getHtmlCode()
Get the HtmlCode of the entry |
fr.paris.lutece.util.html.Paginator |
getPaginator(int nItemPerPage,
java.lang.String strBaseUrl,
java.lang.String strPageIndexParameterName,
java.lang.String strPageIndex)
The paginator who is use in the template modify of the entry |
fr.paris.lutece.portal.web.util.LocalizedPaginator |
getPaginator(int nItemPerPage,
java.lang.String strBaseUrl,
java.lang.String strPageIndexParameterName,
java.lang.String strPageIndex,
java.util.Locale locale)
The paginator who is use in the template modify of the entry |
fr.paris.lutece.util.ReferenceList |
getReferenceListRegularExpression(IEntry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the list of regular expression whose not associate to the entry |
java.lang.String |
getRequestData(javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Get the request data |
FormError |
getResponseData(javax.servlet.http.HttpServletRequest request,
java.util.List<Response> listResponse,
java.util.Locale locale)
save in the list of response the response associate to the entry in the form submit |
java.lang.String |
getResponseValueForExport(javax.servlet.http.HttpServletRequest request,
Response response,
java.util.Locale locale)
Get the response value associate to the entry to export in the file export |
java.lang.String |
getResponseValueForRecap(javax.servlet.http.HttpServletRequest request,
Response response,
java.util.Locale locale)
Get the response value associate to the entry to write in the recap |
java.lang.String |
getTemplateCreate()
Get template create url of the entry |
java.lang.String |
getTemplateModify()
Get the template modify url of the entry |
boolean |
isFile()
Returns true if the entry is a file, false otherwise. |
protected void |
setFields(javax.servlet.http.HttpServletRequest request,
java.util.List<Field> listFields)
Set the fields |
void |
setResponseToStringValue(Response response,
java.util.Locale locale)
toStringValue should stay null . |
Methods inherited from class fr.paris.lutece.plugins.form.business.AbstractEntryTypeUpload |
---|
canUploadFiles, checkEntryData, checkResponseData, getFileSources, setFields |
Methods inherited from class fr.paris.lutece.plugins.form.business.Entry |
---|
getChildren, getComment, getConfirmFieldTitle, getEntryType, getFieldDepend, getFields, getForm, getFormError, getHelpMessage, getIdEntry, getMapProvider, getNumberConditionalQuestion, getParent, getPosition, getTitle, isConfirmField, isFieldInLine, isFirstInTheList, isLastInTheList, isMandatory, isUnique, setChildren, setComment, setConfirmField, setConfirmFieldTitle, setEntryType, setFieldDepend, setFieldInLine, setFields, setFirstInTheList, setForm, setFormError, setHelpMessage, setIdEntry, setLastInTheList, setMandatory, setMapProvider, setNumberConditionalQuestion, setParent, setPosition, setTitle, setUnique |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntryTypeFile()
Method Detail |
---|
public java.lang.String getHtmlCode()
getHtmlCode
in interface IEntry
getHtmlCode
in class Entry
public java.lang.String getRequestData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
getRequestData
in interface IEntry
getRequestData
in class Entry
request
- HttpRequestlocale
- the locale
public java.lang.String getTemplateCreate()
getTemplateCreate
in interface IEntry
getTemplateCreate
in class Entry
public java.lang.String getTemplateModify()
getTemplateModify
in interface IEntry
getTemplateModify
in class Entry
public FormError getResponseData(javax.servlet.http.HttpServletRequest request, java.util.List<Response> listResponse, java.util.Locale locale)
getResponseData
in interface IEntry
getResponseData
in class Entry
request
- HttpRequestlistResponse
- the list of response associate to the entry in the form submitlocale
- the locale
public fr.paris.lutece.util.html.Paginator getPaginator(int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex)
getPaginator
in interface IEntry
getPaginator
in class Entry
nItemPerPage
- Number of items to display per pagestrBaseUrl
- The base Url for build links on each page linkstrPageIndexParameterName
- The parameter name for the page indexstrPageIndex
- The current page index
public fr.paris.lutece.util.ReferenceList getReferenceListRegularExpression(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getReferenceListRegularExpression
in interface IEntry
getReferenceListRegularExpression
in class Entry
entry
- the entryplugin
- the plugin
public java.lang.String getResponseValueForExport(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)
getResponseValueForExport
in interface IEntry
getResponseValueForExport
in class Entry
response
- the response associate to the entrylocale
- the localerequest
- the request
public java.lang.String getResponseValueForRecap(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)
getResponseValueForRecap
in interface IEntry
getResponseValueForRecap
in class Entry
response
- the response associate to the entrylocale
- the localerequest
- the request
public fr.paris.lutece.portal.web.util.LocalizedPaginator getPaginator(int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex, java.util.Locale locale)
getPaginator
in interface IEntry
getPaginator
in class Entry
nItemPerPage
- Number of items to display per pagestrBaseUrl
- The base Url for build links on each page linkstrPageIndexParameterName
- The parameter name for the page indexstrPageIndex
- The current page indexlocale
- Locale
public void setResponseToStringValue(Response response, java.util.Locale locale)
null
.
setResponseToStringValue
in interface IEntry
setResponseToStringValue
in class Entry
response
- the responselocale
- the locale - will use a default one if not specifiedpublic boolean isFile()
true
if the entry is a file, false
otherwise.
isFile
in interface IEntry
isFile
in class Entry
true
if the entry is a file, false
otherwiseprotected void setFields(javax.servlet.http.HttpServletRequest request, java.util.List<Field> listFields)
setFields
in class AbstractEntryTypeUpload
request
- the HTTP requestlistFields
- the list of fields to setprotected FormError checkResponseData(org.apache.commons.fileupload.FileItem fileItem, java.util.Locale locale)
checkResponseData
in class AbstractEntryTypeUpload
fileItem
- the file itemlocale
- the locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |