Class CalendarAppointmentResourceDTO
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.resource.business.calendar.CalendarAppointmentResourceDTO
- All Implemented Interfaces:
Serializable,Comparable<CalendarAppointmentResourceDTO>
public class CalendarAppointmentResourceDTO
extends Object
implements Serializable, Comparable<CalendarAppointmentResourceDTO>
DTO to display appointments of resources in a calendar
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarAppointmentResourceDTO(int nIdApppointment, int nStartingHour, int nStartingMinute, int nEndingHour, int nEndingMinute, String appointmentDescription, int nIdForm) Creates a new calendar appointment resource DTO -
Method Summary
Modifier and TypeMethodDescriptionintbooleanGet the description of the appointmentintGet the duration of the appointment in minutesintGet the ending hour of the appointmentintGet the ending minute of the appointmentintGet the id of the associated appointmentintGet the id of the associated formulaireintGet the starting hour of the appointmentintGet the starting minute of the appointmentinthashCode()voidsetAppointmentDescription(String appointmentDescription) Set the description of the appointmentvoidsetEndingHour(int nEndingHour) Set the ending hour of the appointmentvoidsetEndingMinute(int nEndingMinute) Set the ending minute of the appointmentvoidsetIdApppointment(int nIdApppointment) Set the id of the associated appointmentvoidsetIdForm(int nIdForm) Set the id of the associated formvoidsetStartingHour(int nStartingHour) Set the starting hour of the appointmentvoidsetStartingMinute(int nStartingMinute) Get the starting minute of the appointment
-
Constructor Details
-
CalendarAppointmentResourceDTO
public CalendarAppointmentResourceDTO(int nIdApppointment, int nStartingHour, int nStartingMinute, int nEndingHour, int nEndingMinute, String appointmentDescription, int nIdForm) Creates a new calendar appointment resource DTO- Parameters:
nIdApppointment- The id of the appointmentnStartingHour- The starting hournStartingMinute- The starting minutenEndingHour- The ending hournEndingMinute- The ending minuteappointmentDescription- The description of the appointmentnIdForm- The id of the form
-
-
Method Details
-
getIdApppointment
public int getIdApppointment()Get the id of the associated appointment- Returns:
- The id of the associated appointment
-
setIdApppointment
public void setIdApppointment(int nIdApppointment) Set the id of the associated appointment- Parameters:
nIdApppointment- The id of the associated appointment
-
getStartingHour
public int getStartingHour()Get the starting hour of the appointment- Returns:
- The starting hour of the appointment
-
setStartingHour
public void setStartingHour(int nStartingHour) Set the starting hour of the appointment- Parameters:
nStartingHour- The starting hour of the appointment
-
getStartingMinute
public int getStartingMinute()Get the starting minute of the appointment- Returns:
- The starting minute of the appointment
-
setStartingMinute
public void setStartingMinute(int nStartingMinute) Get the starting minute of the appointment- Parameters:
nStartingMinute- The starting minute of the appointment
-
getEndingHour
public int getEndingHour()Get the ending hour of the appointment- Returns:
- The ending hour of the appointment
-
setEndingHour
public void setEndingHour(int nEndingHour) Set the ending hour of the appointment- Parameters:
nEndingHour- The ending hour of the appointment
-
getEndingMinute
public int getEndingMinute()Get the ending minute of the appointment- Returns:
- The ending minute of the appointment
-
setEndingMinute
public void setEndingMinute(int nEndingMinute) Set the ending minute of the appointment- Parameters:
nEndingMinute- The ending minute of the appointment
-
getDuration
public int getDuration()Get the duration of the appointment in minutes- Returns:
- The duration of the appointment in minutes
-
getAppointmentDescription
Get the description of the appointment- Returns:
- The description of the appointment
-
setAppointmentDescription
Set the description of the appointment- Parameters:
appointmentDescription- The description of the appointment
-
getIdForm
public int getIdForm()Get the id of the associated formulaire- Returns:
- The id of the associated formulaire
-
setIdForm
public void setIdForm(int nIdForm) Set the id of the associated form- Parameters:
nIdApppointment- The id of the associated form
-
compareTo
- Specified by:
compareToin interfaceComparable<CalendarAppointmentResourceDTO>
-
equals
-
hashCode
public int hashCode()
-