public abstract class AbstractEntryTypeUpload extends EntryTypeService
ATTRIBUTE_RESPONSE_ITERATION_NUMBER, ERROR_FIELD_FILE_MAX_SIZE, ERROR_FIELD_FILE_TYPE, ERROR_FIELD_HEIGHT, ERROR_FIELD_MAX_FILES, ERROR_FIELD_TITLE, ERROR_FIELD_WIDTH, FIELD_ADDITIONAL_ADDRESS, FIELD_ADDRESS, FIELD_ANSWER_CHOICE, FIELD_ARRAY_CELL, FIELD_ARRAY_COLUMN, FIELD_ARRAY_ROW, FIELD_ATTRIBUTE_NAME, FIELD_COMMENT, FIELD_CONFIRM, FIELD_CONFIRM_FIELD_TITLE, FIELD_DATE_VALUE, FIELD_EDIT_MODE, FIELD_EXPORTABLE, FIELD_FILE_BINARY, FIELD_FILE_MAX_SIZE, FIELD_FILE_TYPE, FIELD_GEOMETRY, FIELD_HEIGHT, FIELD_ID_ADDRESS, FIELD_IMAGE_TYPE, FIELD_INSERT_GROUP, FIELD_MAX_FILES, FIELD_MAX_SIZE, FIELD_MAX_SIZE_ENTER, FIELD_MYLUTECE_ATTRIBUTE_NAME_CODE, FIELD_NUMBER_COLUMNS, FIELD_NUMBER_ROWS, FIELD_PREFIX, FIELD_PROVIDER, FIELD_RICHTEXT, FIELD_TEXT_CONF, FIELD_USED_COMPLETE_RESPONSE, FIELD_USED_CORRECT_RESPONSE, FIELD_VIEW_NUMBER, FIELD_WIDTH, FIELD_X, FIELD_Y, MESSAGE_CONFIRM_FIELD, MESSAGE_INVALID_SQL_QUERY, MESSAGE_MANDATORY_FIELD, MESSAGE_MAXLENGTH, MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED, MESSAGE_NUMERIC_FIELD, MESSAGE_UNIQUE_FIELD, MESSAGE_XSS_FIELD, PARAMETER_COMMENT, PARAMETER_CONFIRM_FIELD, PARAMETER_CONFIRM_FIELD_TITLE, PARAMETER_CSS_CLASS, PARAMETER_EDITABLE_BACK, PARAMETER_ENTRY_CODE, PARAMETER_ERROR_MESSAGE, PARAMETER_EXPORTABLE, PARAMETER_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_IMAGE_TYPE, PARAMETER_INDEXED, PARAMETER_MANDATORY, PARAMETER_MAX_IMAGE_SIZE, PARAMETER_MAX_SIZE_ENTER, PARAMETER_NUMBER_COLUMNS, PARAMETER_NUMBER_ROWS, PARAMETER_ONLY_DISPLAY_IN_BACK, PARAMETER_TITLE, PARAMETER_UNIQUE, PARAMETER_USED_COMPLETE_RESPONSE, PARAMETER_USED_CORRECT_RESPONSE, PARAMETER_VALUE, PARAMETER_WIDTH, PREFIX_ATTRIBUTE, PREFIX_ITERATION_ATTRIBUTE, SUFFIX_CONFIRM_FIELD
Constructor and Description |
---|
AbstractEntryTypeUpload() |
Modifier and Type | Method and Description |
---|---|
GenericAttributeError |
canUploadFiles(Entry entry,
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.
|
GenericAttributeError |
doCheckforImages(org.apache.commons.fileupload.FileItem fileItem,
Entry entry,
Locale locale)
Do check that an uploaded file is an image
|
abstract fr.paris.lutece.plugins.asynchronousupload.service.IAsyncUploadHandler |
getAsynchronousUploadHandler()
Get the asynchronous upload handler to use for entries of this type
|
fr.paris.lutece.util.ReferenceList |
getReferenceListRegularExpression(Entry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of regular expression who is use in the template modify of the entry
|
String |
getRequestData(Entry entry,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the request data
|
String |
getResponseValueForExport(Entry entry,
javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
Get the response value associate to the entry to export in the file export
|
String |
getResponseValueForRecap(Entry entry,
javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
Get the response value associate to the entry to write in the recap
|
abstract String |
getUrlDownloadFile(int nResponseId,
String strBaseUrl)
Get the URL to download the file of a response
|
void |
setResponseToStringValue(Entry entry,
Response response,
Locale locale)
toStringValue should stay
null . |
getResponseData, getResponseIterationValue, getTemplateEntryReadOnly, getTemplateEntryReadOnly
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTemplateCreate, getTemplateHtmlForm, getTemplateModify
public abstract fr.paris.lutece.plugins.asynchronousupload.service.IAsyncUploadHandler getAsynchronousUploadHandler()
public abstract String getUrlDownloadFile(int nResponseId, String strBaseUrl)
nResponseId
- The id of the response to download the file ofstrBaseUrl
- The base URLpublic GenericAttributeError canUploadFiles(Entry entry, List<org.apache.commons.fileupload.FileItem> listUploadedFileItems, List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload, Locale locale)
canUploadFiles
in interface IEntryTypeService
canUploadFiles
in class EntryTypeService
entry
- The entrylistUploadedFileItems
- the list of uploaded fileslistFileItemsToUpload
- the list of files to uploadlocale
- the localepublic String getResponseValueForExport(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
getResponseValueForExport
in interface IEntryTypeService
getResponseValueForExport
in class EntryTypeService
entry
- The entryrequest
- the requestresponse
- the response associate to the entrylocale
- the localepublic String getRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)
getRequestData
in interface IEntryTypeService
getRequestData
in class EntryTypeService
entry
- The entryrequest
- HttpRequestlocale
- the localepublic fr.paris.lutece.util.ReferenceList getReferenceListRegularExpression(Entry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getReferenceListRegularExpression
in interface IEntryTypeService
getReferenceListRegularExpression
in class EntryTypeService
entry
- the entryplugin
- the pluginpublic void setResponseToStringValue(Entry entry, Response response, Locale locale)
null
.setResponseToStringValue
in interface IEntryTypeService
setResponseToStringValue
in class EntryTypeService
entry
- The entryresponse
- The responselocale
- the locale - will use a default one if not specifiedpublic String getResponseValueForRecap(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
getResponseValueForRecap
in interface IEntryTypeService
getResponseValueForRecap
in class EntryTypeService
entry
- The entryrequest
- the requestresponse
- the response associate to the entrylocale
- the localepublic GenericAttributeError doCheckforImages(org.apache.commons.fileupload.FileItem fileItem, Entry entry, Locale locale)
fileItem
- The file itementry
- the entrylocale
- The localeCopyright © 2020 City of Paris. All rights reserved.