public class EntryTypeImg extends AbstractEntryTypeUpload
Modifier and Type | Field and Description |
---|---|
protected static String |
ERROR_FIELD_BIG_THUMBNAIL |
protected static String |
ERROR_FIELD_THUMBNAIL |
protected static String |
FIELD_BIG_THUMBNAIL_HEIGHT |
protected static String |
FIELD_BIG_THUMBNAIL_WIDTH |
protected static String |
FIELD_THUMBNAIL_HEIGHT |
protected static String |
FIELD_THUMBNAIL_WIDTH |
ALL, COMMA, CONSTANT_FILE_MAX_SIZE, CONSTANT_MAX_FILES, PARAMETER_FILE_MAX_SIZE, PARAMETER_MAX_FILES
ATTRIBUTE_ENTRY_ID, ATTRIBUTE_ENTRY_ID_TYPE, ATTRIBUTE_IS_SORTABLE, ATTRIBUTE_SHOWXY, ATTRIBUTE_TITLE, FIELD_COMMENT, FIELD_ENTRY_ASSOCIATE, FIELD_HEIGHT, FIELD_HEIGHT_DISPLAY, FIELD_HELP_MESSAGE, FIELD_HELP_MESSAGE_SEARCH, FIELD_INSERT_GROUP, FIELD_LABEL_ALL_SEARCH, FIELD_MANDATORY, FIELD_MAX_SIZE_ENTER, FIELD_NUMBER_COLUMNS, FIELD_NUMBER_ROWS, FIELD_PRESENTATION, FIELD_REQUEST_SQL, FIELD_TITLE, FIELD_VALUE, FIELD_WIDTH, FIELD_WIDTH_DISPLAY, JSP_DOWNLOAD_FILE, MARK_DEFAULT_VALUES, MARK_ENTRY, MARK_LOCALE, MARK_MYLUTECE_USER_INFOS_LIST, MARK_MYLUTECE_USER_LOGIN, MARK_RECORD_FIELD, MARK_SHOW_ALL_INFO, MESSAGE_BLOBSTORE_CLIENT_SERVICE_UNAVAILABLE, MESSAGE_MANDATORY_FIELD, MESSAGE_NUMERIC_FIELD, PARAMETER_AUTOCOMPLETE, PARAMETER_COMMENT, PARAMETER_DATE_BEGIN, PARAMETER_DATE_END, PARAMETER_DIRECTORY_ASSOCIATE, PARAMETER_DISPLAY_HEIGHT, PARAMETER_DISPLAY_WIDTH, PARAMETER_ENTRY_ASSOCIATE, PARAMETER_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_HELP_MESSAGE_SEARCH, PARAMETER_ID_DIRECTORY_RECORD, PARAMETER_INDEXED, PARAMETER_INDEXED_AS_SUMMARY, PARAMETER_INDEXED_AS_TITLE, PARAMETER_IS_ADD_VALUE_SEARCH_ALL, PARAMETER_LABEL_VALUE_SEARCH_ALL, PARAMETER_MANDATORY, PARAMETER_MAX_SIZE_ENTER, PARAMETER_MULTIPLE_SEARCH_FIELDS, PARAMETER_NUMBER_COLUMNS, PARAMETER_NUMBER_ROWS, PARAMETER_REQUEST_SQL, PARAMETER_ROLE_ASSOCIATED, PARAMETER_SEARCH_ACTION, PARAMETER_SHOW_ALL_INFO, PARAMETER_SHOWN_IN_ADVANCED_SEARCH, PARAMETER_SHOWN_IN_COMPLETENESS, PARAMETER_SHOWN_IN_EXPORT, PARAMETER_SHOWN_IN_HISTORY, PARAMETER_SHOWN_IN_RESULT_LIST, PARAMETER_SHOWN_IN_RESULT_RECORD, PARAMETER_TITLE, PARAMETER_UPDATE_ENTRY, PARAMETER_VALUE, PARAMETER_WIDTH, PARAMETER_WORKGROUP_ASSOCIATED, PROPERTY_IMPORT_MULTIPLE_VALUE_DELIMITER, TAG_ENTRY, TAG_LIST_ENTRY, TAG_TITLE
Constructor and Description |
---|
EntryTypeImg() |
Modifier and Type | Method and Description |
---|---|
protected String |
checkEntryData(javax.servlet.http.HttpServletRequest request,
Locale locale)
Check the entry data
|
protected void |
checkRecordFieldData(org.apache.commons.fileupload.FileItem fileItem,
Locale locale)
Check the record field data for a single file item
|
String |
getEntryData(javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the request data
|
void |
getImportRecordFieldData(Record record,
String strImportValue,
boolean bTestDirectoryError,
List<RecordField> listRecordField,
Locale locale)
save in the list of record field the record field associate to the entry
|
fr.paris.lutece.util.html.Paginator |
getPaginator(int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex)
The paginator who is use in the template modify of the entry
|
fr.paris.lutece.portal.web.util.LocalizedPaginator |
getPaginator(int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex,
Locale locale)
The paginator who is use in the template modify of the entry
|
void |
getRecordFieldData(Record record,
javax.servlet.http.HttpServletRequest request,
boolean bTestDirectoryError,
boolean bAddNewValue,
List<RecordField> listRecordField,
Locale locale)
save in the list of record field the record field associate to the entry
|
void |
getRecordFieldData(Record record,
List<String> lstValue,
boolean bTestDirectoryError,
boolean bAddNewValue,
List<RecordField> listRecordField,
Locale locale)
save in the list of record field the record field associate to the entry
|
fr.paris.lutece.util.ReferenceList |
getReferenceListRegularExpression(IEntry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of regular expression who is use in the template modify
|
String |
getTemplateCreate()
Get template create url
|
String |
getTemplateHtmlFormEntry(boolean isDisplayFront)
Get the url of the template wich contains the Html code used in entry form
|
String |
getTemplateHtmlRecordFieldValue(boolean isDisplayFront)
Get the url of the template wich contains the Html code used in display records
|
String |
getTemplateModify()
Get the template modify url
|
protected void |
setFields(javax.servlet.http.HttpServletRequest request,
List<Field> listFields)
Set the fields
|
canUploadFiles, checkRecordFieldData, getFileSources, setFields
addSearchCriteria, convertRecordFieldTitleToString, convertRecordFieldValueToString, getAnonymize, getChildren, getComment, getDirectory, getDisplayHeight, getDisplayWidth, getEntryAssociate, getEntryType, getFields, getHelpMessage, getHelpMessageSearch, getHtmlFormEntry, getHtmlFormEntry, getHtmlFormEntryPopup, getHtmlFormSearchEntry, getHtmlFormSearchEntry, getHtmlListEntry, getHtmlRecordFieldValue, getIdEntry, getImportRecordFieldData, getLabelValueAllSearch, getMapProvider, getNumberColumn, getNumberRow, getParent, getPosition, getRequestSQL, getSQLJoin, getSQLOrderBy, getSQLParametersValues, getTemplateHtmlFormSearchEntry, getTitle, getXml, isAddValueAllSearch, isAnonymizable, isAutocompleteEntry, isFieldInLine, isFirstInTheList, isIndexed, isIndexedAsSummary, isIndexedAsTitle, isLastInTheList, isMandatory, isMultipleSearchFields, isRoleAssociated, isShownInAdvancedSearch, isShownInCompleteness, isShownInExport, isShownInHistory, isShownInResultList, isShownInResultRecord, isSortable, isWorkgroupAssociated, setAddValueAllSearch, setAnonymize, setAutocompleteEntry, setChildren, setComment, setDirectory, setDisplayHeight, setDisplayWidth, setEntryAssociate, setEntryType, setFieldInLine, setFields, setFirstInTheList, setHelpMessage, setHelpMessageSearch, setIdEntry, setIndexed, setIndexedAsSummary, setIndexedAsTitle, setLabelValueAllSearch, setLastInTheList, setMandatory, setMapProvider, setMultipleSearchFields, setNumberColumn, setNumberRow, setParent, setPosition, setRequestSQL, setRoleAssociated, setShownInAdvancedSearch, setShownInCompleteness, setShownInExport, setShownInHistory, setShownInResultList, setShownInResultRecord, setTitle, setWorkgroupAssociated
protected static final String FIELD_THUMBNAIL_WIDTH
protected static final String FIELD_THUMBNAIL_HEIGHT
protected static final String FIELD_BIG_THUMBNAIL_WIDTH
protected static final String FIELD_BIG_THUMBNAIL_HEIGHT
protected static final String ERROR_FIELD_THUMBNAIL
protected static final String ERROR_FIELD_BIG_THUMBNAIL
public String getTemplateHtmlFormEntry(boolean isDisplayFront)
getTemplateHtmlFormEntry
in class Entry
isDisplayFront
- true if display for front office or false if display for back officepublic String getTemplateHtmlRecordFieldValue(boolean isDisplayFront)
getTemplateHtmlRecordFieldValue
in class Entry
isDisplayFront
- true if display for front office or false if display for back officepublic String getEntryData(javax.servlet.http.HttpServletRequest request, Locale locale)
getEntryData
in interface IEntry
getEntryData
in class Entry
request
- HttpRequestlocale
- the localepublic String getTemplateCreate()
getTemplateCreate
in interface IEntry
getTemplateCreate
in class Entry
public String getTemplateModify()
getTemplateModify
in interface IEntry
getTemplateModify
in class Entry
public void getRecordFieldData(Record record, List<String> lstValue, boolean bTestDirectoryError, boolean bAddNewValue, List<RecordField> listRecordField, Locale locale) throws DirectoryErrorException
getRecordFieldData
in interface IEntry
getRecordFieldData
in class Entry
record
- the record associated to the record fieldlstValue
- the list which contains the string value of the record fieldbTestDirectoryError
- true if the value contains in the request must be testedbAddNewValue
- true if add new valuelistRecordField
- the list of record field associate to the recordlocale
- the localeDirectoryErrorException
- If an error occurspublic void getImportRecordFieldData(Record record, String strImportValue, boolean bTestDirectoryError, List<RecordField> listRecordField, Locale locale) throws DirectoryErrorException
getImportRecordFieldData
in interface IEntry
getImportRecordFieldData
in class Entry
record
- the record associated to the record fieldstrImportValue
- the import string which contains the string value of the record fieldbTestDirectoryError
- true if the value contains in the request must be testedlistRecordField
- the list of record field associate to the recordlocale
- the localeDirectoryErrorException
- If an error occurspublic void getRecordFieldData(Record record, javax.servlet.http.HttpServletRequest request, boolean bTestDirectoryError, boolean bAddNewValue, List<RecordField> listRecordField, Locale locale) throws DirectoryErrorException
getRecordFieldData
in interface IEntry
getRecordFieldData
in class Entry
record
- the record associated to the record fieldrequest
- HttpRequestbTestDirectoryError
- true if the value contains in the request must be testedbAddNewValue
- true if add new valuelistRecordField
- the list of record field associate to the recordlocale
- the localeDirectoryErrorException
- If an error occurspublic fr.paris.lutece.util.html.Paginator getPaginator(int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, 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 indexpublic 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 pluginpublic fr.paris.lutece.portal.web.util.LocalizedPaginator getPaginator(int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, 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
- Localeprotected String checkEntryData(javax.servlet.http.HttpServletRequest request, Locale locale)
checkEntryData
in class AbstractEntryTypeUpload
request
- the HTTP requestlocale
- the localeprotected void setFields(javax.servlet.http.HttpServletRequest request, List<Field> listFields)
setFields
in class AbstractEntryTypeUpload
request
- the HTTP requestlistFields
- the list of fields to setprotected void checkRecordFieldData(org.apache.commons.fileupload.FileItem fileItem, Locale locale) throws DirectoryErrorException
checkRecordFieldData
in class AbstractEntryTypeUpload
fileItem
- the file itemlocale
- the localeDirectoryErrorException
- exception if there is an errorCopyright © 2020 City of Paris. All rights reserved.