Class TicketsController
- java.lang.Object
-
- de.hybris.platform.customerticketingocc.controllers.TicketBaseController
-
- de.hybris.platform.customerticketingocc.controllers.TicketsController
-
@RestController @RequestMapping("/{baseSiteId}") public class TicketsController extends TicketBaseController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.customerticketingocc.controllers.TicketBaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE, INVALID_REQUEST_BODY_ERROR_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description TicketsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketWsDTOcreateTicket(TicketStarterWsDTO ticketStarter, java.lang.String fields)voidcreateTicketEvent(java.lang.String ticketId, TicketEventWsDTO ticketEvent)TicketWsDTOgetTicket(java.lang.String ticketId, java.lang.String fields)TicketAssociatedObjectListWsDTOgetTicketAssociatedObjects()protected java.util.Optional<TicketData>getTicketById(java.lang.String ticketId)TicketCategoryListWsDTOgetTicketCategories()org.springframework.validation.ValidatorgetTicketEventValidator()TicketFacadegetTicketFacade()TicketListWsDTOgetTickets(int currentPage, int pageSize, java.lang.String sort, java.lang.String fields)org.springframework.validation.ValidatorgetTicketStarterValidator()voidsetTicketEventValidator(org.springframework.validation.Validator ticketEventValidator)voidsetTicketFacade(TicketFacade ticketFacade)voidsetTicketStarterValidator(org.springframework.validation.Validator ticketStarterValidator)-
Methods inherited from class de.hybris.platform.customerticketingocc.controllers.TicketBaseController
getDataMapper, handleErrorInternal, handleHttpMessageNotReadableException, logParam, logParam, logValue, sanitize, setDataMapper, validate
-
-
-
-
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)
-
getTicketFacade
public TicketFacade getTicketFacade()
-
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)
-
-