fr.paris.lutece.plugins.appointment.business
Class AppointmentForm

java.lang.Object
  extended by fr.paris.lutece.plugins.appointment.business.AppointmentForm
All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource, Serializable, Cloneable

public class AppointmentForm
extends Object
implements fr.paris.lutece.portal.service.rbac.RBACResource, Cloneable, Serializable

This is the business class for the object AppointmentForm

See Also:
Serialized Form

Field Summary
static String RESOURCE_TYPE
          Name of the resource type of Appointment Forms
 
Constructor Summary
AppointmentForm()
           
 
Method Summary
 Object clone()
          
 boolean getAllowUsersToCancelAppointments()
          Check if a FO user can cancel appointments of this form
 int getClosingHour()
          Get the closing hour
 int getClosingMinutes()
          Get the closing minutes
 Date getDateEndValidity()
          Returns the DateEndValidity
 Date getDateStartValidity()
          Returns the DateStartValidity
 String getDescription()
          Get the description of the appointment form
 boolean getDisplayTitleFo()
          Returns the DisplayTitleFo
 int getDurationAppointments()
          Returns the DurationAppointments
 boolean getEnableCaptcha()
          Check if the captcha is enabled for this appointment form
 int getIdForm()
          Returns the IdForm
 int getIdWorkflow()
          Get the id of the workflow associated with this appointment form
 boolean getIsActive()
          Returns the IsActive
 boolean getIsOpenFriday()
          Returns the IsOpenFriday
 boolean getIsOpenMonday()
          Returns the IsOpenMonday
 boolean getIsOpenSaturday()
          Returns the IsOpenSaturday
 boolean getIsOpenSunday()
          Returns the IsOpenSunday
 boolean getIsOpenThursday()
          Returns the IsOpenThursday
 boolean getIsOpenTuesday()
          Returns the IsOpenTuesday
 boolean getIsOpenWednesday()
          Returns the IsOpenWednesday
 int getMinDaysBeforeAppointment()
          Get the minimum number of days between the current date and the date of appointment make by users
 int getNbWeeksToDisplay()
          Returns the NbWeeksToDisplay
 int getOpeningHour()
          Get the opening hour
 int getOpeningMinutes()
          Get the opening minutes
 int getPeoplePerAppointment()
          Returns the number of person per appointment
 String getResourceId()
          
 String getResourceTypeCode()
          
 String getTimeEnd()
          Returns the TimeEnd
 String getTimeStart()
          Returns the TimeStart
 String getTitle()
          Returns the Title
 boolean isDayOfWeekOpened(int nDayOfWeek)
          Check if a day of the week is opened or not
 void setAllowUsersToCancelAppointments(boolean bAllowUsersToCancelAppointments)
          Set whether FO user can cancel appointments of this form
 void setClosingHour(int nClosingHour)
          Set the closing hour
 void setClosingMinutes(int nClosingMinutes)
          Set the closing minutes
 void setDateEndValidity(Date dateDateEndValidity)
          Sets the DateEndValidity
 void setDateStartValidity(Date dateDateStartValidity)
          Sets the DateStartValidity
 void setDescription(String strDescription)
          Set the description of the appointment form
 void setDisplayTitleFo(boolean bDisplayTitleFo)
          Sets the DispolayTitleFo
 void setDurationAppointments(int nDurationAppointments)
          Sets the DurationAppointments
 void setEnableCaptcha(boolean bEnableCaptcha)
          Enable or disable the captcha for this appointment form
 void setIdForm(int nIdForm)
          Sets the IdForm
 void setIdWorkflow(int nIdWorkflow)
          Set the id of the workflow associated with this appointment form
 void setIsActive(boolean bIsActive)
          Sets the IsActive
 void setIsOpenFriday(boolean bIsOpenFriday)
          Sets the IsOpenFriday
 void setIsOpenMonday(boolean bIsOpenMonday)
          Sets the IsOpenMonday
 void setIsOpenSaturday(boolean bIsOpenSaturday)
          Sets the IsOpenSaturday
 void setIsOpenSunday(boolean bIsOpenSunday)
          Sets the IsOpenSunday
 void setIsOpenThursday(boolean bIsOpenThursday)
          Sets the IsOpenThursday
 void setIsOpenTuesday(boolean bIsOpenTuesday)
          Sets the IsOpenTuesday
 void setIsOpenWednesday(boolean bIsOpenWednesday)
          Sets the IsOpenWednesday
 void setMinDaysBeforeAppointment(int nMinDayBeforeAppointment)
          Set the minimum number of days between the current date and the date of appointment make by users
 void setNbWeeksToDisplay(int nNbWeeksToDisplay)
          Sets the NbWeeksToDisplay
 void setOpeningHour(int nOpeningHour)
          Set the opening hour
 void setOpeningMinutes(int nOpeningMinutes)
          Set the opening minutes
 void setPeoplePerAppointment(int nPeoplePerAppointment)
          Sets the number of person per appointment
 void setTimeEnd(String nTimeEnd)
          Sets the TimeEnd
 void setTimeStart(String nTimeStart)
          Sets the TimeStart
 void setTitle(String strTitle)
          Sets the Title
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_TYPE

