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:
Serializable
The DTO for an appointment in front office
- Author:
- Laurent Payen
- See Also:
-
Field Summary
FieldsFields inherited from class fr.paris.lutece.plugins.appointment.business.appointment.Appointment
APPOINTMENT_RESOURCE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the name of the admin usergetAllErrors(Locale locale) Get all the possible errors of the formGet the date of the appointmentReturns the email confirmGet the ending date time of the appointmentGet the ending time of the appointmentreturn the formatted date of the appointment takenintGet the form IdbooleanReturns the IsSavedList<fr.paris.lutece.plugins.genericattributes.business.Response>Get the list of the responses of the additional entries of the formCollection<fr.paris.lutece.plugins.workflowcore.business.action.Action>Get the available actions of the workflow for this appointmentGet the map of the responses of the additional entries of the formintGet the number of booked seats for the appointmentintGet the maximum number of booked seats the user can takebooleanReturns the OverbookingAllowedGet the starting date time of the appointmentGet the starting time of the appointmentfr.paris.lutece.plugins.workflowcore.business.state.StategetState()Get the state of the appointmentvoidsetAdminUser(String strAdminUser) Set the name of the admin uservoidsetConfirmEmail(String strEmailConfirm) Sets the email confirmvoidsetDateOfTheAppointment(String strDateOfTheAppointment) Set the date of the appointmentvoidsetEndingDateTime(LocalDateTime endingDateTime) Set the ending date time of the appointmentvoidsetEndingTime(LocalTime endingTime) Set the ending time of the appointmentvoidsetFormattedDateAppointmentTaken(String strFormattedDateAppointmentTaken) set the formatted date of the appointment takenvoidsetIdForm(int nIdForm) Set the Form IdvoidsetIsSaved(boolean bIsSaved) Sets the IsSavedvoidsetListResponse(List<fr.paris.lutece.plugins.genericattributes.business.Response> listResponse) Set the list of the responses of the additional entries of the formvoidsetListWorkflowActions(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions) Set the available actions of the workflow for this appointmentvoidsetMapResponsesByIdEntry(Map<Integer, 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(LocalDateTime startingDateTime) Set the starting date time of the appointmentvoidsetStartingTime(LocalTime startingTime) Set the starting time of the appointmentvoidsetState(fr.paris.lutece.plugins.workflowcore.business.state.State state) Set the state of the appointmentMethods 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, setUserMethods 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 Details
-
PROPERTY_APPOINTMENT_STATUS_UNRESERVED
- See Also:
-
PROPERTY_APPOINTMENT_STATUS_RESERVED
- See Also:
-
-
Constructor Details
-
AppointmentDTO
public AppointmentDTO()
-
-
Method Details
-
getAdminUser
Get the name of the admin user- Returns:
- the admin user name
-
setAdminUser
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
Get the starting date time of the appointment- Returns:
- the starting date time
-
setStartingDateTime
Set the starting date time of the appointment- Parameters:
startingDateTime- the starting date time
-
getEndingDateTime
Get the ending date time of the appointment- Returns:
- the ending date time
-
setEndingDateTime
Set the ending date time of the appointment- Parameters:
endingDateTime- the ending date time
-
getStartingTime
Get the starting time of the appointment- Returns:
- the starting time
-
setStartingTime
Set the starting time of the appointment- Parameters:
startingTime- the starting time to set
-
getEndingTime
Get the ending time of the appointment- Returns:
- the ending time
-
setEndingTime
Set the ending time of the appointment- Parameters:
endingTime- the ending time
-
getDateOfTheAppointment
Get the date of the appointment- Returns:
- the date of the appointment
-
setDateOfTheAppointment
Set the date of the appointment- Parameters:
strDateOfTheAppointment- the date to set
-
getListResponse
Get the list of the responses of the additional entries of the form- Returns:
- the list of the responses
-
setListResponse
public void setListResponse(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 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(Collection<fr.paris.lutece.plugins.workflowcore.business.action.Action> listWorkflowActions) Set the available actions of the workflow for this appointment- Parameters:
listWorkflowActions-
-
getMapResponsesByIdEntry
public Map<Integer,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(Map<Integer, 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
Returns the email confirm- Returns:
- The email confirm
-
setConfirmEmail
Sets the email confirm- Parameters:
strEmailConfirm- The email confirm
-
getFormattedDateAppointmentTaken
return the formatted date of the appointment taken -
setFormattedDateAppointmentTaken
set the formatted date of the appointment taken- Parameters:
strFormattedDateAppointmentTaken- the formatted date of the appointment taken
-
getAllErrors
Get all the possible errors of the form- Parameters:
locale- the locale- Returns:
- a list of all the possible errors of the form
-