Package de.xima.fc.servlet.parameter
Class AppointmentFreeSlotsServletParameter
- java.lang.Object
-
- de.xima.fc.servlet.parameter.AServletParameter
-
- de.xima.fc.servlet.parameter.AppointmentFreeSlotsServletParameter
-
- All Implemented Interfaces:
Serializable
public class AppointmentFreeSlotsServletParameter extends AServletParameter implements Serializable
Represents the parsed parameters of a request to theAppointmentFreeSlotsServlet.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDgetAppointmentTemplateUuid()MonthgetMonth()intgetYear()ZoneIdgetZoneId()booleanisIncludePastAppointments()static AppointmentFreeSlotsServletParameterparse(javax.servlet.http.HttpServletRequest request)Given an HTTP request of an appointment free slot servlet, parses and validates the parameters.IAppointmentFreeSlotQueryParamstoQueryParams(long clientId)Converts these servlet parameters to the appropriate parameters required by the free slot query API.StringtoString()-
Methods inherited from class de.xima.fc.servlet.parameter.AServletParameter
getBoolean, getBoolean, getInteger, getInteger, getLocalDateTime, getLocalDateTime, getLocale, getLong, getLong, getPathPart, getUuid, getUuid, getZoneId, toBoolean, toInteger, toLocalDateTime, toLocale, toLong, toUuid, toZoneId
-
-
-
-
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.
-
toString
public String toString()
- Overrides:
toStringin classAServletParameter
-
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.
-
-