Class MobileNumberController


  • @Controller
    @RequestMapping("/{baseSiteId}/users/{userId}/mobilenumber")
    public class MobileNumberController
    extends java.lang.Object
    Web Services Controller to expose the functionality of binding or unbinding customer mobile number.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      UserWsDTO bindMobileNumber​(java.lang.String mobileNumber, java.lang.String verificationCode, java.lang.String fields, javax.servlet.http.HttpServletRequest request)  
      protected DataMapper getDataMapper()  
      void sendVerificationCode​(java.lang.String mobileNumber, javax.servlet.http.HttpServletRequest request)  
      void unbindMobileNumber​(java.lang.String verificationCode, javax.servlet.http.HttpServletRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MobileNumberController

        public MobileNumberController()
    • Method Detail

      • sendVerificationCode

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(value="/verificationcode",
                        method=POST)
        @ResponseStatus(OK)
        public void sendVerificationCode​(@RequestParam
                                         java.lang.String mobileNumber,
                                         javax.servlet.http.HttpServletRequest request)
      • bindMobileNumber

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(method=POST)
        @ResponseStatus(CREATED)
        @ResponseBody
        public UserWsDTO bindMobileNumber​(@RequestParam
                                          java.lang.String mobileNumber,
                                          @RequestParam
                                          java.lang.String verificationCode,
                                          @RequestParam(defaultValue="DEFAULT")
                                          java.lang.String fields,
                                          javax.servlet.http.HttpServletRequest request)
      • unbindMobileNumber

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(method=DELETE)
        @ResponseStatus(OK)
        public void unbindMobileNumber​(@RequestParam
                                       java.lang.String verificationCode,
                                       javax.servlet.http.HttpServletRequest request)
      • getDataMapper

        protected DataMapper getDataMapper()