fr.paris.lutece.plugins.form.business
Class Form

java.lang.Object
  extended by 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
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 Summary
Form()
           
 
Method Summary
 List<FormAction> getActions()
           
 boolean getAutomaticCleaning()
          Check if this form should be cleaned automatically by the daemon
 Category getCategory()
          Get the category associate to the form
 boolean getCleaningByRemoval()
          Check if the cleaning operation is a remove operation or an anonymization operation
 String getCodeTheme()
          Get the code theme
 Date getDateBeginDisponibility()
          Return the date begin of the publication
 Timestamp getDateCreation()
          Get the creation date
 Date getDateEndDisponibility()
          Get the date of end of disponibility
 String getDescription()
          Get the description of the form
 int getFormPageId()
          Get the recap associate to the form
 String getFrontOfficeTitle()
          gets the front office's title
 int getIdForm()
          Get the id of the form
 int getIdMailingList()
          Get the id of the mailing list associate to the form
 String getInfoComplementary1()
          Get the Information Complementary 1
 String getInfoComplementary2()
          Get the Information Complementary 2
 String getInfoComplementary3()
          Get the Information Complementary 3
 String getInfoComplementary4()
          Get the Information Complementary 4
 String getInfoComplementary5()
          Get the Information Complementary 5
 String getLibelleResetButton()
          The label to display for the Reset button
 String getLibelleValidateButton()
          Get the label of the validate button
 int getNbDaysBeforeCleaning()
          Get the number of days to keep responses before cleaning them
 Recap getRecap()
          Get the recap associated to the form
 String getRequirement()
          Get the requirement of the form
 String getResourceId()
          
 String getResourceTypeCode()
          
 String getTitle()
          Get the title of the form
 String getUnavailabilityMessage()
          Get the unavailability message of the form
 String getWelcomeMessage()
          Get the welcome message of the form
 String getWorkgroup()
          
static void init()
          Initialize the Form
 boolean isActive()
          Check if the form is active or not
 boolean isActiveCaptcha()
          Check if the form contain a captcha
 boolean isActiveMyLuteceAuthentification()
          Check if the form require mylutece authentication
 boolean isActiveRequirement()
          Check if the requirement must be activate
 boolean isActiveStoreAdresse()
          true if the ip adresse of the user must be store
 boolean isAutoPublicationActive()
          Return true if auto publication is effectively active
 boolean isAutoPublished()
          Return true if the form is in auto publication mode, false else
 boolean isLimitNumberResponse()
          Check the user can only submit one form, or if he can submit several
 boolean isShownFrontOfficeTitle()
          get the value of the boolean isShownFrontOfficeTitle
 boolean isSupportHTTPS()
          Returns true if the form support HTTPS, false otherwise
 void setActions(List<FormAction> formActions)
          set a list of action can be use for the form
 void setActive(boolean active)
          set true if the form is active
 void setActiveCaptcha(boolean activeCaptcha)
          set true if the form contain a captcha
 void setActiveMyLuteceAuthentification(boolean bActiveMyLuteceAuthentification)
          set true if the form require mylutece authentication
 void setActiveRequirement(boolean activeRequirement)
          set true if the requirement must be activate
 void setActiveStoreAdresse(boolean activeStoreAdrese)
          set true if the ip adresse of the user must be store
 void setAutomaticCleaning(boolean bAutomaticCleaning)
          Set if this form should be cleaned automatically by the daemon
 void setAutoPublicationActive(boolean bAutoPublicationActive)
          Set if Auto publication is effectively active
 void setCategory(Category category)
          set the category associate to the form
 void setCleaningByRemoval(boolean bCleaningByRemoval)
          Set the cleaning operation a a remove operation or as an anonymization operation
 void setCodeTheme(String strCodeTheme)
          set the theme code
 void setDateBeginDisponibility(Date tDateBeginDisponibility)
          Define the date begin of the publication
 void setDateCreation(Timestamp dateCreation)
          set the creation date
 void setDateEndDisponibility(Date dateEndDisponibility)
          set the date of end of disponibility
 void setDescription(String description)
          set the description of the form
 void setFormPageId(int formPageId)
          set the id of the page which contain the form
 void setFrontOfficeTitle(String strFrontOfficeTitle)
          Set the front office's title
 void setIdForm(int idForm)
          set the id of the form
 void setIdMailingList(int mailingListId)
          set the id of the mailing list associate to the form
 void setInfoComplementary1(String strInfoComplementary1)
          set the Information Complementary 1
 void setInfoComplementary2(String strInfoComplementary2)
          set the Information Complementary 2
 void setInfoComplementary3(String strInfoComplementary3)
          set the Information Complementary 3
 void setInfoComplementary4(String strInfoComplementary4)
          set the Information Complementary 4
 void setInfoComplementary5(String strInfoComplementary5)
          set the Information Complementary 5
 void setIsShownFrontOfficeTitle(boolean bIsShownFrontOfficeTitle)
          set the value of the boolean isShownFrontOfficeTitle
 void setLibelleResetButton(String strLibelleResetButton)
          The label to display for the Reset button
 void setLibelleValidateButton(String libelleValidateButton)
          set the label of the validate button
 void setLimitNumberResponse(boolean numberResponse)
          set true if the user can submit just one form
 void setNbDaysBeforeCleaning(int nNbDaysBeforeCleaning)
          Set the number of days to keep responses before cleaning them
 void setRecap(Recap recap)
          set the recap associated to the form
 void setRequirement(String requirement)
          set the requirement of the form
 void setSupportHTTPS(boolean bSupportHTTPS)
          Set to true if the form support HTTPS, false otherwise
 void setTitle(String strTitle)
          set the title of the form
 void setUnavailabilityMessage(String unavailabilityMessage)
          set the unavailability message of the form
 void setWelcomeMessage(String strWelcomeMessage)
          set the welcome message of the form
 void setWorkgroup(String workGroup)
          set the work group associate to the form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final String RESOURCE_TYPE
