Class AppointmentDTO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.user.User
-
- fr.paris.lutece.plugins.appointment.business.appointment.Appointment
-
- fr.paris.lutece.plugins.appointment.web.dto.AppointmentDTO
-
- All Implemented Interfaces:
java.io.Serializable
public final class AppointmentDTO extends Appointment
The DTO for an appointment in front office- Author:
- Laurent Payen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_APPOINTMENT_STATUS_RESERVEDstatic java.lang.StringPROPERTY_APPOINTMENT_STATUS_UNRESERVED-
Fields inherited from class fr.paris.lutece.plugins.appointment.business.appointment.Appointment
APPOINTMENT_RESOURCE_TYPE
-
-
Constructor Summary
Constructors Constructor Description AppointmentDTO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearMapResponsesByIdEntry()java.lang.StringgetAdminUser()Get the name of the admin userstatic java.util.List<java.lang.String>getAllErrors(java.util.Locale locale)Get all the possible errors of the formjava.lang.StringgetDateOfTheAppointment()Get the date of the appointmentjava.lang.StringgetEmailConfirm()Returns the email confirmjava.time.LocalDateTimegetEndingDateTime()Get the ending date time of the appointmentjava.time.LocalTimegetEndingTime()Get the ending time of the appointmentjava.lang.StringgetFormattedDateAppointmentTaken()return the formatted date of the appointment takenintgetIdForm()Get the form IdbooleangetIsSaved()Returns the IsSavedjava.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>getListResponse()Get the list of the responses of the additional entries of the formjava.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action>getListWorkflowActions()Get the available actions of the workflow for this appointmentjava.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>>getMapResponsesByIdEntry()Get the map of the responses of the additional entries of the formintgetNbBookedSeats()Get the number of booked seats for the appointmentintgetNbMaxPotentialBookedSeats()Get the maximum number of booked seats the user can takebooleangetOverbookingAllowed()Returns the OverbookingAllowedjava.time.LocalDateTimegetStartingDateTime()Get the starting date time of the appointmentjava.time.LocalTimegetStartingTime()Get the starting time of the appointmentfr.paris.lutece.plugins.workflowcore.business.state.StategetState()Get the state of the appointmentvoidsetAdminUser(java.lang.String strAdminUser)Set the name of the admin uservoidsetConfirmEmail(java.lang.String strEmailConfirm)Sets the email confirmvoidsetDateOfTheAppointment(java.lang.String strDateOfTheAppointment)Set the date of the appointmentvoidsetEndingDateTime(java.time.LocalDateTime endingDateTime)Set the ending date time of the appointmentvoidsetEndingTime(java.time.LocalTime endingTime)Set the ending time of the appointmentvoidsetFormattedDateAppointmentTaken(java.lang.String strFormattedDateAppointmentTaken)set the formatted date of the appointment takenvoidsetIdForm(int nIdForm)Set the Form IdvoidsetIsSaved(boolean bIsSaved)Sets the IsSavedvoidsetListResponse(java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)Set the list of the responses of the additional entries of the formvoidsetListWorkflowActions(java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)Set the available actions of the workflow for this appointmentvoidsetMapResponsesByIdEntry(java.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>> mapResponsesByIdEntry)Set the map of the responses of the addtional entries of the form to the appointmentvoidsetNbBookedSeats(int nNumberOfPlacesReserved)Set the number of booked seats for the appointmentvoidsetNbMaxPotentialBookedSeats(int nNbMaxPotentialBookedSeats)Set the maximum number of booked seats the user can takevoidsetOverbookingAllowed(boolean bOverbookingAllowed)Sets the OverbookingAllowedvoidsetStartingDateTime(java.time.LocalDateTime startingDateTime)Set the starting date time of the appointmentvoidsetStartingTime(java.time.LocalTime startingTime)Set the starting time of the appointmentvoidsetState(fr.paris.lutece.plugins.workflowcore.business.state.State state)Set the state of the appointment-
Methods inherited from class fr.paris.lutece.plugins.appointment.business.appointment.Appointment
addAllSlot, addSlot, getAdminUserCreate, getAppointmentTakenSqlDate, getDateAppointmentTaken, getIdActionCancelled, getIdActionReported, getIdAdminUser, getIdAppointment, getIsCancelled, getIsSurbooked, getListAppointmentSlot, getNbPlaces, getNotification, getReference, getSlot, getUser, setAdminUserCreate, setAppointmentTakenSqlDate, setDateAppointmentTaken, setIdActionCancelled, setIdActionReported, setIdAdminUser, setIdAppointment, setIsCancelled, setIsSurbooked, setListAppointmentSlot, setNbPlaces, setNotification, setReference, setSlot, setUser
-
Methods inherited from class fr.paris.lutece.plugins.appointment.business.user.User
getAppointments, getEmail, getFirstName, getGuid, getIdUser, getLastName, getPhoneNumber, setAppointments, setEmail, setFirstName, setGuid, setIdUser, setLastName, setPhoneNumber
-
-
-
-
Field Detail
-
PROPERTY_APPOINTMENT_STATUS_UNRESERVED
public static final java.lang.String PROPERTY_APPOINTMENT_STATUS_UNRESERVED
- See Also:
- Constant Field Values
-
PROPERTY_APPOINTMENT_STATUS_RESERVED
public static final java.lang.String PROPERTY_APPOINTMENT_STATUS_RESERVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAdminUser
public java.lang.String getAdminUser()
Get the name of the admin user- Returns:
- the admin user name
-
setAdminUser
public void setAdminUser(java.lang.String strAdminUser)
Set the name of the admin user- Parameters:
strAdminUser- the admin user name to set
-
getState
public fr.paris.lutece.plugins.workflowcore.business.state.State getState()
Get the state of the appointment- Returns:
- the state of the appointment
-
setState
public void setState(fr.paris.lutece.plugins.workflowcore.business.state.State state)
Set the state of the appointment- Parameters:
state- the state to set
-
getStartingDateTime
public java.time.LocalDateTime getStartingDateTime()
Get the starting date time of the appointment- Returns:
- the starting date time
-
setStartingDateTime
public void setStartingDateTime(java.time.LocalDateTime startingDateTime)
Set the starting date time of the appointment- Parameters:
startingDateTime- the starting date time
-
getEndingDateTime
public java.time.LocalDateTime getEndingDateTime()
Get the ending date time of the appointment- Returns:
- the ending date time
-
setEndingDateTime
public void setEndingDateTime(java.time.LocalDateTime endingDateTime)
Set the ending date time of the appointment- Parameters:
endingDateTime- the ending date time
-
getStartingTime
public java.time.LocalTime getStartingTime()
Get the starting time of the appointment- Returns:
- the starting time
-
setStartingTime
public void setStartingTime(java.time.LocalTime startingTime)
Set the starting time of the appointment- Parameters:
startingTime- the starting time to set
-
getEndingTime
public java.time.LocalTime getEndingTime()
Get the ending time of the appointment- Returns:
- the ending time
-
setEndingTime
public void setEndingTime(java.time.LocalTime endingTime)
Set the ending time of the appointment- Parameters:
endingTime- the ending time
-
getDateOfTheAppointment
public java.lang.String getDateOfTheAppointment()
Get the date of the appointment- Returns:
- the date of the appointment
-
setDateOfTheAppointment
public void setDateOfTheAppointment(java.lang.String strDateOfTheAppointment)
Set the date of the appointment- Parameters:
strDateOfTheAppointment- the date to set
-
getListResponse
public java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> getListResponse()
Get the list of the responses of the additional entries of the form- Returns:
- the list of the responses
-
setListResponse
public void setListResponse(java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse)
Set the list of the responses of the additional entries of the form- Parameters:
listResponse- the list of the responses to set
-
getIdForm
public int getIdForm()
Get the form Id- Returns:
- the form Id
-
setIdForm
public void setIdForm(int nIdForm)
Set the Form Id- Parameters:
nIdForm- the form Id to set
-
getNbBookedSeats
public int getNbBookedSeats()
Get the number of booked seats for the appointment- Returns:
- the number of booked seats
-
setNbBookedSeats
public void setNbBookedSeats(int nNumberOfPlacesReserved)
Set the number of booked seats for the appointment- Parameters:
nNumberOfPlacesReserved- the number to set
-
getNbMaxPotentialBookedSeats
public int getNbMaxPotentialBookedSeats()
Get the maximum number of booked seats the user can take- Returns:
- the max number of booked seats
-
setNbMaxPotentialBookedSeats
public void setNbMaxPotentialBookedSeats(int nNbMaxPotentialBookedSeats)
Set the maximum number of booked seats the user can take- Parameters:
nNbMaxPotentialBookedSeats- the maximum number to set
-
getListWorkflowActions
public java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> getListWorkflowActions()
Get the available actions of the workflow for this appointment- Returns:
- the actions
-
setListWorkflowActions
public void setListWorkflowActions(java.util.Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions)
Set the available actions of the workflow for this appointment- Parameters:
listWorkflowActions-
-
getMapResponsesByIdEntry
public java.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>> getMapResponsesByIdEntry()
Get the map of the responses of the additional entries of the form- Returns:
- the map of the responses
-
setMapResponsesByIdEntry
public void setMapResponsesByIdEntry(java.util.Map<java.lang.Integer,java.util.List<fr.paris.lutece.plugins.genericattributes.business.Response>> mapResponsesByIdEntry)
Set the map of the responses of the addtional entries of the form to the appointment- Parameters:
mapResponsesByIdEntry- the map to set
-
clearMapResponsesByIdEntry
public void clearMapResponsesByIdEntry()
-
getIsSaved
public boolean getIsSaved()
Returns the IsSaved- Returns:
- The IsSaved
-
setIsSaved
public void setIsSaved(boolean bIsSaved)
Sets the IsSaved- Parameters:
bIsSaved- The IsSaved
-
getOverbookingAllowed
public boolean getOverbookingAllowed()
Returns the OverbookingAllowed- Returns:
- The OverbookingAllowed
-
setOverbookingAllowed
public void setOverbookingAllowed(boolean bOverbookingAllowed)
Sets the OverbookingAllowed- Parameters:
bOverbookingAllowed- The OverbookingAllowed
-
getEmailConfirm
public java.lang.String getEmailConfirm()
Returns the email confirm- Returns:
- The email confirm
-
setConfirmEmail
public void setConfirmEmail(java.lang.String strEmailConfirm)
Sets the email confirm- Parameters:
strEmailConfirm- The email confirm
-
getFormattedDateAppointmentTaken
public java.lang.String getFormattedDateAppointmentTaken()
return the formatted date of the appointment taken
-
setFormattedDateAppointmentTaken
public void setFormattedDateAppointmentTaken(java.lang.String strFormattedDateAppointmentTaken)
set the formatted date of the appointment taken- Parameters:
strFormattedDateAppointmentTaken- the formatted date of the appointment taken
-
getAllErrors
public static java.util.List<java.lang.String> getAllErrors(java.util.Locale locale)
Get all the possible errors of the form- Parameters:
locale- the locale- Returns:
- a list of all the possible errors of the form
-
-