fr.paris.lutece.plugins.genericattributes.service.entrytype
Interface IEntryTypeService

All Known Implementing Classes:
AbstractEntryTypeArray, AbstractEntryTypeCheckBox, AbstractEntryTypeComment, AbstractEntryTypeDate, AbstractEntryTypeFile, AbstractEntryTypeGeolocation, AbstractEntryTypeGroup, AbstractEntryTypeMyLuteceUser, AbstractEntryTypeNumbering, AbstractEntryTypeRadioButton, AbstractEntryTypeSelect, AbstractEntryTypeSelectSQL, AbstractEntryTypeSession, AbstractEntryTypeText, AbstractEntryTypeTextArea, AbstractEntryTypeUpload, EntryTypeService

public interface IEntryTypeService

Interface for entry type services


Field Summary
static String FIELD_COMMENT
           
static String FIELD_CONFIRM_FIELD_TITLE
           
static String FIELD_HEIGHT
           
static String FIELD_INSERT_GROUP
           
static String FIELD_MAX_SIZE_ENTER
           
static String FIELD_NUMBER_COLUMNS
           
static String FIELD_NUMBER_ROWS
           
static String FIELD_TITLE
           
static String FIELD_WIDTH
           
static String MESSAGE_CONFIRM_FIELD
           
static String MESSAGE_MANDATORY_FIELD
           
static String MESSAGE_MAXLENGTH
           
static String MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED
           
static String MESSAGE_NUMERIC_FIELD
           
static String MESSAGE_UNIQUE_FIELD
           
static String MESSAGE_XSS_FIELD
           
static String PARAMETER_COMMENT
           
static String PARAMETER_CONFIRM_FIELD
           
static String PARAMETER_CONFIRM_FIELD_TITLE
           
static String PARAMETER_CSS_CLASS
           
static String PARAMETER_ERROR_MESSAGE
           
static String PARAMETER_FIELD_IN_LINE
           
static String PARAMETER_HEIGHT
           
static String PARAMETER_HELP_MESSAGE
           
static String PARAMETER_MANDATORY
           
static String PARAMETER_MAX_SIZE_ENTER
           
static String PARAMETER_NUMBER_COLUMNS
           
static String PARAMETER_NUMBER_ROWS
           
static String PARAMETER_TITLE
           
static String PARAMETER_UNIQUE
           
static String PARAMETER_VALUE
           
static String PARAMETER_WIDTH
           
static String PREFIX_ATTRIBUTE
           
static String SUFFIX_CONFIRM_FIELD
           
 
Method Summary
 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.
 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
 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)
          Generate the list of responses associated with the given entry from the request, and saved it into the Entry object.
 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
 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
 String getTemplateCreate(Entry entry, boolean bDisplayFront)
          Get template create URL of the entry
 String getTemplateHtmlForm(Entry entry, boolean bDisplayFront)
          Get the template to display the creation or modification form of an entry of this entry type
 String getTemplateModify(Entry entry, boolean bDisplayFront)
          Get the template modify URL of the entry
 void setResponseToStringValue(Entry entry, Response response, Locale locale)
          Sets the string value of the response
 

Field Detail

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

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

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_MYLUTECE_AUTHENTIFICATION_REQUIRED

static final String MESSAGE_MYLUTECE_AUTHENTIFICATION_REQUIRED
See Also:
Constant Field Values

FIELD_TITLE

static final String FIELD_TITLE
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

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_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
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 entry
bDisplayFront - 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 entry
bDisplayFront - 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 entry
bDisplayFront - 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 entry
request - HttpRequest
locale - 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 entry
request - HttpRequest
listResponse - 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 entry
plugin - 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 entry
response - the response associate to the entry
locale - the locale
request - 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 entry
response - the response associate to the entry
locale - the locale
request - 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 entry
listUploadedFileItems - the list of uploaded files
listFileItemsToUpload - the list of files to upload
locale - 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 entry
response - the response
locale - the locale - will use a default one if not specified


Copyright © 2014 Mairie de Paris. All Rights Reserved.