Class CancelServiceOrderController


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

      • dataMapper

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

      • CancelServiceOrderController

        public CancelServiceOrderController()
    • Method Detail

      • cancelServiceOrder

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(value="/users/{userId}/orders/{code}/serviceOrder/cancellation",
                        method=POST)
        @ResponseStatus(OK)
        public void cancelServiceOrder​(@PathVariable
                                       java.lang.String code,
                                       @RequestBody
                                       CancellationRequestEntryInputListWsDTO cancellationRequestEntryInputList)
      • 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)