Class ReservationStatRestController
java.lang.Object
sk.iway.iwcm.system.datatable.DatatableRestControllerV2<ReservationStatDTO,Long>
sk.iway.iwcm.components.reservation.rest.ReservationStatRestController
@RestController
@RequestMapping("/admin/rest/reservation/reservation-stat")
@PreAuthorize("@WebjetSecurityService.hasPermission(\'cmp_reservation\')")
public class ReservationStatRestController
extends DatatableRestControllerV2<ReservationStatDTO,Long>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<ReservationStatDTO>
getAllItems
(org.springframework.data.domain.Pageable pageable) Ziska z databazy vsetky zaznamygetLineChartData
(String searchDate, String reservationType) getPieChartData
(String searchDate, String reservationType, String wantedValue) Methods inherited from class sk.iway.iwcm.system.datatable.DatatableRestControllerV2
action, add, addNotify, addNotify, addSpecSearch, addSpecSort, afterDelete, afterDuplicate, afterImportChunk, afterSave, beforeDelete, beforeDuplicate, beforeSave, checkAccessAllowed, checkItemPerms, copyEntityIntoOriginal, delete, deleteItem, edit, editItem, findByColumns, findItemBy, getAll, getAllItemsIncludeSpecSearch, getCleanKey, getCleanValue, getImportedColumns, getImportMode, getInvalidImportedRows, getLastImportedRow, getOne, getOneItem, getOptions, getParamsMap, getProp, getRepo, getRequest, getSearchConditions, getSearchProperties, getUpdateByColumn, getUser, handleEditor, hasNotify, initBinder, insertItem, isExporting, isForceReload, isImporting, isSkipWrongData, jpaToBoolean, preImportDataEdit, processAction, processFromEntity, processFromEntity, processFromEntity, processFromEntity, processToEntity, searchItem, setForceReload, setRequest, setValidator, throwConstraintViolation, throwError, throwError, throwError, throwError, throwError, throwError, validateEditor
-
Constructor Details
-
ReservationStatRestController
-
-
Method Details
-
getAllItems
public org.springframework.data.domain.Page<ReservationStatDTO> getAllItems(org.springframework.data.domain.Pageable pageable) Description copied from class:DatatableRestControllerV2
Ziska z databazy vsetky zaznamy- Overrides:
getAllItems
in classDatatableRestControllerV2<ReservationStatDTO,
Long> - Returns:
-
getPieChartData
@RequestMapping(value="/pie-chart-data", params={"search-date","reservation-type","wanted-value"}) public List<ReservationStatService.DoublePieChartData> getPieChartData(@RequestParam("search-date") String searchDate, @RequestParam("reservation-type") String reservationType, @RequestParam("wanted-value") String wantedValue) -
getLineChartData
-