public static final String RESOURCE_TYPE
Name of the resource type of Appointment Forms

See Also:
Constant Field Values
Constructor Detail

AppointmentForm

public AppointmentForm()
Method Detail

getIdForm

public int getIdForm()
Returns the IdForm

Returns:
The IdForm

setIdForm

public void setIdForm(int nIdForm)
Sets the IdForm

Parameters:
nIdForm - The IdForm

getTitle

public String getTitle()
Returns the Title

Returns:
The Title

setTitle

public void setTitle(String strTitle)
Sets the Title

Parameters:
strTitle - The Title

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

getTimeStart

public String getTimeStart()
Returns the TimeStart

Returns:
The TimeStart

setTimeStart

public void setTimeStart(String nTimeStart)
Sets the TimeStart

Parameters:
nTimeStart - The TimeStart

getTimeEnd

public String getTimeEnd()
Returns the TimeEnd

Returns:
The TimeEnd

setTimeEnd

public void setTimeEnd(String nTimeEnd)
Sets the TimeEnd

Parameters:
nTimeEnd - The TimeEnd

getDurationAppointments

public int getDurationAppointments()
Returns the DurationAppointments

Returns:
The DurationAppointments

setDurationAppointments

public void setDurationAppointments(int nDurationAppointments)
Sets the DurationAppointments

Parameters:
nDurationAppointments - The DurationAppointments

getIsOpenMonday

public boolean getIsOpenMonday()
Returns the IsOpenMonday

Returns:
The IsOpenMonday

setIsOpenMonday

public void setIsOpenMonday(boolean bIsOpenMonday)
Sets the IsOpenMonday

Parameters:
bIsOpenMonday - The IsOpenMonday

getIsOpenTuesday

public boolean getIsOpenTuesday()
Returns the IsOpenTuesday

Returns:
The IsOpenTuesday

setIsOpenTuesday

public void setIsOpenTuesday(boolean bIsOpenTuesday)
Sets the IsOpenTuesday

Parameters:
bIsOpenTuesday - The IsOpenTuesday

getIsOpenWednesday

public boolean getIsOpenWednesday()
Returns the IsOpenWednesday

Returns:
The IsOpenWednesday

setIsOpenWednesday

public void setIsOpenWednesday(boolean bIsOpenWednesday)
Sets the IsOpenWednesday

Parameters:
bIsOpenWednesday - The IsOpenWednesday

getIsOpenThursday

public boolean getIsOpenThursday()
Returns the IsOpenThursday

Returns:
The IsOpenThursday

setIsOpenThursday

public void setIsOpenThursday(boolean bIsOpenThursday)
Sets the IsOpenThursday

Parameters:
bIsOpenThursday - The IsOpenThursday

getIsOpenFriday

public boolean getIsOpenFriday()
Returns the IsOpenFriday

Returns:
The IsOpenFriday

setIsOpenFriday

public void setIsOpenFriday(boolean bIsOpenFriday)
Sets the IsOpenFriday

Parameters:
bIsOpenFriday - The IsOpenFriday

getIsOpenSaturday

public boolean getIsOpenSaturday()
Returns the IsOpenSaturday

Returns:
The IsOpenSaturday

setIsOpenSaturday

public void setIsOpenSaturday(boolean bIsOpenSaturday)
Sets the IsOpenSaturday

Parameters:
bIsOpenSaturday - The IsOpenSaturday

getIsOpenSunday

public boolean getIsOpenSunday()
Returns the IsOpenSunday

Returns:
The IsOpenSunday

setIsOpenSunday

public void setIsOpenSunday(boolean bIsOpenSunday)
Sets the IsOpenSunday

