|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.form.business.Entry
public class Entry
class Entry
Field Summary | |
---|---|
protected static java.lang.String |
EMPTY_STRING
|
protected static java.lang.String |
FIELD_COMMENT
|
protected static java.lang.String |
FIELD_CONFIRM_FIELD
|
protected static java.lang.String |
FIELD_CONFIRM_FIELD_TITLE
|
protected static java.lang.String |
FIELD_HEIGHT
|
protected static java.lang.String |
FIELD_HELP_MESSAGE
|
protected static java.lang.String |
FIELD_INSERT_GROUP
|
protected static java.lang.String |
FIELD_MANDATORY
|
protected static java.lang.String |
FIELD_MAX_SIZE_ENTER
|
protected static java.lang.String |
FIELD_PRESENTATION
|
protected static java.lang.String |
FIELD_TITLE
|
protected static java.lang.String |
FIELD_VALUE
|
protected static java.lang.String |
FIELD_WIDTH
|
protected static java.lang.String |
JSP_DOWNLOAD_FILE
|
protected static java.lang.String |
MARK_ENTRY
|
protected static java.lang.String |
MESSAGE_CONFIRM_FIELD
|
protected static java.lang.String |
MESSAGE_MANDATORY_FIELD
|
protected static java.lang.String |
MESSAGE_NUMERIC_FIELD
|
protected static java.lang.String |
MESSAGE_UNIQUE_FIELD
|
protected static java.lang.String |
MESSAGE_XSS_FIELD
|
protected static java.lang.String |
PARAMETER_COMMENT
|
protected static java.lang.String |
PARAMETER_CONFIRM_FIELD
|
protected static java.lang.String |
PARAMETER_CONFIRM_FIELD_TITLE
|
protected static java.lang.String |
PARAMETER_FIELD_IN_LINE
|
protected static java.lang.String |
PARAMETER_HEIGHT
|
protected static java.lang.String |
PARAMETER_HELP_MESSAGE
|
protected static java.lang.String |
PARAMETER_MANDATORY
|
protected static java.lang.String |
PARAMETER_MAX_SIZE_ENTER
|
protected static java.lang.String |
PARAMETER_TITLE
|
protected static java.lang.String |
PARAMETER_UNIQUE
|
protected static java.lang.String |
PARAMETER_VALUE
|
protected static java.lang.String |
PARAMETER_WIDTH
|
protected static java.lang.String |
SUFFIX_CONFIRM_FIELD
|
Constructor Summary | |
---|---|
Entry()
|
Method Summary | |
---|---|
java.util.List<IEntry> |
getChildren()
|
java.lang.String |
getComment()
|
java.lang.String |
getConfirmFieldTitle()
Get the title of the confirmation field |
EntryType |
getEntryType()
|
Field |
getFieldDepend()
|
java.util.List<Field> |
getFields()
|
Form |
getForm()
|
java.lang.String |
getHelpMessage()
|
java.lang.String |
getHtmlCode()
Get the HtmlCode of the entry |
int |
getIdEntry()
|
int |
getNumberConditionalQuestion()
|
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 |
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 |
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 |
java.lang.String |
getTitle()
|
boolean |
isConfirmField()
Get the confirmField value |
boolean |
isFieldInLine()
|
boolean |
isFirstInTheList()
|
boolean |
isLastInTheList()
|
boolean |
isMandatory()
|
boolean |
isUnique()
|
void |
setChildren(java.util.List<IEntry> children)
set the list of entry who are insert in the group |
void |
setComment(java.lang.String comment)
set entry comment |
void |
setConfirmField(boolean bConfirmField)
Set the confirmField |
void |
setConfirmFieldTitle(java.lang.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(java.util.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(java.lang.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(java.lang.String title)
set title entry |
void |
setUnique(boolean _bUnique)
Set to true if the value of the response to this question must be unique |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PARAMETER_TITLE
protected static final java.lang.String PARAMETER_HELP_MESSAGE
protected static final java.lang.String PARAMETER_COMMENT
protected static final java.lang.String PARAMETER_MANDATORY
protected static final java.lang.String PARAMETER_FIELD_IN_LINE
protected static final java.lang.String PARAMETER_HEIGHT
protected static final java.lang.String PARAMETER_WIDTH
protected static final java.lang.String PARAMETER_VALUE
protected static final java.lang.String PARAMETER_MAX_SIZE_ENTER
protected static final java.lang.String PARAMETER_CONFIRM_FIELD
protected static final java.lang.String PARAMETER_CONFIRM_FIELD_TITLE
protected static final java.lang.String SUFFIX_CONFIRM_FIELD
protected static final java.lang.String PARAMETER_UNIQUE
protected static final java.lang.String MESSAGE_MANDATORY_FIELD
protected static final java.lang.String MESSAGE_NUMERIC_FIELD
protected static final java.lang.String MESSAGE_CONFIRM_FIELD
protected static final java.lang.String MESSAGE_UNIQUE_FIELD
protected static final java.lang.String MESSAGE_XSS_FIELD
protected static final java.lang.String FIELD_TITLE
protected static final java.lang.String FIELD_INSERT_GROUP
protected static final java.lang.String FIELD_HELP_MESSAGE
protected static final java.lang.String FIELD_COMMENT
protected static final java.lang.String FIELD_VALUE
protected static final java.lang.String FIELD_PRESENTATION
protected static final java.lang.String FIELD_MANDATORY
protected static final java.lang.String FIELD_WIDTH
protected static final java.lang.String FIELD_HEIGHT
protected static final java.lang.String FIELD_MAX_SIZE_ENTER
protected static final java.lang.String FIELD_CONFIRM_FIELD
protected static final java.lang.String FIELD_CONFIRM_FIELD_TITLE
protected static final java.lang.String JSP_DOWNLOAD_FILE
protected static final java.lang.String MARK_ENTRY
protected static final java.lang.String EMPTY_STRING
Constructor Detail |
---|
public Entry()
Method Detail |
---|
public java.util.List<IEntry> getChildren()
getChildren
in interface IEntry
public java.lang.String getComment()
getComment
in interface IEntry
public EntryType getEntryType()
getEntryType
in interface IEntry
public java.util.List<Field> getFields()
getFields
in interface IEntry
public java.lang.String getHelpMessage()
getHelpMessage
in interface IEntry
public int getIdEntry()
getIdEntry
in interface IEntry
public IEntry getParent()
getParent
in interface IEntry
public int getPosition()
getPosition
in interface IEntry
public java.lang.String getTitle()
getTitle
in interface IEntry
public boolean isFieldInLine()
isFieldInLine
in interface IEntry
public boolean isMandatory()
isMandatory
in interface IEntry
public void setChildren(java.util.List<IEntry> children)
setChildren
in interface IEntry
children
- the list of entrypublic void setComment(java.lang.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(java.util.List<Field> fields)
setFields
in interface IEntry
fields
- the list of fieldpublic void setHelpMessage(java.lang.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)
setParent
in interface IEntry
parent
- parent entrypublic void setPosition(int position)
setPosition
in interface IEntry
position
- position entrypublic void setTitle(java.lang.String title)
setTitle
in interface IEntry
title
- titlepublic Form getForm()
getForm
in interface IEntry
public void setForm(Form form)
setForm
in interface IEntry
form
- the form of the entrypublic 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 java.lang.String getHtmlCode()
getHtmlCode
in interface IEntry
public java.lang.String getRequestData(javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
getRequestData
in interface IEntry
request
- HttpRequestlocale
- the locale
public FormError getResponseData(javax.servlet.http.HttpServletRequest request, java.util.List<Response> listResponse, java.util.Locale locale)
getResponseData
in interface IEntry
request
- HttpRequestlistResponse
- the list of response associate to the entry in the form submitlocale
- the locale
public java.lang.String getTemplateCreate()
getTemplateCreate
in interface IEntry
public java.lang.String getTemplateModify()
getTemplateModify
in interface IEntry
public int getNumberConditionalQuestion()
getNumberConditionalQuestion
in interface IEntry
public java.lang.String getResponseValueForExport(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)
getResponseValueForExport
in interface IEntry
response
- the response associate to the entrylocale
- the localerequest
- the request
public java.lang.String getResponseValueForRecap(javax.servlet.http.HttpServletRequest request, Response response, java.util.Locale locale)
getResponseValueForRecap
in interface IEntry
response
- the response associate to the entrylocale
- the localerequest
- the request
public 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, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.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 index
public fr.paris.lutece.util.ReferenceList getReferenceListRegularExpression(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getReferenceListRegularExpression
in interface IEntry
entry
- the entryplugin
- the plugin
public 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(java.lang.String strConfirmFieldTitle)
setConfirmFieldTitle
in interface IEntry
strConfirmFieldTitle
- public java.lang.String getConfirmFieldTitle()
getConfirmFieldTitle
in interface IEntry
public void setUnique(boolean _bUnique)
setUnique
in interface IEntry
public boolean isUnique()
isUnique
in interface IEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |