public class Entry extends Object implements IEntry
Constructor and Description |
---|
Entry() |
Modifier and Type | Method and Description |
---|---|
List<IEntry> |
getChildren() |
String |
getComment() |
String |
getConfirmFieldTitle()
Get the title of the confirmation field
|
EntryType |
getEntryType() |
Field |
getFieldDepend() |
List<Field> |
getFields() |
Form |
getForm() |
String |
getHelpMessage() |
String |
getHtmlCode()
Get the HtmlCode of the entry
|
int |
getIdEntry() |
int |
getNumberConditionalQuestion() |
fr.paris.lutece.util.html.Paginator |
getPaginator(int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex)
The paginator who is use in the template modify of the entry
|
IEntry |
getParent() |
int |
getPosition() |
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
|
String |
getRequestData(javax.servlet.http.HttpServletRequest request,
Locale locale)
Get the request data
|
FormError |
getResponseData(javax.servlet.http.HttpServletRequest request,
List<Response> listResponse,
Locale locale)
save in the list of response the response associate to the entry in the form submit
|
String |
getResponseValueForExport(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(javax.servlet.http.HttpServletRequest request,
Response response,
Locale locale)
Get the response value associate to the entry to write in the recap
|
String |
getTemplateCreate()
Get template create url of the entry
|
String |
getTemplateModify()
Get the template modify url of the entry
|
String |
getTitle() |
boolean |
isConfirmField()
Get the confirmField value
|
boolean |
isFieldInLine() |
boolean |
isFirstInTheList() |
boolean |
isLastInTheList() |
boolean |
isMandatory() |
boolean |
isUnique() |
void |
setChildren(List<IEntry> children)
set the list of entry who are insert in the group
|
void |
setComment(String comment)
set entry comment
|
void |
setConfirmField(boolean bConfirmField)
Set the confirmField
|
void |
setConfirmFieldTitle(String strConfirmFieldTitle)
Set the title of the confirmation field
|
void |
setEntryType(EntryType entryType)
set the type of the entry
|
void |
setFieldDepend(Field depend)
set the field if the entry is a conditional question
|
void |
setFieldInLine(boolean fieldInLine)
set true if the field associate must be display in line
|
void |
setFields(List<Field> fields)
set the list of field who are associate to the entry
|
void |
setFirstInTheList(boolean firstInTheList)
set true if the entry is the first entry of a group or the list of entry
|
void |
setForm(Form form)
set the form of the entry
|
void |
setHelpMessage(String helpMessage)
set the entry help message
|
void |
setIdEntry(int idEntry)
set the id of the entry
|
void |
setLastInTheList(boolean lastInTheList)
set true if the entry is the last entry of a group or the list of entry
|
void |
setMandatory(boolean mandatory)
set true if the question is mandatory
|
void |
setNumberConditionalQuestion(int numberConditionalQuestion)
set the number of conditional questions who are assocaite to the entry
|
void |
setParent(IEntry parent)
set parent entry if the entry is insert in a group
|
void |
setPosition(int position)
set position entry
|
void |
setTitle(String title)
set title entry
|
void |
setUnique(boolean _bUnique)
Set to true if the value of the response to this question must be unique
|
protected static final String PARAMETER_TITLE
protected static final String PARAMETER_HELP_MESSAGE
protected static final String PARAMETER_COMMENT
protected static final String PARAMETER_MANDATORY
protected static final String PARAMETER_FIELD_IN_LINE
protected static final String PARAMETER_HEIGHT
protected static final String PARAMETER_WIDTH
protected static final String PARAMETER_VALUE
protected static final String PARAMETER_MAX_SIZE_ENTER
protected static final String PARAMETER_CONFIRM_FIELD
protected static final String PARAMETER_CONFIRM_FIELD_TITLE
protected static final String SUFFIX_CONFIRM_FIELD
protected static final String PARAMETER_UNIQUE
protected static final String MESSAGE_MANDATORY_FIELD
protected static final String MESSAGE_NUMERIC_FIELD
protected static final String MESSAGE_CONFIRM_FIELD
protected static final String MESSAGE_UNIQUE_FIELD
protected static final String MESSAGE_XSS_FIELD
protected static final String FIELD_TITLE
protected static final String FIELD_INSERT_GROUP
protected static final String FIELD_HELP_MESSAGE
protected static final String FIELD_COMMENT
protected static final String FIELD_VALUE
protected static final String FIELD_PRESENTATION
protected static final String FIELD_MANDATORY
protected static final String FIELD_WIDTH
protected static final String FIELD_HEIGHT
protected static final String FIELD_MAX_SIZE_ENTER
protected static final String FIELD_CONFIRM_FIELD
protected static final String FIELD_CONFIRM_FIELD_TITLE
protected static final String JSP_DOWNLOAD_FILE
protected static final String MARK_ENTRY
protected static final String EMPTY_STRING
public List<IEntry> getChildren()
getChildren
in interface IEntry
public String getComment()
getComment
in interface IEntry
public EntryType getEntryType()
getEntryType
in interface IEntry
public String getHelpMessage()
getHelpMessage
in interface IEntry
public int getIdEntry()
getIdEntry
in interface IEntry
public IEntry getParent()
public int getPosition()
getPosition
in interface IEntry
public boolean isFieldInLine()
isFieldInLine
in interface IEntry
public boolean isMandatory()
isMandatory
in interface IEntry
public void setChildren(List<IEntry> children)
setChildren
in interface IEntry
children
- the list of entrypublic void setComment(String comment)
setComment
in interface IEntry
comment
- entry commentpublic void setEntryType(EntryType entryType)
setEntryType
in interface IEntry
entryType
- the type of the entrypublic void setFieldInLine(boolean fieldInLine)
setFieldInLine
in interface IEntry
fieldInLine
- true if the field associate must be display in linepublic void setFields(List<Field> fields)
public void setHelpMessage(String helpMessage)
setHelpMessage
in interface IEntry
helpMessage
- the entry help messagepublic void setIdEntry(int idEntry)
setIdEntry
in interface IEntry
idEntry
- the id of the entrypublic void setMandatory(boolean mandatory)
setMandatory
in interface IEntry
mandatory
- true if the question is mandatorypublic void setParent(IEntry parent)
public void setPosition(int position)
setPosition
in interface IEntry
position
- position entrypublic void setTitle(String title)
public Form getForm()
public void setForm(Form form)
public Field getFieldDepend()
getFieldDepend
in interface IEntry
public void setFieldDepend(Field depend)
setFieldDepend
in interface IEntry
depend
- the field if the entry is a conditional questionpublic String getHtmlCode()
getHtmlCode
in interface IEntry
public String getRequestData(javax.servlet.http.HttpServletRequest request, Locale locale)
getRequestData
in interface IEntry
request
- HttpRequestlocale
- the localepublic FormError getResponseData(javax.servlet.http.HttpServletRequest request, List<Response> listResponse, Locale locale)
getResponseData
in interface IEntry
request
- HttpRequestlistResponse
- the list of response associate to the entry in the form submitlocale
- the localepublic String getTemplateCreate()
getTemplateCreate
in interface IEntry
public String getTemplateModify()
getTemplateModify
in interface IEntry
public int getNumberConditionalQuestion()
getNumberConditionalQuestion
in interface IEntry
public String getResponseValueForExport(javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
getResponseValueForExport
in interface IEntry
response
- the response associate to the entrylocale
- the localerequest
- the requestpublic String getResponseValueForRecap(javax.servlet.http.HttpServletRequest request, Response response, Locale locale)
getResponseValueForRecap
in interface IEntry
response
- the response associate to the entrylocale
- the localerequest
- the requestpublic void setNumberConditionalQuestion(int numberConditionalQuestion)
setNumberConditionalQuestion
in interface IEntry
numberConditionalQuestion
- the number of conditional questions who are assocaite to the entrypublic fr.paris.lutece.util.html.Paginator getPaginator(int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex)
getPaginator
in interface IEntry
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 indexpublic fr.paris.lutece.util.ReferenceList getReferenceListRegularExpression(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getReferenceListRegularExpression
in interface IEntry
entry
- the entryplugin
- the pluginpublic boolean isLastInTheList()
isLastInTheList
in interface IEntry
public void setLastInTheList(boolean lastInTheList)
setLastInTheList
in interface IEntry
lastInTheList
- true if the entry is the last entry of a group or the list of entrypublic boolean isFirstInTheList()
isFirstInTheList
in interface IEntry
public void setFirstInTheList(boolean firstInTheList)
setFirstInTheList
in interface IEntry
firstInTheList
- true if the entry is the last entry of a group or the list of entrypublic void setConfirmField(boolean bConfirmField)
setConfirmField
in interface IEntry
nConfirmField
- public boolean isConfirmField()
isConfirmField
in interface IEntry
public void setConfirmFieldTitle(String strConfirmFieldTitle)
setConfirmFieldTitle
in interface IEntry
strConfirmFieldTitle
- public String getConfirmFieldTitle()
getConfirmFieldTitle
in interface IEntry
public void setUnique(boolean _bUnique)
Copyright © 2016 City of Paris. All rights reserved.