public abstract class AbstractEntryTypeCamera extends AbstractEntryTypeImage
ALL, COMMA, CONSTANT_EXPORT_BINARY, CONSTANT_FILE_MAX_SIZE, CONSTANT_MAX_FILES, MESSAGE_ERROR_NOT_AN_IMAGE, PARAMETER_EXPORT_BINARY, PARAMETER_FILE_MAX_SIZE, PARAMETER_ID_RESPONSE, PARAMETER_MAX_FILES, PROPERTY_MESSAGE_ERROR_UPLOADING_FILE_FILE_MAX_SIZE, PROPERTY_UPLOAD_FILE_DEFAULT_MAX_SIZEFIELD_COMMENT, FIELD_CONFIRM_FIELD_TITLE, FIELD_HEIGHT, FIELD_INSERT_GROUP, FIELD_MAX_SIZE_ENTER, FIELD_NUMBER_COLUMNS, FIELD_NUMBER_ROWS, FIELD_TITLE, FIELD_WIDTH, 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_ENTRY_CODE, PARAMETER_ERROR_MESSAGE, PARAMETER_FIELD_CODE, PARAMETER_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_IMAGE_TYPE, PARAMETER_MANDATORY, PARAMETER_MAX_IMAGE_SIZE, PARAMETER_MAX_SIZE_ENTER, PARAMETER_NUMBER_COLUMNS, PARAMETER_NUMBER_ROWS, PARAMETER_ONLY_DISPLAY_IN_BACK, PARAMETER_ROLE_ASSOCIATED, PARAMETER_TITLE, PARAMETER_UNIQUE, PARAMETER_VALUE, PARAMETER_WIDTH, PREFIX_ATTRIBUTE, SUFFIX_CONFIRM_FIELD| Constructor and Description |
|---|
AbstractEntryTypeCamera() |
| Modifier and Type | Method and Description |
|---|---|
GenericAttributeError |
doCheckforImages(String imageSource,
Entry entry,
Locale locale)
Do check that an uploaded source is an image
|
GenericAttributeError |
doCheckSize(BufferedImage image,
Entry entry,
Locale locale)
Do check the size of image
|
String |
getRequestData(Entry entry,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the request data
|
GenericAttributeError |
getResponseData(Entry entry,
javax.servlet.http.HttpServletRequest request,
List<Response> listResponse,
Locale locale)
Get the URL to download a file of a response throw the image servlet.
|
protected Response |
getResponseFromImage(javax.servlet.http.HttpServletRequest request,
String imageSource,
Entry entry,
boolean bCreatePhysicalFile)
Get a generic attributes response from a request
|
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
|
canUploadFiles, checkEntryData, checkForImages, checkResponseData, doCheckforImages, getAsynchronousUploadHandler, getReferenceListRegularExpression, getResponseFromImage, getResponseValueForExport, getUrlDownloadFile, getUrlDownloadImage, setFields, setResponseToStringValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTemplateCreate, getTemplateHtmlForm, getTemplateModifypublic String getRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)
getRequestData in interface IEntryTypeServicegetRequestData in class AbstractEntryTypeImageentry - The entryrequest - HttpRequestlocale - the localepublic GenericAttributeError getResponseData(Entry entry, javax.servlet.http.HttpServletRequest request, List<Response> listResponse, Locale locale)
getResponseData in interface IEntryTypeServicegetResponseData in class AbstractEntryTypeImageentry - The entryrequest - HttpRequestlistResponse - the list of response associate to the entry. Newly created response will be inserted in this list.locale - the localeprotected Response getResponseFromImage(javax.servlet.http.HttpServletRequest request, String imageSource, Entry entry, boolean bCreatePhysicalFile)
request - imageSource - the image in base64 formentry - The entrybCreatePhysicalFile - True to create the physical file associated with the file of the response, false otherwise. Note that the physical file will never be saved in
the database by this method, like any other created object.public String getResponseValueForRecap(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
AbstractEntryTypeImagegetResponseValueForRecap in interface IEntryTypeServicegetResponseValueForRecap in class AbstractEntryTypeImageentry - The entryrequest - the requestresponse - the response associate to the entrylocale - the localepublic GenericAttributeError doCheckforImages(String imageSource, Entry entry, Locale locale)
imageSource - The file imageSourceentry - the entrylocale - The localepublic GenericAttributeError doCheckSize(BufferedImage image, Entry entry, Locale locale)
image - entry - locale - The localeCopyright © 2017 City of Paris. All rights reserved.