Interface IEntryTypeService
- All Known Implementing Classes:
AbstractEntryTypeArray,AbstractEntryTypeCamera,AbstractEntryTypeCartography,AbstractEntryTypeCheckBox,AbstractEntryTypeChoice,AbstractEntryTypeComment,AbstractEntryTypeDate,AbstractEntryTypeFile,AbstractEntryTypeGalleryImage,AbstractEntryTypeGeolocation,AbstractEntryTypeGroup,AbstractEntryTypeImage,AbstractEntryTypeMyLuteceUser,AbstractEntryTypeNumber,AbstractEntryTypeNumbering,AbstractEntryTypeRadioButton,AbstractEntryTypeSelect,AbstractEntryTypeSelectOrder,AbstractEntryTypeSelectSQL,AbstractEntryTypeSession,AbstractEntryTypeSlot,AbstractEntryTypeTelephoneNumber,AbstractEntryTypeText,AbstractEntryTypeTextArea,AbstractEntryTypeUpload,EntryTypeService
public interface IEntryTypeService
Interface for entry type services
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptioncanUploadFiles(Entry entry, List<fr.paris.lutece.portal.service.upload.MultipartItem> listUploadedFileItems, List<fr.paris.lutece.portal.service.upload.MultipartItem> listFileItemsToUpload, Locale locale) Check if the file can be uploaded or not.getAnonymizationHelpMessage(Locale locale) Creates the help message for the enrty anonymisation config.fr.paris.lutece.util.ReferenceListgetReferenceListRegularExpression(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 entrygetRequestData(Entry entry, jakarta.servlet.http.HttpServletRequest request, Locale locale) Get the request datagetRequestData(Entry entry, jakarta.servlet.http.HttpServletRequest request, Locale locale, String errorReturnUrl) Get the request datagetResponseData(Entry entry, jakarta.servlet.http.HttpServletRequest request, List<Response> listResponse, Locale locale) Generate the list of responses associated with the given entry from the request, and saved it into the Entry object.intgetResponseIterationValue(jakarta.servlet.http.HttpServletRequest request) Return the iteration number for a response from the requestgetResponseValueForExport(Entry entry, jakarta.servlet.http.HttpServletRequest request, Response response, Locale locale) Get the response value associate to the entry to export in the file exportgetResponseValueForRecap(Entry entry, jakarta.servlet.http.HttpServletRequest request, Response response, Locale locale) Get the response value associate to the entry to write in the recapgetTemplateCreate(Entry entry, boolean bDisplayFront) Get template create URL of the entryReturn the template associated to an EntryType for read only usesgetTemplateEntryReadOnly(boolean bDisplayFront) Return the template associated to an EntryType for read only usesgetTemplateHtmlForm(Entry entry, boolean bDisplayFront) Get the template to display the creation or modification form of an entry of this entry typegetTemplateModify(Entry entry, boolean bDisplayFront) Get the template modify URL of the entryget the list of valids wildcard for the entrydefault booleanTell whether the responses to the entries of this entry type can be controlled by the regular expression of their entry type.voidsetResponseToStringValue(Entry entry, Response response, Locale locale) Sets the string value of the response
-
Field Details
-
PARAMETER_MAX_FILES
- See Also:
-
PARAMETER_FILE_MAX_SIZE
- See Also:
-
PARAMETER_EXPORT_BINARY
- See Also:
-
PARAMETER_ENTRY_CODE
- See Also:
-
PARAMETER_TITLE
- See Also:
-
PARAMETER_HELP_MESSAGE
- See Also:
-
PARAMETER_COMMENT
- See Also:
-
PARAMETER_MANDATORY
- See Also:
-
PARAMETER_FIELD_IN_LINE
- See Also:
-
PARAMETER_HEIGHT
- See Also:
-
PARAMETER_WIDTH
- See Also:
-
PARAMETER_VALUE
- See Also:
-
PARAMETER_MAX_SIZE_ENTER
- See Also:
-
PARAMETER_CONFIRM_FIELD
- See Also:
-
PARAMETER_CONFIRM_FIELD_TITLE
- See Also:
-
SUFFIX_CONFIRM_FIELD
- See Also:
-
PREFIX_ATTRIBUTE
- See Also:
-
PREFIX_ITERATION_ATTRIBUTE
- See Also:
-
PARAMETER_UNIQUE
- See Also:
-
PARAMETER_CSS_CLASS
- See Also:
-
PARAMETER_ERROR_MESSAGE
- See Also:
-
PARAMETER_NUMBER_ROWS
- See Also:
-
PARAMETER_NUMBER_COLUMNS
- See Also:
-
PARAMETER_ONLY_DISPLAY_IN_BACK
- See Also:
-
PARAMETER_MAX_IMAGE_SIZE
- See Also:
-
PARAMETER_IMAGE_TYPE
- See Also:
-
PARAMETER_INDEXED
- See Also:
-
PARAMETER_EXPORTABLE
- See Also:
-
PARAMETER_EXPORTABLE_PDF
- See Also:
-
PARAMETER_PUBLISHED
- See Also:
-
PARAMETER_DISPLAY_BO
- See Also:
-
PARAMETER_FILE
- See Also:
-
PARAMETER_MIN
- See Also:
-
PARAMETER_MAX
- See Also:
-
PARAMETER_ANONYMIZABLE
- See Also:
-
PARAMETER_ANONYMIZE_PATTERN
- See Also:
-
PARAMETER_USE_REF_LIST
- See Also:
-
PARAMETER_REF_LIST_SELECT
- See Also:
-
PARAMETER_PLACEHOLDER
- See Also:
-
PARAMETER_ILLUSTRATION_IMAGE
- See Also:
-
PARAMETER_DISABLED
- See Also:
-
PARAMETER_TODAY_DATE
- See Also:
-
PARAMETER_SORTABLE_LIST_TYPE
- See Also:
-
PARAMETER_AUTOCOMPLETE
- See Also:
-
FIELD_DATE_VALUE
- See Also:
-
FIELD_PROVIDER
- See Also:
-
FIELD_EDIT_MODE
- See Also:
-
FIELD_VIEW_NUMBER
- See Also:
-
FIELD_ID_ADDRESS
- See Also:
-
FIELD_ADDRESS
- See Also:
-
FIELD_ADDITIONAL_ADDRESS
- See Also:
-
FIELD_X
- See Also:
-
FIELD_Y
- See Also:
-
FIELD_GEOMETRY
- See Also:
-
FIELD_PREFIX
- See Also:
-
FIELD_SUFFIX
- See Also:
-
FIELD_FILE_CONFIG
- See Also:
-
FIELD_FILE_MAX_SIZE
- See Also:
-
FIELD_MAX_FILES
- See Also:
-
FIELD_FILE_BINARY
- See Also:
-
FIELD_FILE_TYPE
- See Also:
-
FIELD_ANSWER_CHOICE
- See Also:
-
FIELD_ARRAY_CELL
- See Also:
-
FIELD_ATTRIBUTE_NAME
- See Also:
-
FIELD_CONFIRM
- See Also:
-
FIELD_MYLUTECE_ATTRIBUTE_NAME_CODE
- See Also:
-
FIELD_ARRAY_ROW
- See Also:
-
FIELD_ARRAY_COLUMN
- See Also:
-
FIELD_IMAGE_TYPE
- See Also:
-
FIELD_WIDTH
- See Also:
-
FIELD_HEIGHT
- See Also:
-
FIELD_MAX
- See Also:
-
FIELD_MIN
- See Also:
-
FIELD_MAX_SIZE
- See Also:
-
FIELD_TEXT_CONF
- See Also:
-
FIELD_EXPORTABLE
- See Also:
-
FIELD_EXPORTABLE_PDF
- See Also:
-
FIELD_PUBLISHED
- See Also:
-
FIELD_RICHTEXT
- See Also:
-
FIELD_DISPLAY_BO
- See Also:
-
FIELD_DOWNLOADABLE_FILE
- See Also:
-
FIELD_USE_REF_LIST
- See Also:
-
FIELD_ANONYMIZABLE
- See Also:
-
FIELD_PLACEHOLDER
- See Also:
-
FIELD_ILLUSTRATION_IMAGE
- See Also:
-
FIELD_GEOJSON
- See Also:
-
FIELD_ID_LAYER
- See Also:
-
FIELD_DISABLED
- See Also:
-
FIELD_IS_UPDATABLE
- See Also:
-
FIELD_SORTABLE_LIST_TYPE
- See Also:
-
FIELD_AUTOCOMPLETE
- See Also:
-
ATTRIBUTE_RESPONSE_ITERATION_NUMBER
- See Also:
-
MESSAGE_MANDATORY_FIELD
- See Also:
-
MESSAGE_NUMERIC_FIELD
- See Also:
-
MESSAGE_NUMERIC_MAX
- See Also:
-
MESSAGE_NUMERIC_MIN
- See Also:
-
MESSAGE_CONFIRM_FIELD
- See Also:
-
MESSAGE_UNIQUE_FIELD
- See Also:
-
MESSAGE_XSS_FIELD
- See Also:
-
MESSAGE_MAXLENGTH
- See Also:
-
MESSAGE_REGEX_FIELD
- See Also:
-
MESSAGE_INVALID_SQL_QUERY
- See Also:
-
MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED
- See Also:
-
ERROR_FIELD_TITLE
- See Also:
-
ERROR_FIELD_MAX_FILES
- See Also:
-
ERROR_FIELD_FILE_MAX_SIZE
- See Also:
-
FIELD_INSERT_GROUP
- See Also:
-
FIELD_COMMENT
- See Also:
-
ERROR_FIELD_WIDTH
- See Also:
-
ERROR_FIELD_HEIGHT
- See Also:
-
FIELD_MAX_SIZE_ENTER
- See Also:
-
FIELD_NUMBER_ROWS
- See Also:
-
FIELD_NUMBER_COLUMNS
- See Also:
-
FIELD_CONFIRM_FIELD_TITLE
- See Also:
-
ERROR_FIELD_FILE_TYPE
- See Also:
-
ERROR_FIELD_REF_LIST
- See Also:
-
MESSAGE_ERROR_IMPOSSIBLE_SLOT
- See Also:
-
MESSAGE_ERROR_SLOT
- See Also:
-
-
Method Details
-
getTemplateHtmlForm
Get the template to display the creation or modification form of an entry of this entry type- Parameters:
entry- The entrybDisplayFront- True if the template will be used to display content in Front Office, false if it will be used to display content in back office- Returns:
- the HtmlCode of the entry
-
getTemplateCreate
Get template create URL of the entry- Parameters:
entry- The entrybDisplayFront- True if the template will be used to display content in Front Office, false if it will be used to display content in back office- Returns:
- template create URL of the entry
-
getTemplateModify
Get the template modify URL of the entry- Parameters:
entry- The entrybDisplayFront- True if the template will be used to display content in Front Office, false if it will be used to display content in back office- Returns:
- template modify URL of the entry
-
getRequestData
Get the request data- Parameters:
entry- The entryrequest- HttpRequestlocale- the locale- Returns:
- null if all data required are in the request else the url of jsp error
-
getRequestData
String getRequestData(Entry entry, jakarta.servlet.http.HttpServletRequest request, Locale locale, String errorReturnUrl) Get the request data- Parameters:
entry- The entryrequest- HttpRequestlocale- the localeerrorReturnUrl- url to go to after displaying a message when an error occurs- Returns:
- null if all data required are in the request else the url of jsp error
-
getResponseData
GenericAttributeError getResponseData(Entry entry, jakarta.servlet.http.HttpServletRequest request, List<Response> listResponse, Locale locale) Generate the list of responses associated with the given entry from the request, and saved it into the Entry object.- Parameters:
entry- The entryrequest- HttpRequestlistResponse- the list of response associate to the entry. Newly created response will be inserted in this list.locale- the locale- Returns:
- a GenericAttributeError object if there is an error in the response
-
getReferenceListRegularExpression
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- Parameters:
entry- the entryplugin- the plugin- Returns:
- the regular expression list who is use in the template modify of the entry
-
getResponseValueForExport
String getResponseValueForExport(Entry entry, jakarta.servlet.http.HttpServletRequest request, Response response, Locale locale) Get the response value associate to the entry to export in the file export- Parameters:
entry- The entryresponse- the response associate to the entrylocale- the localerequest- the request- Returns:
- the response value associate to the entry to export in the file export
-
getResponseValueForRecap
String getResponseValueForRecap(Entry entry, jakarta.servlet.http.HttpServletRequest request, Response response, Locale locale) Get the response value associate to the entry to write in the recap- Parameters:
entry- The entryresponse- the response associate to the entrylocale- the localerequest- the request- Returns:
- the response value associate to the entry to write in the recap
-
canUploadFiles
GenericAttributeError canUploadFiles(Entry entry, List<fr.paris.lutece.portal.service.upload.MultipartItem> listUploadedFileItems, List<fr.paris.lutece.portal.service.upload.MultipartItem> listFileItemsToUpload, Locale locale) Check if the file can be uploaded or not. This method will check the size of each file and the number max of files that can be uploaded.- Parameters:
entry- The entrylistUploadedFileItems- the list of uploaded fileslistFileItemsToUpload- the list of files to uploadlocale- the locale- Returns:
- The error if there is any
-
setResponseToStringValue
Sets the string value of the response- Parameters:
entry- The entryresponse- the responselocale- the locale - will use a default one if not specified
-
getResponseIterationValue
int getResponseIterationValue(jakarta.servlet.http.HttpServletRequest request) Return the iteration number for a response from the request- Parameters:
request- the request to retrieve the iteration number of the response from- Returns:
- the value of the iteration number
-
getTemplateEntryReadOnly
String getTemplateEntryReadOnly()Return the template associated to an EntryType for read only uses- Returns:
- the template associated to an EntryType for read only uses
-
getTemplateEntryReadOnly
Return the template associated to an EntryType for read only uses- Parameters:
bDisplayFront- true- Returns:
- the template associated to an EntryType for read only uses
-
getAnonymizationHelpMessage
Creates the help message for the enrty anonymisation config.- Parameters:
locale-- Returns:
-
getValidWildcards
List<IEntryAnonymizationType> getValidWildcards()get the list of valids wildcard for the entry- Returns:
-
isRegularExpressionSupported
default boolean isRegularExpressionSupported()Tell whether the responses to the entries of this entry type can be controlled by the regular expression of their entry type. Only such entry types can carry a regular expression in the entry type management.- Returns:
- true if the regular expression of the entry type is checked on the responses
-