Parameters:
bIsOpenSunday - The IsOpenSunday

getDateStartValidity

public Date getDateStartValidity()
Returns the DateStartValidity

Returns:
The DateStartValidity

setDateStartValidity

public void setDateStartValidity(Date dateDateStartValidity)
Sets the DateStartValidity

Parameters:
dateDateStartValidity - The DateStartValidity

getDateEndValidity

public Date getDateEndValidity()
Returns the DateEndValidity

Returns:
The DateEndValidity

setDateEndValidity

public void setDateEndValidity(Date dateDateEndValidity)
Sets the DateEndValidity

Parameters:
dateDateEndValidity - The DateEndValidity

getIsActive

public boolean getIsActive()
Returns the IsActive

Returns:
The IsActive

setIsActive

public void setIsActive(boolean bIsActive)
Sets the IsActive

Parameters:
bIsActive - The IsActive

getDisplayTitleFo

public boolean getDisplayTitleFo()
Returns the DisplayTitleFo

Returns:
The DisplayTitleFo

setDisplayTitleFo

public void setDisplayTitleFo(boolean bDisplayTitleFo)
Sets the DispolayTitleFo

Parameters:
bDisplayTitleFo - The DisplayTitleFo

getNbWeeksToDisplay

public int getNbWeeksToDisplay()
Returns the NbWeeksToDisplay

Returns:
The NbWeeksToDisplay

setNbWeeksToDisplay

public void setNbWeeksToDisplay(int nNbWeeksToDisplay)
Sets the NbWeeksToDisplay

Parameters:
nNbWeeksToDisplay - The NbWeeksToDisplay

getPeoplePerAppointment

public int getPeoplePerAppointment()
Returns the number of person per appointment

Returns:
The number of person per appointment

setPeoplePerAppointment

public void setPeoplePerAppointment(int nPeoplePerAppointment)
Sets the number of person per appointment

Parameters:
nPeoplePerAppointment - The number of person per appointment

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

getOpeningHour

public int getOpeningHour()
Get the opening hour

Returns:
the opening hour

setOpeningHour

public void setOpeningHour(int nOpeningHour)
Set the opening hour

Parameters:
nOpeningHour - The opening hour

getOpeningMinutes

public int getOpeningMinutes()
Get the opening minutes

Returns:
The opening minutes

setOpeningMinutes

public void setOpeningMinutes(int nOpeningMinutes)
Set the opening minutes

Parameters:
nOpeningMinutes - The opening minutes

getClosingHour

public int getClosingHour()
Get the closing hour

Returns:
the closing hour

setClosingHour

public void setClosingHour(int nClosingHour)
Set the closing hour

Parameters:
nClosingHour - The closing hour

getClosingMinutes

public int getClosingMinutes()
Get the closing minutes

Returns:
the closing minutes

setClosingMinutes

public void setClosingMinutes(int nClosingMinutes)
Set the closing minutes

Parameters:
nClosingMinutes - the closing minutes

getMinDaysBeforeAppointment

public int getMinDaysBeforeAppointment()
Get the minimum number of days between the current date and the date of appointment make by users

Returns:
The minimum number of days between the current date and the date of appointment make by users

setMinDaysBeforeAppointment

public void setMinDaysBeforeAppointment(int nMinDayBeforeAppointment)
Set the minimum number of days between the current date and the date of appointment make by users

Parameters:
nMinDayBeforeAppointment - The minimum number of days between the current date and the date of appointment make by users

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

getAllowUsersToCancelAppointments

public boolean getAllowUsersToCancelAppointments()
Check if a FO user can cancel appointments of this form

Returns:
True if a FO user can cancel appointments of this form, false otherwise

setAllowUsersToCancelAppointments

public void setAllowUsersToCancelAppointments(boolean bAllowUsersToCancelAppointments)
Set whether FO user can cancel appointments of this form

Parameters:
bAllowUsersToCancelAppointments - True if a FO user can cancel appointments of this form, false otherwise

isDayOfWeekOpened

public boolean isDayOfWeekOpened(int nDayOfWeek)
Check if a day of the week is opened or not

Parameters:
nDayOfWeek - The number of the day of the week : 1 for Monday, 2 for Tuesday, ...
Returns:
True if the requested day of the week is open, false otherwise

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

clone

public Object clone()

Overrides:
clone in class Object


Copyright © 2014 Mairie de Paris. All Rights Reserved.