Package com.sivalabs.web.model

Examples of com.sivalabs.web.model.AjaxResponseBuilder


  @RequestMapping(value = "/checkUserNameExists", produces = "application/json")
  public AjaxResponse checkUserNameExists(@RequestParam("userName") String userName)
  {
    boolean exists = userBO.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 = userBO.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.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.