Class DriverDashboardController

java.lang.Object
org.tavall.couriers.web.view.controller.dsahboard.driver.DriverDashboardController

@Controller @PreAuthorize("hasAnyRole('DRIVER','SUPERUSER')") public class DriverDashboardController extends Object
  • Constructor Details

  • Method Details

    • dashboard

      @GetMapping("/dashboard/driver") public String dashboard(org.springframework.ui.Model model, org.springframework.security.core.Authentication authentication, @RequestParam(value="routeId",required=false) String routeId)
    • createLabelPage

      @GetMapping("/dashboard/driver/create-label") public String createLabelPage(org.springframework.ui.Model model, @RequestParam(value="created",required=false) String createdUuid)
    • createLabel

      @PostMapping("/internal/api/v1/driver/label/create") public String createLabel(ShippingLabelMetaDataEntity shipment, @RequestParam(value="deliverByDate",required=false) @DateTimeFormat(iso=DATE) LocalDate deliverByDate, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
    • scanPage

      @GetMapping("/dashboard/driver/scan") public String scanPage(org.springframework.ui.Model model)
    • statePage

      @GetMapping("/dashboard/driver/state") public String statePage(org.springframework.ui.Model model, @RequestParam(value="uuid",required=false) String uuid, @RequestParam(value="status",required=false) String status, @RequestParam(value="error",required=false) String error)
    • transitionPackage

      @PostMapping("/internal/api/v1/driver/package/transition") public String transitionPackage(@RequestParam("uuid") String uuid, @RequestParam("nextState") String nextState, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)