Form resource type

See Also:
Constant Field Values

STATE_ENABLE

public static final int STATE_ENABLE
State of forms that are enabled

See Also:
Constant Field Values

STATE_DISABLE

public static final int STATE_DISABLE
State of forms that are disabled

See Also:
Constant Field Values
Constructor Detail

Form

public Form()
Method Detail

init

public static void init()
Initialize the Form


getIdMailingList

public int getIdMailingList()
Get the id of the mailing list associate to the form

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

getCodeTheme

public String getCodeTheme()
Get the code theme

Returns:
the theme code

setCodeTheme

public void setCodeTheme(String strCodeTheme)
set the theme code

Parameters:
strCodeTheme - the theme code

isActiveCaptcha

public boolean isActiveCaptcha()
Check if the form contain a captcha

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()
Check if the requirement must be activate

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

public String getLibelleValidateButton()
Get the label of the validate button

Returns:
the label of the validate button

setLibelleValidateButton

public void setLibelleValidateButton(String libelleValidateButton)
set the label of the validate button

Parameters:
libelleValidateButton - the label of the validate button

getDateEndDisponibility

public Date getDateEndDisponibility()
Get the date of end of disponibility

Returns:
the date of end disponibility

setDateEndDisponibility

public void setDateEndDisponibility(Date dateEndDisponibility)
set the date of end of disponibility

Parameters:
dateEndDisponibility - the date of end of disponibility

getRequirement

public String getRequirement()
Get the requirement of the form

Returns:
the requirement of the form

setRequirement

public void setRequirement(String requirement)
set the requirement of the form

Parameters:
requirement - the requirement of the form

getTitle

public String getTitle()
Get the title of the form

Returns:
the title of the form

setTitle

public void setTitle(String strTitle)
set the title of the form

Parameters:
strTitle - the title of the form

getFrontOfficeTitle

public String getFrontOfficeTitle()
gets the front office's title

Returns:
the title of the form in the front office

setFrontOfficeTitle

public void setFrontOfficeTitle(String strFrontOfficeTitle)
Set the front office's title

Parameters:
strFrontOfficeTitle - the title to set

isShownFrontOfficeTitle

public boolean isShownFrontOfficeTitle()
get the value of the boolean isShownFrontOfficeTitle

Returns:
bIsShownFrontOfficeTitle

setIsShownFrontOfficeTitle

public void setIsShownFrontOfficeTitle(boolean bIsShownFrontOfficeTitle)
set the value of the boolean isShownFrontOfficeTitle

Parameters:
bIsShownFrontOfficeTitle - The value of the boolean isShownFrontOfficeTitle

getDescription

public String getDescription()
Get the description of the form

Returns:
the description of the form

setDescription

public void setDescription(String description)
set the description of the form

Parameters:
description - the description of the form

getWelcomeMessage

public String getWelcomeMessage()
Get the welcome message of the form

Returns:
the welcome message of the form

setWelcomeMessage

public void setWelcomeMessage(String strWelcomeMessage)
set the welcome message of the form

Parameters:
strWelcomeMessage - the welcome message of the form

getUnavailabilityMessage

public String getUnavailabilityMessage()
Get the unavailability message of the form

Returns:
the unavailability message of the form

setUnavailabilityMessage

public void setUnavailabilityMessage(String unavailabilityMessage)
set the unavailability message of the form

Parameters:
unavailabilityMessage - the unavailability message of the form

getWorkgroup

public String getWorkgroup()

Specified by:
getWorkgroup in interface fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource

setWorkgroup

public void setWorkgroup(String workGroup)
set the work group associate to the form

Parameters:
workGroup - the work group associate to the form

getIdForm

