Class Entry
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.Entry
-
- All Implemented Interfaces:
IEntry
- Direct Known Subclasses:
EntryTypeCheckBox,EntryTypeComment,EntryTypeDate,EntryTypeFile,EntryTypeGroup,EntryTypeRadioButton,EntryTypeSelect,EntryTypeSelectSQL,EntryTypeText,EntryTypeTextArea
public class Entry extends java.lang.Object implements IEntry
class Entry
-
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IEntry>getChildren()java.lang.StringgetComment()java.lang.StringgetConfirmFieldTitle()Get the title of the confirmation fieldEntryTypegetEntryType()FieldgetFieldDepend()java.util.List<Field>getFields()FormgetForm()java.lang.StringgetHelpMessage()java.lang.StringgetHtmlCode()Get the HtmlCode of the entryintgetIdEntry()intgetNumberConditionalQuestion()fr.paris.lutece.util.html.PaginatorgetPaginator(int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex)The paginator who is use in the template modify of the entryIEntrygetParent()intgetPosition()fr.paris.lutece.util.ReferenceListgetReferenceListRegularExpression(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of regular expression who is use in the template modify of the entryjava.lang.StringgetRequestData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)Get the request dataFormErrorgetResponseData(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 submitjava.lang.StringgetResponseValueForExport(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)Get the response value associate to the entry to export in the file exportjava.lang.StringgetResponseValueForRecap(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)Get the response value associate to the entry to write in the recapjava.lang.StringgetTemplateCreate()Get template create url of the entryjava.lang.StringgetTemplateModify()Get the template modify url of the entryjava.lang.StringgetTitle()booleanisConfirmField()Get the confirmField valuebooleanisFieldInLine()booleanisFirstInTheList()booleanisLastInTheList()booleanisMandatory()booleanisUnique()voidsetChildren(java.util.List<IEntry> children)set the list of entry who are insert in the groupvoidsetComment(java.lang.String comment)set entry commentvoidsetConfirmField(boolean bConfirmField)Set the confirmFieldvoidsetConfirmFieldTitle(java.lang.String strConfirmFieldTitle)Set the title of the confirmation fieldvoidsetEntryType(EntryType entryType)set the type of the entryvoidsetFieldDepend(Field depend)set the field if the entry is a conditional questionvoidsetFieldInLine(boolean fieldInLine)set true if the field associate must be display in linevoidsetFields(java.util.List<Field> fields)set the list of field who are associate to the entryvoidsetFirstInTheList(boolean firstInTheList)set true if the entry is the first entry of a group or the list of entryvoidsetForm(Form form)set the form of the entryvoidsetHelpMessage(java.lang.String helpMessage)set the entry help messagevoidsetIdEntry(int idEntry)set the id of the entryvoidsetLastInTheList(boolean lastInTheList)set true if the entry is the last entry of a group or the list of entryvoidsetMandatory(boolean mandatory)set true if the question is mandatoryvoidsetNumberConditionalQuestion(int numberConditionalQuestion)set the number of conditional questions who are assocaite to the entryvoidsetParent(IEntry parent)set parent entry if the entry is insert in a groupvoidsetPosition(int position)set position entryvoidsetTitle(java.lang.String title)set title entryvoidsetUnique(boolean _bUnique)Set to true if the value of the response to this question must be unique
-
-
-
Method Detail
-
getChildren
public java.util.List<IEntry> getChildren()
- Specified by:
getChildrenin interfaceIEntry- Returns:
- the list of entry who are insert in the group
-
getComment
public java.lang.String getComment()
- Specified by:
getCommentin interfaceIEntry- Returns:
- the entry comment
-
getEntryType
public EntryType getEntryType()
- Specified by:
getEntryTypein interfaceIEntry- Returns:
- the type of the entry
-
getFields
public java.util.List<Field> getFields()
-
getHelpMessage
public java.lang.String getHelpMessage()
- Specified by:
getHelpMessagein interfaceIEntry- Returns:
- the entry help message
-
getIdEntry
public int getIdEntry()
- Specified by:
getIdEntryin interfaceIEntry- Returns:
- the id of entry
-
getParent
public IEntry getParent()
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceIEntry- Returns:
- position entry
-
getTitle
public java.lang.String getTitle()
-
isFieldInLine
public boolean isFieldInLine()
- Specified by:
isFieldInLinein interfaceIEntry- Returns:
- true if the field associate must be display in line
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfaceIEntry- Returns:
- true if the question is mandatory
-
setChildren
public void setChildren(java.util.List<IEntry> children)
set the list of entry who are insert in the group- Specified by:
setChildrenin interfaceIEntry- Parameters:
children- the list of entry
-
setComment
public void setComment(java.lang.String comment)
set entry comment- Specified by:
setCommentin interfaceIEntry- Parameters:
comment- entry comment
-
setEntryType
public void setEntryType(EntryType entryType)
set the type of the entry- Specified by:
setEntryTypein interfaceIEntry- Parameters:
entryType- the type of the entry
-
setFieldInLine
public void setFieldInLine(boolean fieldInLine)
set true if the field associate must be display in line- Specified by:
setFieldInLinein interfaceIEntry- Parameters:
fieldInLine- true if the field associate must be display in line
-
setFields
public void setFields(java.util.List<Field> fields)
set the list of field who are associate to the entry
-
setHelpMessage
public void setHelpMessage(java.lang.String helpMessage)
set the entry help message- Specified by:
setHelpMessagein interfaceIEntry- Parameters:
helpMessage- the entry help message
-
setIdEntry
public void setIdEntry(int idEntry)
set the id of the entry- Specified by:
setIdEntryin interfaceIEntry- Parameters:
idEntry- the id of the entry
-
setMandatory
public void setMandatory(boolean mandatory)
set true if the question is mandatory- Specified by:
setMandatoryin interfaceIEntry- Parameters:
mandatory- true if the question is mandatory
-
setParent
public void setParent(IEntry parent)
set parent entry if the entry is insert in a group
-
setPosition
public void setPosition(int position)
set position entry- Specified by:
setPositionin interfaceIEntry- Parameters:
position- position entry
-
setTitle
public void setTitle(java.lang.String title)
set title entry
-
getForm
public Form getForm()
-
setForm
public void setForm(Form form)
set the form of the entry
-
getFieldDepend
public Field getFieldDepend()
- Specified by:
getFieldDependin interfaceIEntry- Returns:
- the field if the entry is a conditional question
-
setFieldDepend
public void setFieldDepend(Field depend)
set the field if the entry is a conditional question- Specified by:
setFieldDependin interfaceIEntry- Parameters:
depend- the field if the entry is a conditional question
-
getHtmlCode
public java.lang.String getHtmlCode()
Get the HtmlCode of the entry- Specified by:
getHtmlCodein interfaceIEntry- Returns:
- the HtmlCode of the entry
-
getRequestData
public java.lang.String getRequestData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)Get the request data- Specified by:
getRequestDatain interfaceIEntry- Parameters:
request- HttpRequestlocale- 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:
getResponseDatain interfaceIEntry- Parameters:
request- HttpRequestlistResponse- the list of response associate to the entry in the form submitlocale- the locale- Returns:
- a Form error object if there is an error in the response
-
getTemplateCreate
public java.lang.String getTemplateCreate()
Get template create url of the entry- Specified by:
getTemplateCreatein interfaceIEntry- Returns:
- template create url of the entry
-
getTemplateModify
public java.lang.String getTemplateModify()
Get the template modify url of the entry- Specified by:
getTemplateModifyin interfaceIEntry- Returns:
- template modify url of the entry
-
getNumberConditionalQuestion
public int getNumberConditionalQuestion()
- Specified by:
getNumberConditionalQuestionin interfaceIEntry- Returns:
- the number of conditional questions who are assocaite to the entry
-
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:
getResponseValueForExportin interfaceIEntry- Parameters:
response- 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
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:
getResponseValueForRecapin interfaceIEntry- Parameters:
response- the response associate to the entrylocale- the localerequest- the request- Returns:
- the response value associate to the entry to write in the recap
-
setNumberConditionalQuestion
public void setNumberConditionalQuestion(int numberConditionalQuestion)
set the number of conditional questions who are assocaite to the entry- Specified by:
setNumberConditionalQuestionin interfaceIEntry- Parameters:
numberConditionalQuestion- the number of conditional questions who are assocaite to the entry
-
getPaginator
public fr.paris.lutece.util.html.Paginator getPaginator(int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex)The paginator who is use in the template modify of the entry- Specified by:
getPaginatorin interfaceIEntry- Parameters:
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 index- Returns:
- the paginator who is use in the template modify of the entry
-
getReferenceListRegularExpression
public 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 of the entry- Specified by:
getReferenceListRegularExpressionin interfaceIEntry- Parameters:
entry- the entryplugin- the plugin- Returns:
- the regular expression list who is use in the template modify of the entry
-
isLastInTheList
public boolean isLastInTheList()
- Specified by:
isLastInTheListin interfaceIEntry- Returns:
- true if the entry is the last entry of a group or the list of entry
-
setLastInTheList
public void setLastInTheList(boolean lastInTheList)
set true if the entry is the last entry of a group or the list of entry- Specified by:
setLastInTheListin interfaceIEntry- Parameters:
lastInTheList- true if the entry is the last entry of a group or the list of entry
-
isFirstInTheList
public boolean isFirstInTheList()
- Specified by:
isFirstInTheListin interfaceIEntry- Returns:
- true if the entry is the first entry of a group or the list of entry
-
setFirstInTheList
public void setFirstInTheList(boolean firstInTheList)
set true if the entry is the first entry of a group or the list of entry- Specified by:
setFirstInTheListin interfaceIEntry- Parameters:
firstInTheList- true if the entry is the last entry of a group or the list of entry
-
setConfirmField
public void setConfirmField(boolean bConfirmField)
Set the confirmField- Specified by:
setConfirmFieldin interfaceIEntry- Parameters:
nConfirmField-
-
isConfirmField
public boolean isConfirmField()
Get the confirmField value- Specified by:
isConfirmFieldin interfaceIEntry- Returns:
- the value of the confirmField
-
setConfirmFieldTitle
public void setConfirmFieldTitle(java.lang.String strConfirmFieldTitle)
Set the title of the confirmation field- Specified by:
setConfirmFieldTitlein interfaceIEntry- Parameters:
strConfirmFieldTitle-
-
getConfirmFieldTitle
public java.lang.String getConfirmFieldTitle()
Get the title of the confirmation field- Specified by:
getConfirmFieldTitlein interfaceIEntry- Returns:
- The title of the confirmation field
-
setUnique
public void setUnique(boolean _bUnique)
Set to true if the value of the response to this question must be unique
-
-