Class CancelReturnPageController


@Controller @RequestMapping("/my-account/returns") public class CancelReturnPageController extends AbstractSearchPageController
Controller for cancel return page
  • Field Details

  • Constructor Details

    • CancelReturnPageController

      public CancelReturnPageController()
  • Method Details

    • showCancelReturnPage

      @RequestMapping(value="{returnCode:.*}/cancel", method={POST,GET}) public String showCancelReturnPage(@PathVariable("returnCode") String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      Displays the cancel return page
      Parameters:
      returnCode - the ReturnRequestModel.CODE
      model - the Model to which page attributes are added
      redirectModel - the RedirectAttributes
      Returns:
      View String
      Throws:
      CMSItemNotFoundException - if the CMS content is not found
    • submitCancelReturnPage

      @RequestMapping(value="/{returnCode:.*}/cancel/submit", method=POST) public String submitCancelReturnPage(@PathVariable("returnCode") String returnCode, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws CMSItemNotFoundException
      Submits the return cancellation request
      Parameters:
      returnCode - the ReturnRequestModel.CODE the Model to which page attributes are added
      redirectModel - the RedirectAttributes
      Returns:
      View String
      Throws:
      CMSItemNotFoundException - if the CMS content is not found
    • populateReturnEntry

      protected void populateReturnEntry(ReturnEntryData returnEntryData)
      Populates the given ReturnEntryData with its associated ProductData
      Parameters:
      returnEntryData - the ReturnEntryData which is to be populated
    • isUserValidForOrder

      protected boolean isUserValidForOrder(OrderData orderData)
      Validates if the current CustomerData matches the user in the OrderData and that it is part of the same BaseStoreModel
      Parameters:
      orderData - the OrderData
      Returns:
      true if the order is tied to the current customer and the current base store.
    • getOmsReturnFacade

      protected OmsReturnFacade getOmsReturnFacade()
    • getAccountBreadcrumbBuilder

      protected ResourceBreadcrumbBuilder getAccountBreadcrumbBuilder()
    • getProductConverter

      protected Converter<ProductModel,ProductData> getProductConverter()
    • getProductService

      protected ProductService getProductService()
    • getBaseStoreService

      protected BaseStoreService getBaseStoreService()