Package com.sivalabs.ssdemo.web.model

Examples of com.sivalabs.ssdemo.web.model.AjaxResponseBuilder


  @RequestMapping(value = "/checkUserNameExists", produces = "application/json")
  public AjaxResponse checkUserNameExists(@RequestParam("userName") String userName)
  {
    boolean exists = userService.checkUserNameExists(userName);
    if (exists) {
      return new AjaxResponseBuilder().notOk().error("UserName [" + userName + "] already exist").build();
    } else {
      return new AjaxResponseBuilder().ok().build();
    }
  }
View Full Code Here


  @RequestMapping(value = "/checkEmailExists", produces = "application/json")
  public AjaxResponse checkEmailExists(@RequestParam("email") String email)
  {
    boolean exists = userService.checkEmailExists(email);
    if (exists) {
      return new AjaxResponseBuilder().notOk().error("Email [" + email + "] already exist").build();
    } else {
      return new AjaxResponseBuilder().ok().build();
    }
  }
View Full Code Here

TOP

Related Classes of com.sivalabs.ssdemo.web.model.AjaxResponseBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.