Class RescheduleServiceOrderController


  • @Controller
    @RequestMapping("/{baseSiteId}")
    public class RescheduleServiceOrderController
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected de.hybris.platform.webservicescommons.mapping.DataMapper dataMapper  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void rescheduleServiceOrder​(java.lang.String code, ServiceScheduleSlotWsDTO serviceScheduleSlot)  
      protected void validate​(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)  
      protected void validateUserForOrder​(java.lang.String code)
      Validates if the current user has access to the order
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dataMapper

        protected de.hybris.platform.webservicescommons.mapping.DataMapper dataMapper
    • Constructor Detail

      • RescheduleServiceOrderController

        public RescheduleServiceOrderController()
    • Method Detail

      • rescheduleServiceOrder

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(value="/users/{userId}/orders/{code}/serviceOrder/serviceScheduleSlot",
                        method=PATCH,
                        consumes="application/json")
        @ResponseStatus(OK)
        public void rescheduleServiceOrder​(@PathVariable
                                           java.lang.String code,
                                           @RequestBody
                                           ServiceScheduleSlotWsDTO serviceScheduleSlot)
      • validateUserForOrder

        protected void validateUserForOrder​(java.lang.String code)
        Validates if the current user has access to the order
        Parameters:
        code - the order code
        Throws:
        de.hybris.platform.webservicescommons.errors.exceptions.NotFoundException - if current user has no access to the order
      • validate

        protected void validate​(java.lang.Object object,
                                java.lang.String objectName,
                                org.springframework.validation.Validator validator)