Class AssistedServiceComponentController


  • @Controller
    @RequestMapping("/assisted-service")
    public class AssistedServiceComponentController
    extends AbstractController
    • Constructor Detail

      • AssistedServiceComponentController

        public AssistedServiceComponentController()
    • Method Detail

      • quitAssistedServiceMode

        @RequestMapping(value="/quit",
                        method=POST)
        @ResponseStatus(OK)
        public void quitAssistedServiceMode()
      • loginAssistedServiceAgent

        @RequestMapping(value="/login",
                        method=POST)
        public java.lang.String loginAssistedServiceAgent​(org.springframework.ui.Model model,
                                                          javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response,
                                                          @RequestParam("username")
                                                          java.lang.String username,
                                                          @RequestParam("password")
                                                          java.lang.String password)
      • logoutAssistedServiceAgent

        @RequestMapping(value="/logoutasm",
                        method=POST)
        public java.lang.String logoutAssistedServiceAgent​(org.springframework.ui.Model model,
                                                           javax.servlet.http.HttpServletRequest request)
      • emulateCustomer

        @RequestMapping(value="/personify-customer",
                        method=POST)
        public java.lang.String emulateCustomer​(org.springframework.ui.Model model,
                                                @RequestParam("customerId")
                                                java.lang.String customerId,
                                                @RequestParam("customerName")
                                                java.lang.String customerName,
                                                @RequestParam("cartId")
                                                java.lang.String cartId)
      • emulateCustomerByLink

        @RequestMapping(value="/emulate",
                        method=GET)
        public java.lang.String emulateCustomerByLink​(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttrs,
                                                      @RequestParam(value="customerId",required=false)
                                                      java.lang.String customerId,
                                                      @RequestParam(value="cartId",required=false)
                                                      java.lang.String cartId,
                                                      @RequestParam(value="orderId",required=false)
                                                      java.lang.String orderId,
                                                      @RequestParam(value="fwd",required=false)
                                                      java.lang.String fwd,
                                                      @RequestParam(value="enable360View",required=false)
                                                      boolean enable360View)
      • createCustomer

        @RequestMapping(value="/create-account",
                        method=POST)
        public java.lang.String createCustomer​(org.springframework.ui.Model model,
                                               @RequestParam("customerId")
                                               java.lang.String customerId,
                                               @RequestParam("customerName")
                                               java.lang.String customerName)
      • endEmulateCustomer

        @RequestMapping(value="/personify-stop",
                        method=POST)
        public java.lang.String endEmulateCustomer​(org.springframework.ui.Model model)
      • resetSession

        @RequestMapping(value="/resetSession",
                        method=POST)
        @ResponseStatus(OK)
        public void resetSession()
      • autocomplete

        @RequestMapping(value="/autocomplete",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public java.util.List<AutoSuggestionCustomerData> autocomplete​(@RequestParam("customerId")
                                                                       java.lang.String customerId)
      • bindCart

        @RequestMapping(value="/bind-cart",
                        method=POST)
        public java.lang.String bindCart​(@RequestParam(value="customerId",required=false)
                                         java.lang.String customerId,
                                         @RequestParam(value="cartId",required=false)
                                         java.lang.String cartId,
                                         org.springframework.ui.Model model)
      • addToCartEventHandler

        @RequestMapping(value="/add-to-cart",
                        method=POST)
        public java.lang.String addToCartEventHandler​(org.springframework.ui.Model model)
      • refresh

        @RequestMapping(value="/refresh",
                        method=POST)
        public java.lang.String refresh​(org.springframework.ui.Model model)
      • setSessionTimeout

        protected void setSessionTimeout()
      • refreshSpringSecurityToken

        protected void refreshSpringSecurityToken()
        This method should be called after any facade method where user substitution may occur
      • isASAgent

        protected boolean isASAgent​(UserModel currentUser)
      • encodeValue

        protected java.lang.String encodeValue​(java.lang.String inputValue)