fr.paris.lutece.plugins.form.business
Class EntryTypeSession

java.lang.Object
  extended by fr.paris.lutece.plugins.form.business.Entry
      extended by fr.paris.lutece.plugins.form.business.EntryTypeSession
All Implemented Interfaces:
IEntry

public class EntryTypeSession
extends Entry

class EntryTypeSession This entry is used to fetch the value of a session's attribute. One example is when coupling form with crm, the module-crm-form will put in session the ID demand and the user GUID. This entry will be able to fetch the ID demand and user GUID when validating the form. Then, it is easier to export the value to directory with the module-form-exportdirectory.


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.form.business.Entry
EMPTY_STRING, FIELD_COMMENT, FIELD_CONFIRM_FIELD, FIELD_CONFIRM_FIELD_TITLE, FIELD_HEIGHT, FIELD_HELP_MESSAGE, FIELD_INSERT_GROUP, FIELD_MANDATORY, FIELD_MAX_SIZE_ENTER, FIELD_PRESENTATION, FIELD_TITLE, FIELD_VALUE, FIELD_WIDTH, JSP_DOWNLOAD_FILE, MARK_ENTRY, MESSAGE_CONFIRM_FIELD, 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_FIELD_IN_LINE, PARAMETER_HEIGHT, PARAMETER_HELP_MESSAGE, PARAMETER_MANDATORY, PARAMETER_MAX_SIZE_ENTER, PARAMETER_TITLE, PARAMETER_UNIQUE, PARAMETER_VALUE, PARAMETER_WIDTH, SUFFIX_CONFIRM_FIELD
 
Constructor Summary
EntryTypeSession()
           
 
Method Summary
 java.lang.String getHtmlCode()
          Get the HtmlCode of the entry
 java.lang.String getRequestData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
          Get the request data
 FormError getResponseData(javax.servlet.http.HttpServletRequest request, java.util.List<Response> listResponse, java.util.Locale locale)
          save in the list of response the response associate to the entry in the form submit
 java.lang.String getResponseValueForExport(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)
          Get the response value associate to the entry to export in the file export
 java.lang.String getResponseValueForRecap(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)
          Get the response value associate to the entry to write in the recap
 java.lang.String getTemplateCreate()
          Get template create url of the entry
 java.lang.String getTemplateModify()
          Get the template modify url of the entry
 
Methods inherited from class fr.paris.lutece.plugins.form.business.Entry
canUploadFiles, getChildren, getComment, getConfirmFieldTitle, getEntryType, getFieldDepend, getFields, getForm, getFormError, getHelpMessage, getIdEntry, getMapProvider, getNumberConditionalQuestion, getPaginator, getPaginator, getParent, getPosition, getReferenceListRegularExpression, getTitle, isConfirmField, isFieldInLine, isFile, isFirstInTheList, isLastInTheList, isMandatory, isUnique, setChildren, setComment, setConfirmField, setConfirmFieldTitle, setEntryType, setFieldDepend, setFieldInLine, setFields, setFirstInTheList, setForm, setFormError, setHelpMessage, setIdEntry, setLastInTheList, setMandatory, setMapProvider, setNumberConditionalQuestion, setParent, setPosition, setResponseToStringValue, setTitle, setUnique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryTypeSession

public EntryTypeSession()
Method Detail

getHtmlCode

public java.lang.String getHtmlCode()
Get the HtmlCode of the entry

Specified by:
getHtmlCode in interface IEntry
Overrides:
getHtmlCode in class Entry
Returns:
the HtmlCode of the entry

getTemplateCreate

public java.lang.String getTemplateCreate()
Get template create url of the entry

Specified by:
getTemplateCreate in interface IEntry
Overrides:
getTemplateCreate in class Entry
Returns:
template create url of the entry

getTemplateModify

public java.lang.String getTemplateModify()
Get the template modify url of the entry

Specified by:
getTemplateModify in interface IEntry
Overrides:
getTemplateModify in class Entry
Returns:
template modify url of the entry

getRequestData

public java.lang.String getRequestData(javax.servlet.http.HttpServletRequest request,
                                       java.util.Locale locale)
Get the request data

Specified by:
getRequestData in interface IEntry
Overrides:
getRequestData in class Entry
Parameters:
request - HttpRequest
locale - the locale
Returns:
null if all data requiered are in the request else the url of jsp error

getResponseData

public FormError getResponseData(javax.servlet.http.HttpServletRequest request,
                                 java.util.List<Response> listResponse,
                                 java.util.Locale locale)
save in the list of response the response associate to the entry in the form submit

Specified by:
getResponseData in interface IEntry
Overrides:
getResponseData in class Entry
Parameters:
request - HttpRequest
listResponse - the list of response associate to the entry in the form submit
locale - the locale
Returns:
a Form error object if there is an error in the response

getResponseValueForExport

public java.lang.String getResponseValueForExport(javax.servlet.http.HttpServletRequest request,
                                                  Response response,
                                                  java.util.Locale locale)
Get the response value associate to the entry to export in the file export

Specified by:
getResponseValueForExport in interface IEntry
Overrides:
getResponseValueForExport in class Entry
Parameters:
request - the request
response - the response associate to the entry
locale - the locale
Returns:
the response value associate to the entry to export in the file export

getResponseValueForRecap

public java.lang.String getResponseValueForRecap(javax.servlet.http.HttpServletRequest request,
                                                 Response response,
                                                 java.util.Locale locale)
Get the response value associate to the entry to write in the recap

Specified by:
getResponseValueForRecap in interface IEntry
Overrides:
getResponseValueForRecap in class Entry
Parameters:
request - the request
response - the response associate to the entry
locale - the locale
Returns:
the response value associate to the entry to write in the recap


Copyright © 2012 Mairie de Paris. All Rights Reserved.