Class Form
java.lang.Object
fr.paris.lutece.plugins.form.business.Form
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
public class Form
extends Object
implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource, fr.paris.lutece.portal.service.rbac.RBACResource
Class form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the date begin of the publicationintintintThe label to display for the Reset buttongetRecap()RBAC resource implmentationRBAC resource implmentationgetTitle()static voidinit()Initialize the FormbooleanisActive()booleanbooleanbooleantrue if the ip adresse of the user must be storebooleanReturn true if auto publication is effectively activebooleanReturn true if the form is in auto publication mode, false elsebooleanbooleanReturns true if the form support HTTPS, false otherwisevoidsetActions(List<FormAction> formActions) set a list of action can be use for the formvoidsetActive(boolean active) set true if the form is activevoidsetActiveCaptcha(boolean activeCaptcha) set true if the form contain a captchavoidsetActiveRequirement(boolean activeRequirement) set true if the requirement must be activatevoidsetActiveStoreAdresse(boolean activeStoreAdrese) set true if the ip adresse of the user must be storevoidsetAutoPublicationActive(boolean _bAutoPublicationActive) Set if Auto publication is effectively activevoidsetDateBeginDisponibility(Date _tDateBeginDisponibility) Define the date begin of the publicationvoidsetDateCreation(Timestamp dateCreation) set the creation datevoidsetDateEndDisponibility(Date dateEndDisponibility) set the date of end disponibilityvoidsetDescription(String description) set the description of the formvoidsetFormPageId(int formPageId) set the id of the page which contain the formvoidsetIdForm(int idForm) set the id of the formvoidsetIdMailingList(int mailingListId) set the id of the mailing list associate to the formvoidsetInfoComplementary1(String strInfoComplementary1) set the Information Complementary 1voidsetInfoComplementary2(String strInfoComplementary2) set the Information Complementary 2voidsetInfoComplementary3(String strInfoComplementary3) set the Information Complementary 3voidsetInfoComplementary4(String strInfoComplementary4) set the Information Complementary 4voidsetInfoComplementary5(String strInfoComplementary5) set the Information Complementary 5voidsetLibelleResetButton(String _strLibelleResetButton) The label to display for the Reset buttonvoidsetLibelleValidateButton(String libelleValidateButton) set the libelle of the validate buttonvoidsetLimitNumberResponse(boolean numberResponse) set true if the user can submit just one formvoidset the recap associate to the formvoidsetRequirement(String requirement) set the requirement of the formvoidsetSupportHTTPS(boolean bSupportHTTPS) Set to true if the form support HTTPS, false otherwisevoidset the title of the formvoidsetUnavailabilityMessage(String unavailabilityMessage) set the unavailability message of the formvoidsetWelcomeMessage(String strWelcomeMessage) set the welcome message of the formvoidsetWorkgroup(String workGroup) set the work group associate to the form
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
STATE_ENABLE
public static final int STATE_ENABLE- See Also:
-
STATE_DISABLE
public static final int STATE_DISABLE- See Also:
-
-
Constructor Details
-
Form
public Form()
-
-
Method Details
-
init
public static void init()Initialize the Form -
getIdMailingList
public int getIdMailingList()- Returns:
- the id of the mailing list associate to the form
-
setIdMailingList
public void setIdMailingList(int mailingListId) set the id of the mailing list associate to the form- Parameters:
mailingListId- the id of the mailing list associate to the form
-
isActiveCaptcha
public boolean isActiveCaptcha()- Returns:
- true if the form contain a captcha
-
setActiveCaptcha
public void setActiveCaptcha(boolean activeCaptcha) set true if the form contain a captcha- Parameters:
activeCaptcha- true if the form contain a captcha
-
isActiveStoreAdresse
public boolean isActiveStoreAdresse()true if the ip adresse of the user must be store- Returns:
- true if the ip adresse of the user must be store
-
setActiveStoreAdresse
public void setActiveStoreAdresse(boolean activeStoreAdrese) set true if the ip adresse of the user must be store- Parameters:
activeStoreAdrese- true if the ip adresse of the user must be store
-
isActiveRequirement
public boolean isActiveRequirement()- Returns:
- true if the requirement must be activate
-
setActiveRequirement
public void setActiveRequirement(boolean activeRequirement) set true if the requirement must be activate- Parameters:
activeRequirement- true if the form contain requirement
-
getLibelleValidateButton
- Returns:
- the libelle of the validate button
-
setLibelleValidateButton
set the libelle of the validate button- Parameters:
libelleValidateButton- the libelle of the validate button
-
getDateEndDisponibility
- Returns:
- the date of end diosponibility
-
setDateEndDisponibility
set the date of end disponibility- Parameters:
dateEndDisponibility- the date of end disponibility
-
getRequirement
- Returns:
- the requirement of the form
-
setRequirement
set the requirement of the form- Parameters:
requirement- the requierement of the form
-
getTitle
- Returns:
- the title of the form
-
setTitle
set the title of the form- Parameters:
strTitle- the title of the form
-
getDescription
- Returns:
- the description of the form
-
setDescription
set the description of the form- Parameters:
description- the description of the form
-
getWelcomeMessage
- Returns:
- the welcome message of the form
-
setWelcomeMessage
set the welcome message of the form- Parameters:
strWelcomeMessage- the welcome message of the form
-
getWorkgroup
- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- the work group associate to the form
-
setWorkgroup
set the work group associate to the form- Parameters:
workGroup- the work group associate to the form
-
getIdForm
public int getIdForm()- Returns:
- the id of the form
-
setIdForm
public void setIdForm(int idForm) set the id of the form- Parameters:
idForm- the id of the form
-
isActive
public boolean isActive()- Returns:
- true if the form is active
-
setActive
public void setActive(boolean active) set true if the form is active- Parameters:
active- true if the form is active
-
isLimitNumberResponse
public boolean isLimitNumberResponse()- Returns:
- true if the user can submit just one form
-
setLimitNumberResponse
public void setLimitNumberResponse(boolean numberResponse) set true if the user can submit just one form- Parameters:
numberResponse- true if the user can submit just one form
-
getDateCreation
- Returns:
- the creation date
-
setDateCreation
set the creation date- Parameters:
dateCreation- the creation date
-
getRecap
- Returns:
- the recap associate to the form
-
setRecap
set the recap associate to the form- Parameters:
recap- the recap associate to the form
-
getResourceTypeCode
RBAC resource implmentation- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resource type code
-
getResourceId
RBAC resource implmentation- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- The resourceId
-
getActions
- Returns:
- a list of action can be use for the form
-
setActions
set a list of action can be use for the form- Parameters:
formActions- a list of action must be use for the form
-
getFormPageId
public int getFormPageId()- Returns:
- the id of the page which contain the form
-
setFormPageId
public void setFormPageId(int formPageId) set the id of the page which contain the form- Parameters:
formPageId- the id of the page which contain the form
-
setDateBeginDisponibility
Define the date begin of the publication- Parameters:
_tDateBeginDisponibility- The date begin of the publication
-
getDateBeginDisponibility
Return the date begin of the publication- Returns:
- The date begin of the publication
-
setAutoPublicationActive
public void setAutoPublicationActive(boolean _bAutoPublicationActive) Set if Auto publication is effectively active- Parameters:
_bAutoPublicationActive-
-
isAutoPublicationActive
public boolean isAutoPublicationActive()Return true if auto publication is effectively active- Returns:
- true of false
-
isAutoPublished
public boolean isAutoPublished()Return true if the form is in auto publication mode, false else- Returns:
- true if the form is auto published
-
setLibelleResetButton
The label to display for the Reset button- Parameters:
_strLibelleResetButton- The label
-
getLibelleResetButton
The label to display for the Reset button- Returns:
- the Reset button name
-
getInfoComplementary1
- Returns:
- the Information Complementary 1
-
setInfoComplementary1
set the Information Complementary 1- Parameters:
strInfoComplementary1- the Information Complementary 1
-
getInfoComplementary2
- Returns:
- the Information Complementary 1
-
setInfoComplementary2
set the Information Complementary 2- Parameters:
strInfoComplementary2- the Information Complementary 2
-
getInfoComplementary3
- Returns:
- the Information Complementary 3
-
setInfoComplementary3
set the Information Complementary 3- Parameters:
strInfoComplementary3- the Information Complementary 3
-
getInfoComplementary4
- Returns:
- the Information Complementary 4
-
setInfoComplementary4
set the Information Complementary 4- Parameters:
strInfoComplementary4- the Information Complementary 4
-
getInfoComplementary5
- Returns:
- the Information Complementary 5
-
setInfoComplementary5
set the Information Complementary 5- Parameters:
strInfoComplementary5- the Information Complementary 5
-
setSupportHTTPS
public void setSupportHTTPS(boolean bSupportHTTPS) Set to true if the form support HTTPS, false otherwise- Parameters:
_bSupportHTTPS- the support value
-
isSupportHTTPS
public boolean isSupportHTTPS()Returns true if the form support HTTPS, false otherwise- Returns:
- true if the form support HTTPS, false otherwise
-