Class RescheduleServiceOrderController

java.lang.Object
com.sap.hybris.sapserviceorderocc.controllers.RescheduleServiceOrderController

@Controller @RequestMapping("/{baseSiteId}") public class RescheduleServiceOrderController extends Object
  • Field Details

    • dataMapper

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

    • RescheduleServiceOrderController

      public RescheduleServiceOrderController()
  • Method Details

    • 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 String code, @RequestBody ServiceScheduleSlotWsDTO serviceScheduleSlot)
    • validateUserForOrder

      protected void validateUserForOrder(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(Object object, String objectName, org.springframework.validation.Validator validator)