Class AppointmentFreeSlotsServletParameter

    • Method Detail

      • getAppointmentTemplateUuid

        public UUID getAppointmentTemplateUuid()
        Returns:
        The UUID of the appointment template for which to find free slots.
      • getMonth

        public Month getMonth()
        Returns:
        The month for which to find free slots.
      • getYear

        public int getYear()
        Returns:
        The year for which to find free slots.
      • isIncludePastAppointments

        public boolean isIncludePastAppointments()
        Returns:
        Whether appointments that lie in the past (relative to the server time) are included.
      • getZoneId

        public ZoneId getZoneId()
        Returns:
        The zone ID for the returned free slots. May be null for the default time zone.
      • toQueryParams

        public IAppointmentFreeSlotQueryParams toQueryParams​(long clientId)
        Converts these servlet parameters to the appropriate parameters required by the free slot query API.
        Parameters:
        clientId - ID of the current client.
        Returns:
        The parameters that can be passed to the free slot query executor or API method.
      • parse

        public static AppointmentFreeSlotsServletParameter parse​(javax.servlet.http.HttpServletRequest request)
                                                          throws IOException
        Given an HTTP request of an appointment free slot servlet, parses and validates the parameters.
        Parameters:
        request - The HTTP request to the appointment free slot servlet.
        Returns:
        The parsed servlet parameters.
        Throws:
        IOException - When the request data could not be read.
        IllegalArgumentException - When the parameters are invalid.