Class AppointmentFormDTO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.rule.ReservationRule
-
- fr.paris.lutece.plugins.appointment.web.dto.AppointmentFormDTO
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource,Serializable
public final class AppointmentFormDTO extends ReservationRule implements fr.paris.lutece.portal.service.rbac.RBACResource, fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
This is the DTO class for the object AppointmentForm- Author:
- Laurent Payen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringRESOURCE_TYPEName of the resource type of Appointment Formsstatic StringRESOURCE_TYPE_CREATEName of the resource type of Appointment Forms
-
Constructor Summary
Constructors Constructor Description AppointmentFormDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetActiveAuthentication()Get the authenticationStringgetAddress()Get addressStringgetAnonymizationPattern()booleangetBoOverbooking()Returns the BoOverbookingintgetCalendarTemplateId()Get the id of the calendar template of this appointment formintgetCapacityPerSlot()Returns the theoretical capacity per slotDategetDateEndValidity()Returns the ending validity date of the formDategetDateOfModification()Get the date of modification of the formDategetDateStartValidity()Returns the starting validity date of the formStringgetDescription()Get the description of the appointment formbooleangetDisplayTitleFo()Returns if the title of the form has to be displayed on the front officebooleangetEnableCaptcha()Check if the captcha is enabled for this appointment formbooleangetEnableMandatoryEmail()Check if the email is mandatory or notfr.paris.lutece.portal.service.image.ImageResourcegetIcon()Get the Icon of the formintgetIdCategory()Get the category of the formintgetIdWorkflow()Get the id of the workflow associated with this appointment formbooleangetIsActive()Returns if the form is active or notbooleangetIsDisplayedOnPortlet()Returns if the form has to be displayed on the front office portletbooleangetIsMultislotAppointment()Returns the IsMultislotAppointmentbooleangetIsOpenFriday()Returns if it is open on Friday (if the checkbox is checked or not)booleangetIsOpenMonday()Returns if it is open on Monday (if the checkbox is checked or not)booleangetIsOpenSaturday()Returns if it is open on Saturday (if the checkbox is checked or not)booleangetIsOpenSunday()Returns if it is open on Monday (if the checkbox is checked or not)booleangetIsOpenThursday()Returns if it is open on Thursday (if the checkbox is checked or not)booleangetIsOpenTuesday()Returns if it is open on Tuesday (if the checkbox is checked or not)booleangetIsOpenWednesday()Returns if it is open on Wednesday (if the checkbox is checked or not)DoublegetLatitude()Get latitudeDoublegetLongitude()Get longitudeintgetMinTimeBeforeAppointment()Get the minimum time from now before a user can take an appointmentintgetNbConsecutiveSlots()Get the number of consecutive slotsintgetNbDaysBeforeNewAppointment()Get the number of days between two appointments of the same userintgetNbDaysForMaxAppointmentsPerUser()Get the number of days for the period of the maximum number of appointments authorized for a same userintgetNbMaxAppointmentsPerUser()Get the maximum number of appointments authorized for a same userintgetNbWeeksToDisplay()Returns the number of weeks to display the form to the user (for an appointment)StringgetReference()Returns the Reference of the formStringgetResourceId()StringgetResourceTypeCode()StringgetRole()StringgetTimeEnd()Returns the ending time of the working day of the formStringgetTimeStart()Returns the starting time of the working day of the formStringgetTitle()Returns the TitleStringgetWorkgroup()booleanisAnonymizable()voidsetActiveAuthentication(boolean bActiveAuthentication)Set the authentication of the formvoidsetAddress(String strAddress)Set addressvoidsetAnonymizable(boolean bIsAnonymizable)voidsetAnonymizationPattern(String strAnonymizationPattern)voidsetBoOverbooking(boolean bBoOverbooking)Sets the BoOverbookingvoidsetCalendarTemplateId(int nCalendarTemplateId)Set the id of the calendar template of this appointment formvoidsetCapacityPerSlot(int nCapacityPerSlot)Sets the theoretical capacity per slotvoidsetDateEndValidity(Date dateEndValidity)Sets the ending validity date of the formvoidsetDateOfModification(Date dateOfModification)Set the date of modification of the formvoidsetDateStartValidity(Date dateStartValidity)Sets the starting validity date of the formvoidsetDescription(String strDescription)Set the description of the appointment formvoidsetDisplayTitleFo(boolean bDisplayTitleFo)Sets if the title of the form has to be displayed on the front officevoidsetEnableCaptcha(boolean bEnableCaptcha)Enable or disable the captcha for this appointment formvoidsetEnableMandatoryEmail(boolean bEnableMandatoryEmail)Set enable mandatory emailvoidsetIcon(fr.paris.lutece.portal.service.image.ImageResource imgIcon)Set the icon of the formvoidsetIdCategory(int nIdCategory)Set the category of the formvoidsetIdWorkflow(int nIdWorkflow)Set the id of the workflow associated with this appointment formvoidsetIsActive(boolean bIsActive)Sets if the form is active or notvoidsetIsDisplayedOnPortlet(boolean bIsDisplayedOnPortlet)Sets if the form has to be displayed on the front office portletvoidsetIsMultislotAppointment(boolean bIsMultislotAppointment)Sets the IsMultislotAppointmentvoidsetIsOpenFriday(boolean bIsOpenFriday)Sets if it is open on Friday (if the checkbox is checked or not)voidsetIsOpenMonday(boolean bIsOpenMonday)Sets if it is open on Monday (if the checkbox is checked or not)voidsetIsOpenSaturday(boolean bIsOpenSaturday)Sets if it is open on Saturday (if the checkbox is checked or not)voidsetIsOpenSunday(boolean bIsOpenSunday)Sets if it is open on Sunday (if the checkbox is checked or not)voidsetIsOpenThursday(boolean bIsOpenThursday)Sets if it is open on Thursday (if the checkbox is checked or not)voidsetIsOpenTuesday(boolean bIsOpenTuesday)Sets if it is open on Tuesday (if the checkbox is checked or not)voidsetIsOpenWednesday(boolean bIsOpenWednesday)Sets if it is open on Wednesday (if the checkbox is checked or not)voidsetLatitude(Double dLatitude)Set latitudevoidsetLongitude(Double dLongitude)Set longitudevoidsetMinTimeBeforeAppointment(int nMinTimeBeforeAppointment)voidsetNbConsecutiveSlots(int nbConsecutiveSlots)Set the number of consecutive slotsvoidsetNbDaysBeforeNewAppointment(int nNbDaysBeforeNewAppointment)Set the number of days between two appointments of the same user (0 : no delay)voidsetNbDaysForMaxAppointmentsPerUser(int nNbDaysForMaxAppointmentsPerUser)Set the number of days of the period for the maximum number of appointments authorized for a same uservoidsetNbMaxAppointmentsPerUser(int nNbMaxAppointmentsPerUser)Set the maximum number of appointments authorized for a same uservoidsetNbWeeksToDisplay(int nNbWeeksToDisplay)Sets the number of weeks to display the form to the user (for an appointment)voidsetReference(String strRef)Sets the Reference of the formvoidsetRole(String strRole)voidsetTimeEnd(String timeEnd)Sets the ending time of the working day of the formvoidsetTimeStart(String timeStart)Sets the starting time of the working day of the formvoidsetTitle(String strTitle)Sets the TitlevoidsetWorkgroup(String workGroup)set the work group associate to the form-
Methods inherited from class fr.paris.lutece.plugins.appointment.business.rule.ReservationRule
getColor, getDescriptionRule, getDurationAppointments, getEnable, getIdForm, getIdReservationRule, getListWorkingDay, getMaxCapacityPerSlot, getMaxPeoplePerAppointment, getName, setColor, setDescriptionRule, setDurationAppointments, setEnable, setIdForm, setIdReservationRule, setListWorkingDay, setMaxCapacityPerSlot, setMaxPeoplePerAppointment, setName
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
Name of the resource type of Appointment Forms- See Also:
- Constant Field Values
-
RESOURCE_TYPE_CREATE
public static final String RESOURCE_TYPE_CREATE
Name of the resource type of Appointment Forms- See Also:
- Constant Field Values
-
-
Method Detail
-
getNbMaxAppointmentsPerUser
public int getNbMaxAppointmentsPerUser()
Get the maximum number of appointments authorized for a same user- Returns:
- the maximum number
-
setNbMaxAppointmentsPerUser
public void setNbMaxAppointmentsPerUser(int nNbMaxAppointmentsPerUser)
Set the maximum number of appointments authorized for a same user- Parameters:
nNbMaxAppointmentsPerUser- the maximum number of appointments to set
-
getNbDaysForMaxAppointmentsPerUser
public int getNbDaysForMaxAppointmentsPerUser()
Get the number of days for the period of the maximum number of appointments authorized for a same user- Returns:
- the number of days of the period
-
setNbDaysForMaxAppointmentsPerUser
public void setNbDaysForMaxAppointmentsPerUser(int nNbDaysForMaxAppointmentsPerUser)
Set the number of days of the period for the maximum number of appointments authorized for a same user- Parameters:
nNbDaysForMaxAppointmentsPerUser- the number of days to set
-
getTitle
public String getTitle()
Returns the Title- Returns:
- The Title
-
setTitle
public void setTitle(String strTitle)
Sets the Title- Parameters:
strTitle- The Title
-
getDateOfModification
public Date getDateOfModification()
Get the date of modification of the form- Returns:
- the date of modification
-
setDateOfModification
public void setDateOfModification(Date dateOfModification)
Set the date of modification of the form- Parameters:
dateOfModification- the date to set
-
getDescription
public String getDescription()
Get the description of the appointment form- Returns:
- The description of the appointment form
-
setDescription
public void setDescription(String strDescription)
Set the description of the appointment form- Parameters:
strDescription- The description of the appointment form
-
getReference
public String getReference()
Returns the Reference of the form- Returns:
- The reference of the form
-
setReference
public void setReference(String strRef)
Sets the Reference of the form- Parameters:
the- reference to set
-
getTimeStart
public String getTimeStart()
Returns the starting time of the working day of the form- Returns:
- The starting time
-
setTimeStart
public void setTimeStart(String timeStart)
Sets the starting time of the working day of the form- Parameters:
the- starting time to set The TimeStart
-
getTimeEnd
public String getTimeEnd()
Returns the ending time of the working day of the form- Returns:
- The ending time
-
setTimeEnd
public void setTimeEnd(String timeEnd)
Sets the ending time of the working day of the form- Parameters:
the- ending time to set
-
getMinTimeBeforeAppointment
public int getMinTimeBeforeAppointment()
Get the minimum time from now before a user can take an appointment- Returns:
-
setMinTimeBeforeAppointment
public void setMinTimeBeforeAppointment(int nMinTimeBeforeAppointment)
-
getIsOpenMonday
public boolean getIsOpenMonday()
Returns if it is open on Monday (if the checkbox is checked or not)- Returns:
- true if it is open on Monday
-
setIsOpenMonday
public void setIsOpenMonday(boolean bIsOpenMonday)
Sets if it is open on Monday (if the checkbox is checked or not)- Parameters:
bIsOpenMonday- The boolean value
-
getIsOpenTuesday
public boolean getIsOpenTuesday()
Returns if it is open on Tuesday (if the checkbox is checked or not)- Returns:
- true if it is open on Tuesday
-
setIsOpenTuesday
public void setIsOpenTuesday(boolean bIsOpenTuesday)
Sets if it is open on Tuesday (if the checkbox is checked or not)- Parameters:
bIsOpenTuesday- The boolean value
-
getIsOpenWednesday
public boolean getIsOpenWednesday()
Returns if it is open on Wednesday (if the checkbox is checked or not)- Returns:
- true if it is open on Wednesday
-
setIsOpenWednesday
public void setIsOpenWednesday(boolean bIsOpenWednesday)
Sets if it is open on Wednesday (if the checkbox is checked or not)- Parameters:
bIsOpenWednesday- The boolean value
-
getIsOpenThursday
public boolean getIsOpenThursday()
Returns if it is open on Thursday (if the checkbox is checked or not)- Returns:
- true if it is open on Thursday
-
setIsOpenThursday
public void setIsOpenThursday(boolean bIsOpenThursday)
Sets if it is open on Thursday (if the checkbox is checked or not)- Parameters:
bIsOpenThursday- The boolean value
-
getIsOpenFriday
public boolean getIsOpenFriday()
Returns if it is open on Friday (if the checkbox is checked or not)- Returns:
- true if it is open on Friday
-
setIsOpenFriday
public void setIsOpenFriday(boolean bIsOpenFriday)
Sets if it is open on Friday (if the checkbox is checked or not)- Parameters:
bIsOpenFriday- The boolean value
-
getIsOpenSaturday
public boolean getIsOpenSaturday()
Returns if it is open on Saturday (if the checkbox is checked or not)- Returns:
- true if it is open on Saturday
-
setIsOpenSaturday
public void setIsOpenSaturday(boolean bIsOpenSaturday)
Sets if it is open on Saturday (if the checkbox is checked or not)- Parameters:
bIsOpenSaturday- The boolean value
-
getIsOpenSunday
public boolean getIsOpenSunday()
Returns if it is open on Monday (if the checkbox is checked or not)- Returns:
- true if it is open on Sunday
-
setIsOpenSunday
public void setIsOpenSunday(boolean bIsOpenSunday)
Sets if it is open on Sunday (if the checkbox is checked or not)- Parameters:
bIsOpenSunday- The boolean value
-
getDateStartValidity
public Date getDateStartValidity()
Returns the starting validity date of the form- Returns:
- The starting validity date of the form
-
setDateStartValidity
public void setDateStartValidity(Date dateStartValidity)
Sets the starting validity date of the form- Parameters:
dateStartValidity- The starting validity date
-
getDateEndValidity
public Date getDateEndValidity()
Returns the ending validity date of the form- Returns:
- The ending validity date
-
setDateEndValidity
public void setDateEndValidity(Date dateEndValidity)
Sets the ending validity date of the form- Parameters:
dateEndValidity- the ending validity date to set
-
getIsActive
public boolean getIsActive()
Returns if the form is active or not- Returns:
- true if the form is active
-
setIsActive
public void setIsActive(boolean bIsActive)
Sets if the form is active or not- Parameters:
bIsActive- The boolean value
-
getDisplayTitleFo
public boolean getDisplayTitleFo()
Returns if the title of the form has to be displayed on the front office- Returns:
- true if it has to be displayed
-
setDisplayTitleFo
public void setDisplayTitleFo(boolean bDisplayTitleFo)
Sets if the title of the form has to be displayed on the front office- Parameters:
bDisplayTitleFo- The boolean value
-
getIsDisplayedOnPortlet
public boolean getIsDisplayedOnPortlet()
Returns if the form has to be displayed on the front office portlet- Returns:
- true if it has to be displayed
-
setIsDisplayedOnPortlet
public void setIsDisplayedOnPortlet(boolean bIsDisplayedOnPortlet)
Sets if the form has to be displayed on the front office portlet- Parameters:
bIsDisplayedOnPortlet- The boolean value
-
getNbWeeksToDisplay
public int getNbWeeksToDisplay()
Returns the number of weeks to display the form to the user (for an appointment)- Returns:
- The number of weeks to display
-
setNbWeeksToDisplay
public void setNbWeeksToDisplay(int nNbWeeksToDisplay)
Sets the number of weeks to display the form to the user (for an appointment)- Parameters:
nNbWeeksToDisplay- the number of weeks to display the form
-
getIdWorkflow
public int getIdWorkflow()
Get the id of the workflow associated with this appointment form- Returns:
- The id of the workflow
-
setIdWorkflow
public void setIdWorkflow(int nIdWorkflow)
Set the id of the workflow associated with this appointment form- Parameters:
nIdWorkflow- The id of the workflow
-
getEnableCaptcha
public boolean getEnableCaptcha()
Check if the captcha is enabled for this appointment form- Returns:
- True if the captcha is enabled, false otherwise
-
setEnableCaptcha
public void setEnableCaptcha(boolean bEnableCaptcha)
Enable or disable the captcha for this appointment form- Parameters:
bEnableCaptcha- True to enable the captcha, false to disable it
-
getCalendarTemplateId
public int getCalendarTemplateId()
Get the id of the calendar template of this appointment form- Returns:
- The id of the calendar template of this appointment form
-
setCalendarTemplateId
public void setCalendarTemplateId(int nCalendarTemplateId)
Set the id of the calendar template of this appointment form- Parameters:
nCalendarTemplateId- The id of the calendar template of this appointment form
-
getEnableMandatoryEmail
public boolean getEnableMandatoryEmail()
Check if the email is mandatory or not- Returns:
- true if enable mandatory email
-
setEnableMandatoryEmail
public void setEnableMandatoryEmail(boolean bEnableMandatoryEmail)
Set enable mandatory email- Parameters:
bEnableMandatoryEmail- the boolean value for mandatory email
-
getIcon
public fr.paris.lutece.portal.service.image.ImageResource getIcon()
Get the Icon of the form- Returns:
- the icon of the form
-
setIcon
public void setIcon(fr.paris.lutece.portal.service.image.ImageResource imgIcon)
Set the icon of the form- Parameters:
imgIcon- the icon to associate to the form
-
getNbDaysBeforeNewAppointment
public int getNbDaysBeforeNewAppointment()
Get the number of days between two appointments of the same user- Returns:
- the delay in days
-
setNbDaysBeforeNewAppointment
public void setNbDaysBeforeNewAppointment(int nNbDaysBeforeNewAppointment)
Set the number of days between two appointments of the same user (0 : no delay)- Parameters:
nNbDaysBeforeNewAppointment- the number of days to set
-
getIdCategory
public int getIdCategory()
Get the category of the form- Returns:
- the category of the form
-
setIdCategory
public void setIdCategory(int nIdCategory)
Set the category of the form- Parameters:
nIdCategory- the category to set
-
getActiveAuthentication
public boolean getActiveAuthentication()
Get the authentication- Returns:
- true if the authentication is required
-
setActiveAuthentication
public void setActiveAuthentication(boolean bActiveAuthentication)
Set the authentication of the form- Parameters:
_bActiveAuthentication- the boolean value for the authentication
-
getLatitude
public Double getLatitude()
Get latitude- Returns:
- latitude
-
setLatitude
public void setLatitude(Double dLatitude)
Set latitude- Parameters:
dLatitude- latitude
-
getLongitude
public Double getLongitude()
Get longitude- Returns:
- longitude
-
setLongitude
public void setLongitude(Double dLongitude)
Set longitude- Parameters:
dLongitude- longitude
-
getAddress
public String getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(String strAddress)
Set address- Parameters:
strAddress- address
-
getResourceTypeCode
public String getResourceTypeCode()
- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getResourceId
public String getResourceId()
- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getWorkgroup
public String getWorkgroup()
- Specified by:
getWorkgroupin interfacefr.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
-
getBoOverbooking
public boolean getBoOverbooking()
Returns the BoOverbooking- Returns:
- The BoOverbooking
-
setBoOverbooking
public void setBoOverbooking(boolean bBoOverbooking)
Sets the BoOverbooking- Parameters:
bBoOverbooking- The BoOverbooking
-
getIsMultislotAppointment
public boolean getIsMultislotAppointment()
Returns the IsMultislotAppointment- Returns:
- The IsMultislotAppointment
-
setIsMultislotAppointment
public void setIsMultislotAppointment(boolean bIsMultislotAppointment)
Sets the IsMultislotAppointment- Parameters:
bIsMultislotAppointment- The IsMultislotAppointment
-
getNbConsecutiveSlots
public int getNbConsecutiveSlots()
Get the number of consecutive slots- Returns:
- the number of consecutive slots
-
setNbConsecutiveSlots
public void setNbConsecutiveSlots(int nbConsecutiveSlots)
Set the number of consecutive slots- Parameters:
nbConsecutiveSlots- the number of consecutive slots
-
getRole
public String getRole()
- Returns:
- the strRole
-
setRole
public void setRole(String strRole)
- Parameters:
strRole- the strRole to set
-
getCapacityPerSlot
public int getCapacityPerSlot()
Returns the theoretical capacity per slot- Returns:
- The theoretical capacity per slot
-
setCapacityPerSlot
public void setCapacityPerSlot(int nCapacityPerSlot)
Sets the theoretical capacity per slot- Parameters:
nCapacityPerSlot- The theoretical capacity per slot
-
getAnonymizationPattern
public String getAnonymizationPattern()
-
setAnonymizationPattern
public void setAnonymizationPattern(String strAnonymizationPattern)
-
isAnonymizable
public boolean isAnonymizable()
-
setAnonymizable
public void setAnonymizable(boolean bIsAnonymizable)
-
-