Class SapOrderHistoryPageController

    • Field Detail

      • MC_TRANSACTION_CODE_PATH_VARIABLE_PATTERN

        protected static final java.lang.String MC_TRANSACTION_CODE_PATH_VARIABLE_PATTERN
        See Also:
        Constant Field Values
      • REDIRECT_MY_ACCOUNT

        protected static final java.lang.String REDIRECT_MY_ACCOUNT
        See Also:
        Constant Field Values
      • MC_TRANSACTIONS_HISTORY_CMS_PAGE

        protected static final java.lang.String MC_TRANSACTIONS_HISTORY_CMS_PAGE
        See Also:
        Constant Field Values
      • MC_WEB_TRANSACTION_DETAIL_CMS_PAGE

        protected static final java.lang.String MC_WEB_TRANSACTION_DETAIL_CMS_PAGE
        See Also:
        Constant Field Values
      • MC_POS_TRANSACTION_DETAIL_CMS_PAGE

        protected static final java.lang.String MC_POS_TRANSACTION_DETAIL_CMS_PAGE
        See Also:
        Constant Field Values
      • MC_SD_TRANSACTION_DETAIL_CMS_PAGE

        protected static final java.lang.String MC_SD_TRANSACTION_DETAIL_CMS_PAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SapOrderHistoryPageController

        public SapOrderHistoryPageController()
    • Method Detail

      • readMultiChannelPurchases

        @RequestMapping(value="/purchases",
                        method=GET)
        public java.lang.String readMultiChannelPurchases​(@RequestParam(value="page",defaultValue="0")
                                                          int page,
                                                          @RequestParam(value="show",defaultValue="Page")
                                                          AbstractSapOrderHistoryPageController.ShowMode showMode,
                                                          @RequestParam(value="sort",required=false)
                                                          java.lang.String sortCode,
                                                          org.springframework.ui.Model model)
                                                   throws CMSItemNotFoundException
        Parameters:
        page -
        showMode -
        sortCode -
        model -
        Returns:
        Multichannel order history view
        Throws:
        CMSItemNotFoundException
      • readWebOrder

        @RequestMapping(value="/weborder/{orderCode:.*}",
                        method=GET)
        public java.lang.String readWebOrder​(@PathVariable("orderCode")
                                             java.lang.String orderCode,
                                             org.springframework.ui.Model model)
                                      throws CMSItemNotFoundException
        Parameters:
        orderCode -
        model -
        Returns:
        Hybris order details view
        Throws:
        CMSItemNotFoundException
      • readInStorePurchase

        @RequestMapping(value="/instorepurchase/{orderCode:.*}",
                        method=GET)
        public java.lang.String readInStorePurchase​(@PathVariable("orderCode")
                                                    java.lang.String transactionCode,
                                                    @RequestParam(value="storeId",required=true)
                                                    java.lang.String storeId,
                                                    @RequestParam(value="businessDayDate",required=true)
                                                    java.lang.String businessDayDate,
                                                    @RequestParam(value="transactionIndex",required=true)
                                                    java.lang.Integer transactionIndex,
                                                    org.springframework.ui.Model model)
                                             throws CMSItemNotFoundException
        Parameters:
        transactionCode -
        storeId -
        transactionDate -
        transactionIndex -
        model -
        Returns:
        POS transaction details view
        Throws:
        CMSItemNotFoundException
      • readSalesDocument

        @RequestMapping(value="/salesdocument/{orderCode:.*}",
                        method=GET)
        public java.lang.String readSalesDocument​(@PathVariable("orderCode")
                                                  java.lang.String orderCode,
                                                  org.springframework.ui.Model model)
                                           throws CMSItemNotFoundException
        Parameters:
        orderCode -
        model -
        Returns:
        Sales document details view
        Throws:
        CMSItemNotFoundException
      • getBreadcrumbs

        protected java.util.List<Breadcrumb> getBreadcrumbs​(java.lang.String orderNumber)
        Parameters:
        orderNumber -
        Returns:
        Order history breadcrumbs
      • getOrderFacade

        protected OrderFacade getOrderFacade()
      • setOrderFacade

        public void setOrderFacade​(OrderFacade orderFacade)
      • setCarOrderFacade

        public void setCarOrderFacade​(CarOrderFacade carOrderFacade)
      • setAccountBreadcrumbBuilder

        public void setAccountBreadcrumbBuilder​(ResourceBreadcrumbBuilder accountBreadcrumbBuilder)