public class EntryTypeAutomaticFileReading extends fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeFile implements IResponseComparator
ALL, COMMA, PARAMETER_EXPORT_BINARY, PARAMETER_FILE_MAX_SIZE, PARAMETER_FILE_TYPE, PARAMETER_ID_RESPONSE, PARAMETER_MAX_FILESATTRIBUTE_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_ATTRIBUTE_NAME, FIELD_CAMERA_CONF, FIELD_COMMENT, FIELD_CONFIRM_FIELD_TITLE, FIELD_DATE_VALUE, FIELD_EDIT_MODE, FIELD_FILE_BINARY, FIELD_FILE_CONFIG, FIELD_FILE_MAX_SIZE, FIELD_FILE_TYPE, FIELD_GEOMETRY, FIELD_ID_ADDRESS, FIELD_INSERT_GROUP, FIELD_MAX_FILES, FIELD_MAX_SIZE_ENTER, FIELD_MYLUTECE_ATTRIBUTE_NAME_CODE, FIELD_NUMBER_COLUMNS, FIELD_NUMBER_ROWS, FIELD_PREFIX, FIELD_PROVIDER, FIELD_TEXT_CONF, FIELD_USED_COMPLETE_RESPONSE, FIELD_USED_CORRECT_RESPONSE, FIELD_USER_CONF, FIELD_VIEW_NUMBER, 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_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_ROLE_ASSOCIATED, 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 |
|---|
EntryTypeAutomaticFileReading() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkForImages() |
protected void |
createOrUpdateFileFields(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
javax.servlet.http.HttpServletRequest request)
Set the list of fields
|
static boolean |
fill(List<Question> listQuestionStep,
List<FormQuestionResponse> listFormsQuestionResponse,
javax.servlet.http.HttpServletRequest request)
Fill form question response with ocr values readed
|
fr.paris.lutece.plugins.genericattributes.service.upload.AbstractGenAttUploadHandler |
getAsynchronousUploadHandler() |
fr.paris.lutece.util.ReferenceList |
getEntryByStep(int nIdStep,
int nIdQuestion,
String strKey)
Gets the steps list by form.
|
fr.paris.lutece.util.ReferenceList |
getFileTypeRefList()
Builds the
ReferenceList of all available files type |
fr.paris.lutece.util.ReferenceList |
getListField(String strKey)
Gets the list field.
|
String |
getOcrConfigTemplate(int nIdStep,
int nIdQuestion,
int nIdEntryQuestion,
String strOcrKey)
Get the config html code
|
fr.paris.lutece.plugins.genericattributes.business.IOcrProvider |
getOcrProvider(String strKey)
Gets the ocr provider.
|
String |
getTemplateCreate(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
boolean bDisplayFront) |
String |
getTemplateEntryReadOnly(boolean bDisplayFront) |
String |
getTemplateHtmlForm(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
boolean bDisplayFront) |
String |
getTemplateModify(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
boolean bDisplayFront) |
String |
getUrlDownloadFile(int nResponseId,
String strBaseUrl) |
boolean |
isResponseChanged(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponseReference,
List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponseNew)
Tests if the response has changed for an
Entry |
getResponseDatacanUploadFiles, checkEntryData, checkResponseData, doCheckforImages, getAttributeName, getFileSources, getReferenceListRegularExpression, getRequestData, getResponseValueForExport, getResponseValueForRecap, getUrlDownloadImage, setResponseToStringValuepublic String getTemplateHtmlForm(fr.paris.lutece.plugins.genericattributes.business.Entry entry, boolean bDisplayFront)
getTemplateHtmlForm in interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeServicepublic String getTemplateCreate(fr.paris.lutece.plugins.genericattributes.business.Entry entry, boolean bDisplayFront)
getTemplateCreate in interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeServicepublic String getTemplateModify(fr.paris.lutece.plugins.genericattributes.business.Entry entry, boolean bDisplayFront)
getTemplateModify in interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeServicepublic fr.paris.lutece.plugins.genericattributes.service.upload.AbstractGenAttUploadHandler getAsynchronousUploadHandler()
getAsynchronousUploadHandler in class fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeFilepublic String getUrlDownloadFile(int nResponseId, String strBaseUrl)
getUrlDownloadFile in class fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeUploadprotected boolean checkForImages()
checkForImages in class fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeUploadpublic String getTemplateEntryReadOnly(boolean bDisplayFront)
getTemplateEntryReadOnly in interface fr.paris.lutece.plugins.genericattributes.service.entrytype.IEntryTypeServicegetTemplateEntryReadOnly in class fr.paris.lutece.plugins.genericattributes.service.entrytype.EntryTypeServicepublic boolean isResponseChanged(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponseReference, List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponseNew)
EntryisResponseChanged in interface IResponseComparatorlistResponseReference - the list of reference responses for the EntrylistResponseNew - the list of new responses for the Entrytrue if the response has changed, false otherwiseprotected void createOrUpdateFileFields(fr.paris.lutece.plugins.genericattributes.business.Entry entry,
javax.servlet.http.HttpServletRequest request)
createOrUpdateFileFields in class fr.paris.lutece.plugins.genericattributes.service.entrytype.AbstractEntryTypeUploadentry - The entryrequest - the HTTP requestpublic fr.paris.lutece.util.ReferenceList getFileTypeRefList()
ReferenceList of all available files typeReferenceListpublic String getOcrConfigTemplate(int nIdStep, int nIdQuestion, int nIdEntryQuestion, String strOcrKey)
nIdStep - the Id stepnIdQuestion - the question idnIdEntryQuestion - the id entrystrOcrKey - the ocr providerpublic fr.paris.lutece.plugins.genericattributes.business.IOcrProvider getOcrProvider(String strKey)
strKey - the str keypublic fr.paris.lutece.util.ReferenceList getListField(String strKey)
strKey - the str keypublic fr.paris.lutece.util.ReferenceList getEntryByStep(int nIdStep,
int nIdQuestion,
String strKey)
nIdForm - the n id formpublic static boolean fill(List<Question> listQuestionStep, List<FormQuestionResponse> listFormsQuestionResponse, javax.servlet.http.HttpServletRequest request)
listQuestionStep - the questuin listlistFormsQuestionResponse - the form response listrequest - the HttpServletRequest requestCopyright © 2020 City of Paris. All rights reserved.