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 IEntryTypeServiceInterface for entry type services
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GenericAttributeErrorcanUploadFiles(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.StringgetAnonymizationHelpMessage(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 entryStringgetRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)Get the request dataGenericAttributeErrorgetResponseData(Entry entry, javax.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(javax.servlet.http.HttpServletRequest request)Return the iteration number for a response from the requestStringgetResponseValueForExport(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)Get the response value associate to the entry to export in the file exportStringgetResponseValueForRecap(Entry entry, javax.servlet.http.HttpServletRequest request, Response response, Locale locale)Get the response value associate to the entry to write in the recapStringgetTemplateCreate(Entry entry, boolean bDisplayFront)Get template create URL of the entryStringgetTemplateEntryReadOnly()Return the template associated to an EntryType for read only usesStringgetTemplateEntryReadOnly(boolean bDisplayFront)Return the template associated to an EntryType for read only usesStringgetTemplateHtmlForm(Entry entry, boolean bDisplayFront)Get the template to display the creation or modification form of an entry of this entry typeStringgetTemplateModify(Entry entry, boolean bDisplayFront)Get the template modify URL of the entryList<IEntryAnonymizationType>getValidWildcards()get the list of valids wildcard for the entryvoidsetResponseToStringValue(Entry entry, Response response, Locale locale)Sets the string value of the response
-
-
-
Field Detail
-
PARAMETER_MAX_FILES
static final String PARAMETER_MAX_FILES
- See Also:
- Constant Field Values
-
PARAMETER_FILE_MAX_SIZE
static final String PARAMETER_FILE_MAX_SIZE
- See Also:
- Constant Field Values
-
PARAMETER_EXPORT_BINARY
static final String PARAMETER_EXPORT_BINARY
- See Also:
- Constant Field Values
-
PARAMETER_ENTRY_CODE
static final String PARAMETER_ENTRY_CODE
- See Also:
- Constant Field Values
-
PARAMETER_TITLE
static final String PARAMETER_TITLE
- See Also:
- Constant Field Values
-
PARAMETER_HELP_MESSAGE
static final String PARAMETER_HELP_MESSAGE
- See Also:
- Constant Field Values
-
PARAMETER_COMMENT
static final String PARAMETER_COMMENT
- See Also:
- Constant Field Values
-
PARAMETER_MANDATORY
static final String PARAMETER_MANDATORY
- See Also:
- Constant Field Values
-
PARAMETER_FIELD_IN_LINE
static final String PARAMETER_FIELD_IN_LINE
- See Also:
- Constant Field Values
-
PARAMETER_HEIGHT
static final String PARAMETER_HEIGHT
- See Also:
- Constant Field Values
-
PARAMETER_WIDTH
static final String PARAMETER_WIDTH
- See Also:
- Constant Field Values
-
PARAMETER_VALUE
static final String PARAMETER_VALUE
- See Also:
- Constant Field Values
-
PARAMETER_MAX_SIZE_ENTER
static final String PARAMETER_MAX_SIZE_ENTER
- See Also:
- Constant Field Values
-
PARAMETER_CONFIRM_FIELD
static final String PARAMETER_CONFIRM_FIELD
- See Also:
- Constant Field Values
-
PARAMETER_CONFIRM_FIELD_TITLE
static final String PARAMETER_CONFIRM_FIELD_TITLE
- See Also:
- Constant Field Values
-
SUFFIX_CONFIRM_FIELD
static final String SUFFIX_CONFIRM_FIELD
- See Also:
- Constant Field Values
-
PREFIX_ATTRIBUTE
static final String PREFIX_ATTRIBUTE
- See Also:
- Constant Field Values
-
PREFIX_ITERATION_ATTRIBUTE
static final String PREFIX_ITERATION_ATTRIBUTE
- See Also:
- Constant Field Values
-
PARAMETER_UNIQUE
static final String PARAMETER_UNIQUE
- See Also:
- Constant Field Values
-
PARAMETER_CSS_CLASS
static final String PARAMETER_CSS_CLASS
- See Also:
- Constant Field Values
-
PARAMETER_ERROR_MESSAGE
static final String PARAMETER_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
PARAMETER_NUMBER_ROWS
static final String PARAMETER_NUMBER_ROWS
- See Also:
- Constant Field Values
-
PARAMETER_NUMBER_COLUMNS
static final String PARAMETER_NUMBER_COLUMNS
- See Also:
- Constant Field Values
-
PARAMETER_ONLY_DISPLAY_IN_BACK
static final String PARAMETER_ONLY_DISPLAY_IN_BACK
- See Also:
- Constant Field Values
-
PARAMETER_MAX_IMAGE_SIZE
static final String PARAMETER_MAX_IMAGE_SIZE
- See Also:
- Constant Field Values
-
PARAMETER_IMAGE_TYPE
static final String PARAMETER_IMAGE_TYPE
- See Also:
- Constant Field Values
-
PARAMETER_INDEXED
static final String PARAMETER_INDEXED
- See Also:
- Constant Field Values
-
PARAMETER_EXPORTABLE
static final String PARAMETER_EXPORTABLE
- See Also:
- Constant Field Values
-
PARAMETER_EXPORTABLE_PDF
static final String PARAMETER_EXPORTABLE_PDF
- See Also:
- Constant Field Values
-
PARAMETER_PUBLISHED
static final String PARAMETER_PUBLISHED
- See Also:
- Constant Field Values
-
PARAMETER_DISPLAY_BO
static final String PARAMETER_DISPLAY_BO
- See Also:
- Constant Field Values
-
PARAMETER_FILE
static final String PARAMETER_FILE
- See Also:
- Constant Field Values
-
PARAMETER_MIN
static final String PARAMETER_MIN
- See Also:
- Constant Field Values
-
PARAMETER_MAX
static final String PARAMETER_MAX
- See Also:
- Constant Field Values
-
PARAMETER_ANONYMIZABLE
static final String PARAMETER_ANONYMIZABLE
- See Also:
- Constant Field Values
-
PARAMETER_ANONYMIZE_PATTERN
static final String PARAMETER_ANONYMIZE_PATTERN
- See Also:
- Constant Field Values
-
PARAMETER_USE_REF_LIST
static final String PARAMETER_USE_REF_LIST
- See Also:
- Constant Field Values
-
PARAMETER_REF_LIST_SELECT
static final String PARAMETER_REF_LIST_SELECT
- See Also:
- Constant Field Values
-
PARAMETER_PLACEHOLDER
static final String PARAMETER_PLACEHOLDER
- See Also:
- Constant Field Values
-
PARAMETER_ILLUSTRATION_IMAGE
static final String PARAMETER_ILLUSTRATION_IMAGE
- See Also:
- Constant Field Values
-
PARAMETER_DISABLED
static final String PARAMETER_DISABLED
- See Also:
- Constant Field Values
-
PARAMETER_TODAY_DATE
static final String PARAMETER_TODAY_DATE
- See Also:
- Constant Field Values
-
PARAMETER_SORTABLE_LIST_TYPE
static final String PARAMETER_SORTABLE_LIST_TYPE
- See Also:
- Constant Field Values
-
FIELD_DATE_VALUE
static final String FIELD_DATE_VALUE
- See Also:
- Constant Field Values
-
FIELD_PROVIDER
static final String FIELD_PROVIDER
- See Also:
- Constant Field Values
-
FIELD_EDIT_MODE
static final String FIELD_EDIT_MODE
- See Also:
- Constant Field Values
-
FIELD_VIEW_NUMBER
static final String FIELD_VIEW_NUMBER
- See Also:
- Constant Field Values
-
FIELD_ID_ADDRESS
static final String FIELD_ID_ADDRESS
- See Also:
- Constant Field Values
-
FIELD_ADDRESS
static final String FIELD_ADDRESS
- See Also:
- Constant Field Values
-
FIELD_ADDITIONAL_ADDRESS
static final String FIELD_ADDITIONAL_ADDRESS
- See Also:
- Constant Field Values
-
FIELD_X
static final String FIELD_X
- See Also:
- Constant Field Values
-
FIELD_Y
static final String FIELD_Y
- See Also:
- Constant Field Values
-
FIELD_GEOMETRY
static final String FIELD_GEOMETRY
- See Also:
- Constant Field Values
-
FIELD_PREFIX
static final String FIELD_PREFIX
- See Also:
- Constant Field Values
-
FIELD_SUFFIX
static final String FIELD_SUFFIX
- See Also:
- Constant Field Values
-
FIELD_FILE_MAX_SIZE
static final String FIELD_FILE_MAX_SIZE
- See Also:
- Constant Field Values
-
FIELD_MAX_FILES
static final String FIELD_MAX_FILES
- See Also:
- Constant Field Values
-
FIELD_FILE_BINARY
static final String FIELD_FILE_BINARY
- See Also:
- Constant Field Values
-
FIELD_FILE_TYPE
static final String FIELD_FILE_TYPE
- See Also:
- Constant Field Values
-
FIELD_ANSWER_CHOICE
static final String FIELD_ANSWER_CHOICE
- See Also:
- Constant Field Values
-
FIELD_ARRAY_CELL
static final String FIELD_ARRAY_CELL
- See Also:
- Constant Field Values
-
FIELD_ATTRIBUTE_NAME
static final String FIELD_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
FIELD_CONFIRM
static final String FIELD_CONFIRM
- See Also:
- Constant Field Values
-
FIELD_MYLUTECE_ATTRIBUTE_NAME_CODE
static final String FIELD_MYLUTECE_ATTRIBUTE_NAME_CODE
- See Also:
- Constant Field Values
-
FIELD_ARRAY_ROW
static final String FIELD_ARRAY_ROW
- See Also:
- Constant Field Values
-
FIELD_ARRAY_COLUMN
static final String FIELD_ARRAY_COLUMN
- See Also:
- Constant Field Values
-
FIELD_IMAGE_TYPE
static final String FIELD_IMAGE_TYPE
- See Also:
- Constant Field Values
-
FIELD_WIDTH
static final String FIELD_WIDTH
- See Also:
- Constant Field Values
-
FIELD_HEIGHT
static final String FIELD_HEIGHT
- See Also:
- Constant Field Values
-
FIELD_MAX
static final String FIELD_MAX
- See Also:
- Constant Field Values
-
FIELD_MIN
static final String FIELD_MIN
- See Also:
- Constant Field Values
-
FIELD_MAX_SIZE
static final String FIELD_MAX_SIZE
- See Also:
- Constant Field Values
-
FIELD_TEXT_CONF
static final String FIELD_TEXT_CONF
- See Also:
- Constant Field Values
-
FIELD_EXPORTABLE
static final String FIELD_EXPORTABLE
- See Also:
- Constant Field Values
-
FIELD_EXPORTABLE_PDF
static final String FIELD_EXPORTABLE_PDF
- See Also:
- Constant Field Values
-
FIELD_PUBLISHED
static final String FIELD_PUBLISHED
- See Also:
- Constant Field Values
-
FIELD_RICHTEXT
static final String FIELD_RICHTEXT
- See Also:
- Constant Field Values
-
FIELD_DISPLAY_BO
static final String FIELD_DISPLAY_BO
- See Also:
- Constant Field Values
-
FIELD_DOWNLOADABLE_FILE
static final String FIELD_DOWNLOADABLE_FILE
- See Also:
- Constant Field Values
-
FIELD_USE_REF_LIST
static final String FIELD_USE_REF_LIST
- See Also:
- Constant Field Values
-
FIELD_ANONYMIZABLE
static final String FIELD_ANONYMIZABLE
- See Also:
- Constant Field Values
-
FIELD_PLACEHOLDER
static final String FIELD_PLACEHOLDER
- See Also:
- Constant Field Values
-
FIELD_ILLUSTRATION_IMAGE
static final String FIELD_ILLUSTRATION_IMAGE
- See Also:
- Constant Field Values
-
FIELD_GEOJSON
static final String FIELD_GEOJSON
- See Also:
- Constant Field Values
-
FIELD_ID_LAYER
static final String FIELD_ID_LAYER
- See Also:
- Constant Field Values
-
FIELD_DISABLED
static final String FIELD_DISABLED
- See Also:
- Constant Field Values
-
FIELD_IS_UPDATABLE
static final String FIELD_IS_UPDATABLE
- See Also:
- Constant Field Values
-
FIELD_SORTABLE_LIST_TYPE
static final String FIELD_SORTABLE_LIST_TYPE
- See Also:
- Constant Field Values
-
ATTRIBUTE_RESPONSE_ITERATION_NUMBER
static final String ATTRIBUTE_RESPONSE_ITERATION_NUMBER
- See Also:
- Constant Field Values
-
MESSAGE_MANDATORY_FIELD
static final String MESSAGE_MANDATORY_FIELD
- See Also:
- Constant Field Values
-
MESSAGE_NUMERIC_FIELD
static final String MESSAGE_NUMERIC_FIELD
- See Also:
- Constant Field Values
-
MESSAGE_CONFIRM_FIELD
static final String MESSAGE_CONFIRM_FIELD
- See Also:
- Constant Field Values
-
MESSAGE_UNIQUE_FIELD
static final String MESSAGE_UNIQUE_FIELD
- See Also:
- Constant Field Values
-
MESSAGE_XSS_FIELD
static final String MESSAGE_XSS_FIELD
- See Also:
- Constant Field Values
-
MESSAGE_MAXLENGTH
static final String MESSAGE_MAXLENGTH
- See Also:
- Constant Field Values
-
MESSAGE_INVALID_SQL_QUERY
static final String MESSAGE_INVALID_SQL_QUERY
- See Also:
- Constant Field Values
-
MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED
static final String MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED
- See Also:
- Constant Field Values
-
ERROR_FIELD_TITLE
static final String ERROR_FIELD_TITLE
- See Also:
- Constant Field Values
-
ERROR_FIELD_MAX_FILES
static final String ERROR_FIELD_MAX_FILES
- See Also:
- Constant Field Values
-
ERROR_FIELD_FILE_MAX_SIZE
static final String ERROR_FIELD_FILE_MAX_SIZE
- See Also:
- Constant Field Values
-
FIELD_INSERT_GROUP
static final String FIELD_INSERT_GROUP
- See Also:
- Constant Field Values
-
FIELD_COMMENT
static final String FIELD_COMMENT
- See Also:
- Constant Field Values
-
ERROR_FIELD_WIDTH
static final String ERROR_FIELD_WIDTH
- See Also:
- Constant Field Values
-
ERROR_FIELD_HEIGHT
static final String ERROR_FIELD_HEIGHT
- See Also:
- Constant Field Values
-
FIELD_MAX_SIZE_ENTER
static final String FIELD_MAX_SIZE_ENTER
- See Also:
- Constant Field Values
-
FIELD_NUMBER_ROWS
static final String FIELD_NUMBER_ROWS
- See Also:
- Constant Field Values
-
FIELD_NUMBER_COLUMNS
static final String FIELD_NUMBER_COLUMNS
- See Also:
- Constant Field Values
-
FIELD_CONFIRM_FIELD_TITLE
static final String FIELD_CONFIRM_FIELD_TITLE
- See Also:
- Constant Field Values
-
ERROR_FIELD_FILE_TYPE
static final String ERROR_FIELD_FILE_TYPE
- See Also:
- Constant Field Values
-
ERROR_FIELD_REF_LIST
static final String ERROR_FIELD_REF_LIST
- See Also:
- Constant Field Values
-
MESSAGE_ERROR_IMPOSSIBLE_SLOT
static final String MESSAGE_ERROR_IMPOSSIBLE_SLOT
- See Also:
- Constant Field Values
-
MESSAGE_ERROR_SLOT
static final String MESSAGE_ERROR_SLOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTemplateHtmlForm
String getTemplateHtmlForm(Entry entry, boolean bDisplayFront)
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
String getTemplateCreate(Entry entry, boolean bDisplayFront)
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
String getTemplateModify(Entry entry, boolean bDisplayFront)
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
String getRequestData(Entry entry, javax.servlet.http.HttpServletRequest request, Locale locale)
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
-
getResponseData
GenericAttributeError getResponseData(Entry entry, javax.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, javax.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, javax.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<org.apache.commons.fileupload.FileItem> listUploadedFileItems, List<org.apache.commons.fileupload.FileItem> 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
void setResponseToStringValue(Entry entry, Response response, Locale locale)
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(javax.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
String getTemplateEntryReadOnly(boolean bDisplayFront)
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
String getAnonymizationHelpMessage(Locale locale)
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:
-
-