Class RescheduleServiceOrderController
java.lang.Object
com.sap.hybris.sapserviceorderocc.controllers.RescheduleServiceOrderController
@Controller
@RequestMapping("/{baseSiteId}")
public class RescheduleServiceOrderController
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected de.hybris.platform.webservicescommons.mapping.DataMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrescheduleServiceOrder(String code, ServiceScheduleSlotWsDTO serviceScheduleSlot) protected voidprotected voidvalidateUserForOrder(String code) Validates if the current user has access to the order
-
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
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
-