public class Form extends Object implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource, fr.paris.lutece.portal.service.rbac.RBACResource
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE
Form resource type
|
static int |
STATE_DISABLE
State of forms that are disabled
|
static int |
STATE_ENABLE
State of forms that are enabled
|
| Constructor and Description |
|---|
Form() |
| Modifier and Type | Method and Description |
|---|---|
List<FormAction> |
getActions() |
Timestamp |
getAvailabilityEndDate()
Returns the AvailabilityEndDate
|
Timestamp |
getAvailabilityStartDate()
Returns the AvailabilityStartDate
|
String |
getBreadcrumbName()
Returns the BreadcrumbName
|
Timestamp |
getCreationDate()
Returns the CreationDate
|
int |
getCurrentNumberResponse() |
String |
getDescription()
Returns the Description
|
int |
getId()
Returns the Id
|
int |
getIdWorkflow()
Getter for id_workflow
|
String |
getLabelFinalButton() |
fr.paris.lutece.portal.business.file.File |
getLogo() |
String |
getLogoBase64()
Get the content of the logo as base64
|
int |
getMaxNumberResponse()
Returns the number Max of response form
|
String |
getResourceId() |
String |
getResourceTypeCode() |
String |
getReturnUrl()
Returns the return URL
|
String |
getTitle()
Returns the Title
|
String |
getUnavailableMessage() |
Timestamp |
getUpdateDate()
Returns the UpdateDate
|
String |
getWorkgroup() |
boolean |
isActive()
Returns the active status of a form by checking if we are currently within its availability period
|
boolean |
isAuthentificationNeeded() |
boolean |
isCaptchaRecap() |
boolean |
isCaptchaStepFinal() |
boolean |
isCaptchaStepInitial() |
boolean |
isCountResponses() |
boolean |
isDisplaySummary()
Tells if the summary must be displayed
|
boolean |
isOneResponseByUser()
Check the user can only submit one form.
|
void |
setActions(List<FormAction> formActions)
set a list of action can be use for the form
|
void |
setAuthentificationNeeded(boolean bAuthentificationNeeded) |
void |
setAvailabilityEndDate(Timestamp dateAvailabilityEndDate)
Sets the AvailabilityEndDate
|
void |
setAvailabilityStartDate(Timestamp dateAvailabilityStartDate)
Sets the AvailabilityStartDate
|
void |
setBreadcrumbName(String strBreadcrumbName)
Sets the Title
|
void |
setCaptchaRecap(boolean bCaptchaRecap) |
void |
setCaptchaStepFinal(boolean bCaptchaStepFinal) |
void |
setCaptchaStepInitial(boolean bCaptchaStepInitial) |
void |
setCountResponses(boolean bCountResponse) |
void |
setCreationDate(Timestamp creationDate)
Sets the CreationDate
|
void |
setCurrentNumberResponse(int nCurrentNumberResponse) |
void |
setDescription(String strDescription)
Sets the Description
|
void |
setDisplaySummary(boolean bDisplaySummary)
Sets if the summary must be displayed
|
void |
setId(int nId)
Sets the Id
|
void |
setIdWorkflow(int nIdWorkflow)
setter for id_workflow
|
void |
setLabelFinalButton(String labelFinalButton) |
void |
setLogo(fr.paris.lutece.portal.business.file.File logo) |
void |
setMaxNumberResponse(int nMaxNumberResponse)
Sets the number Max of response form
|
void |
setOneResponseByUser(boolean bOneResponseByUser)
set true if the user can submit just once the form
|
void |
setReturnUrl(String strReturnUrl)
Sets the return URL
|
void |
setTitle(String strTitle)
Sets the Title
|
void |
setUnavailableMessage(String strUnavailableMessage) |
void |
setUpdateDate(Timestamp dateUpdate)
Sets the UpdateDate
|
void |
setWorkgroup(String workGroup)
set the work group associate to the form
|
public static final String RESOURCE_TYPE
public static final int STATE_ENABLE
public static final int STATE_DISABLE
public int getId()
public void setId(int nId)
nId - The Idpublic String getTitle()
public void setTitle(String strTitle)
strTitle - The Titlepublic String getDescription()
public void setDescription(String strDescription)
strDescription - The Descriptionpublic Timestamp getCreationDate()
public void setCreationDate(Timestamp creationDate)
creationDate - The CreationDatepublic Timestamp getUpdateDate()
public void setUpdateDate(Timestamp dateUpdate)
dateUpdate - The UpdateDatepublic Timestamp getAvailabilityStartDate()
public void setAvailabilityStartDate(Timestamp dateAvailabilityStartDate)
dateAvailabilityStartDate - The AvailabilityStartDatepublic Timestamp getAvailabilityEndDate()
public void setAvailabilityEndDate(Timestamp dateAvailabilityEndDate)
dateAvailabilityEndDate - The AvailabilityEndDatepublic String getResourceTypeCode()
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic String getResourceId()
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResourcepublic String getWorkgroup()
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResourcepublic void setWorkgroup(String workGroup)
workGroup - the work group associate to the formpublic List<FormAction> getActions()
public void setActions(List<FormAction> formActions)
formActions - a list of action must be use for the formpublic boolean isActive()
public int getIdWorkflow()
public void setIdWorkflow(int nIdWorkflow)
nIdWorkflow - the Id Workflow to setpublic boolean isAuthentificationNeeded()
public void setAuthentificationNeeded(boolean bAuthentificationNeeded)
bAuthentificationNeeded - the bAuthentificationNeeded to setpublic String getBreadcrumbName()
public void setBreadcrumbName(String strBreadcrumbName)
strBreadcrumbName - The breadcrumb bean namepublic String getReturnUrl()
public void setReturnUrl(String strReturnUrl)
strReturnUrl - The form return page URLpublic boolean isDisplaySummary()
true if the summary must be displayed, false otherwisepublic void setDisplaySummary(boolean bDisplaySummary)
bDisplaySummary - true if the summary must be displayed, false otherwisepublic int getMaxNumberResponse()
public void setMaxNumberResponse(int nMaxNumberResponse)
nMaxNumberResponse - The number max of reponse formpublic boolean isOneResponseByUser()
public void setOneResponseByUser(boolean bOneResponseByUser)
bOneResponseByUser - true if the user can submit just one formpublic int getCurrentNumberResponse()
public void setCurrentNumberResponse(int nCurrentNumberResponse)
nCurrentNumberResponse - the nCurrentNumberResponse to setpublic boolean isCaptchaStepInitial()
public void setCaptchaStepInitial(boolean bCaptchaStepInitial)
bCaptchaStepInitial - the bCaptchaStepInitial to setpublic boolean isCaptchaStepFinal()
public void setCaptchaStepFinal(boolean bCaptchaStepFinal)
bCaptchaStepFinal - the bCaptchaStepFinel to setpublic boolean isCaptchaRecap()
public void setCaptchaRecap(boolean bCaptchaRecap)
bCaptchaRecap - the bCaptchaRecap to setpublic boolean isCountResponses()
public void setCountResponses(boolean bCountResponse)
bCountResponse - the bCountResponse to setpublic String getLabelFinalButton()
public void setLabelFinalButton(String labelFinalButton)
labelFinalButton - the labelFinalButton to setpublic String getUnavailableMessage()
public void setUnavailableMessage(String strUnavailableMessage)
strUnavailableMessage - the strUnavailableMessage to setpublic fr.paris.lutece.portal.business.file.File getLogo()
public void setLogo(fr.paris.lutece.portal.business.file.File logo)
logo - the logo to setpublic String getLogoBase64()
Copyright © 2021 City of Paris. All rights reserved.