public int getIdForm()
Get the id of the form

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()
Check if the form is active or not

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()
Check the user can only submit one form, or if he can submit several

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

public Timestamp getDateCreation()
Get the creation date

Returns:
the creation date

setDateCreation

public void setDateCreation(Timestamp dateCreation)
set the creation date

Parameters:
dateCreation - the creation date

getRecap

public Recap getRecap()
Get the recap associated to the form

Returns:
the recap associated to the form

setRecap

public void setRecap(Recap recap)
set the recap associated to the form

Parameters:
recap - the recap associated to the form

getResourceTypeCode

public String getResourceTypeCode()

Specified by:
getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource

getResourceId

public String getResourceId()

Specified by:
getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource

getActions

public List<FormAction> getActions()
Returns:
a list of action can be use for the form

setActions

public void setActions(List<FormAction> formActions)
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()
Get the recap associate to the form

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

public void setDateBeginDisponibility(Date tDateBeginDisponibility)
Define the date begin of the publication

Parameters:
tDateBeginDisponibility - The date begin of the publication

getDateBeginDisponibility

public Date 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 - True if Auto publication is effectively active

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

public void setLibelleResetButton(String strLibelleResetButton)
The label to display for the Reset button

Parameters:
strLibelleResetButton - The label

getLibelleResetButton

public String getLibelleResetButton()
The label to display for the Reset button

Returns:
the Reset button name

getInfoComplementary1

public String getInfoComplementary1()
Get the Information Complementary 1

Returns:
the Information Complementary 1

setInfoComplementary1

public void setInfoComplementary1(String strInfoComplementary1)
set the Information Complementary 1

Parameters:
strInfoComplementary1 - the Information Complementary 1

getInfoComplementary2

public String getInfoComplementary2()
Get the Information Complementary 2

Returns:
the Information Complementary 2

setInfoComplementary2

public void setInfoComplementary2(String strInfoComplementary2)
set the Information Complementary 2

Parameters:
strInfoComplementary2 - the Information Complementary 2

getInfoComplementary3

public String getInfoComplementary3()
Get the Information Complementary 3

Returns:
the Information Complementary 3

setInfoComplementary3

public void setInfoComplementary3(String strInfoComplementary3)
set the Information Complementary 3

Parameters:
strInfoComplementary3 - the Information Complementary 3

getInfoComplementary4

public String getInfoComplementary4()
Get the Information Complementary 4

Returns:
the Information Complementary 4

setInfoComplementary4

public void setInfoComplementary4(String strInfoComplementary4)
set the Information Complementary 4

Parameters:
strInfoComplementary4 - the Information Complementary 4

getInfoComplementary5

public String getInfoComplementary5()
Get the Information Complementary 5

Returns:
the Information Complementary 5

setInfoComplementary5

public void setInfoComplementary5(String strInfoComplementary5)
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

isActiveMyLuteceAuthentification

public boolean isActiveMyLuteceAuthentification()
Check if the form require mylutece authentication

Returns:
true if the form require mylutece authentication

setActiveMyLuteceAuthentification

public void setActiveMyLuteceAuthentification(boolean bActiveMyLuteceAuthentification)
set true if the form require mylutece authentication

Parameters:
bActiveMyLuteceAuthentification - true if the form require mylutece authentication

getCategory

public Category getCategory()
Get the category associate to the form

Returns:
the category associate to the form

setCategory

public void setCategory(Category category)
set the category associate to the form

Parameters:
category - the category associate to the form

getAutomaticCleaning

public boolean getAutomaticCleaning()
Check if this form should be cleaned automatically by the daemon

Returns:
True if this form should be cleaned automatically by the daemon, false otherwise

setAutomaticCleaning

public void setAutomaticCleaning(boolean bAutomaticCleaning)
Set if this form should be cleaned automatically by the daemon

Parameters:
bAutomaticCleaning - True if this form should be cleaned automatically by the daemon, false otherwise

getCleaningByRemoval

public boolean getCleaningByRemoval()
Check if the cleaning operation is a remove operation or an anonymization operation

Returns:
true if the cleaning operation is a remove operation, false if it is an anonymization operation

setCleaningByRemoval

public void setCleaningByRemoval(boolean bCleaningByRemoval)
Set the cleaning operation a a remove operation or as an anonymization operation

Parameters:
bCleaningByRemoval - true if the cleaning operation is a remove operation, false if it is an anonymization operation

getNbDaysBeforeCleaning

public int getNbDaysBeforeCleaning()
Get the number of days to keep responses before cleaning them

Returns:
The number of days to keep responses before cleaning them

setNbDaysBeforeCleaning

public void setNbDaysBeforeCleaning(int nNbDaysBeforeCleaning)
Set the number of days to keep responses before cleaning them

Parameters:
nNbDaysBeforeCleaning - The number of days to keep responses before cleaning them


Copyright © 2014 Mairie de Paris. All Rights Reserved.