Class TicketsController


  • @RestController
    @RequestMapping("/{baseSiteId}")
    public class TicketsController
    extends TicketBaseController
    • Constructor Detail

      • TicketsController

        public TicketsController()
    • Method Detail

      • getTickets

        @GetMapping(value="/users/{userId}/tickets",
                    produces="application/json")
        @ResponseStatus(OK)
        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP"})
        public TicketListWsDTO getTickets​(@RequestParam(value="currentPage",defaultValue="0")
                                          int currentPage,
                                          @RequestParam(value="pageSize",defaultValue="20")
                                          int pageSize,
                                          @RequestParam(value="sort",defaultValue="byDate")
                                          java.lang.String sort,
                                          @RequestParam(required=false,defaultValue="BASIC")
                                          java.lang.String fields)
      • createTicket

        @PostMapping(value="/users/{userId}/tickets",
                     consumes="application/json",
                     produces="application/json")
        @ResponseStatus(CREATED)
        @Secured("ROLE_CUSTOMERGROUP")
        public TicketWsDTO createTicket​(@RequestBody
                                        TicketStarterWsDTO ticketStarter,
                                        @RequestParam(required=false,defaultValue="DEFAULT")
                                        java.lang.String fields)
      • getTicket

        @GetMapping(value="/users/{userId}/tickets/{ticketId}",
                    produces="application/json")
        @ResponseStatus(OK)
        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP"})
        public TicketWsDTO getTicket​(@PathVariable
                                     java.lang.String ticketId,
                                     @RequestParam(required=false,defaultValue="DEFAULT")
                                     java.lang.String fields)
      • createTicketEvent

        @PostMapping(value="/users/{userId}/tickets/{ticketId}/events",
                     consumes="application/json",
                     produces="application/json")
        @ResponseStatus(CREATED)
        @Secured("ROLE_CUSTOMERGROUP")
        public void createTicketEvent​(@PathVariable
                                      java.lang.String ticketId,
                                      @RequestBody
                                      TicketEventWsDTO ticketEvent)
      • getTicketCategories

        @GetMapping(value="/ticketCategories",
                    produces="application/json")
        @ResponseStatus(OK)
        public TicketCategoryListWsDTO getTicketCategories()
      • getTicketAssociatedObjects

        @GetMapping(value="/users/{userId}/ticketAssociatedObjects",
                    produces="application/json")
        @ResponseStatus(OK)
        @Secured("ROLE_CUSTOMERGROUP")
        public TicketAssociatedObjectListWsDTO getTicketAssociatedObjects()
      • getTicketById

        protected java.util.Optional<TicketData> getTicketById​(java.lang.String ticketId)
      • setTicketFacade

        public void setTicketFacade​(TicketFacade ticketFacade)
      • getTicketStarterValidator

        public org.springframework.validation.Validator getTicketStarterValidator()
      • setTicketStarterValidator

        public void setTicketStarterValidator​(org.springframework.validation.Validator ticketStarterValidator)
      • getTicketEventValidator

        public org.springframework.validation.Validator getTicketEventValidator()
      • setTicketEventValidator

        public void setTicketEventValidator​(org.springframework.validation.Validator ticketEventValidator)