Class ReservationStatService
java.lang.Object
sk.iway.iwcm.components.reservation.rest.ReservationStatService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptiongetLineChartData(String serachDate, String reservationTypeSting, ReservationRepository reservationRepository) Return line chart data for the given month and reservation type -> for reservation stat pagegetPieChartData(String serachDate, String reservationTypeSting, String wantedValue, ReservationRepository reservationRepository) Return pie chart data for the given month and reservation type -> for reservation stat pagestatic List<ReservationStatDTO>getTableData(String serachDate, String reservationTypeSting, ReservationRepository reservationRepository) Return table data for the given month and reservation type -> for reservation stat page
-
Method Details
-
getTableData
public static List<ReservationStatDTO> getTableData(String serachDate, String reservationTypeSting, ReservationRepository reservationRepository) Return table data for the given month and reservation type -> for reservation stat page- Parameters:
serachDate- - text in format yyyy-MMreservationTypeSting- - supported values -> typeDays, typeHoursreservationRepository-- Returns:
-
getPieChartData
public static List<ReservationStatService.DoublePieChartData> getPieChartData(String serachDate, String reservationTypeSting, String wantedValue, ReservationRepository reservationRepository) Return pie chart data for the given month and reservation type -> for reservation stat page- Parameters:
serachDate- - text in format yyyy-MMreservationTypeSting- - supported values -> typeDays, typeHourswantedValue- - supported values -> users (count reservations by user), objects (count reservations by reservation objects)reservationRepository-- Returns:
-
getLineChartData
public static Map<String,List<ReservationStatService.LineChartData>> getLineChartData(String serachDate, String reservationTypeSting, ReservationRepository reservationRepository) Return line chart data for the given month and reservation type -> for reservation stat page- Parameters:
serachDate- - text in format yyyy-MMreservationTypeSting- - supported values -> typeDays, typeHoursreservationRepository-- Returns:
-