Class RescheduleServiceOrderController
- java.lang.Object
-
- com.sap.hybris.sapserviceorderocc.controllers.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.DataMapperdataMapper
-
Constructor Summary
Constructors Constructor Description RescheduleServiceOrderController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrescheduleServiceOrder(java.lang.String code, ServiceScheduleSlotWsDTO serviceScheduleSlot)protected voidvalidate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)protected voidvalidateUserForOrder(java.lang.String code)Validates if the current user has access to the order
-
-
-
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)
-
-