Examples of ifBlank()


Examples of com.jeecms.cms.web.WebErrors.ifBlank()

    } catch (CaptchaServiceException e) {
      errors.addErrorCode("error.exceptionCaptcha");
      log.warn("", e);
      return errors;
    }
    if (errors.ifBlank(title, "title", 150)) {
      return errors;
    }
    if (errors.ifMaxLength(author, "author", 100)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

    }
    if (errors.ifMaxLength(description, "description", 255)) {
      return errors;
    }
    // 内容不能大于1M
    if (errors.ifBlank(txt, "txt", 1048575)) {
      return errors;
    }
    if (errors.ifMaxLength(tagStr, "tagStr", 255)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

  private WebErrors validateForgotPasswordSubmit(String username,
      String email, String captcha, HttpServletRequest request,
      HttpServletResponse response) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(username, "username", 100)) {
      return errors;
    }
    if (errors.ifBlank(email, "email", 100)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

      HttpServletResponse response) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(username, "username", 100)) {
      return errors;
    }
    if (errors.ifBlank(email, "email", 100)) {
      return errors;
    }
    if (errors.ifBlank(captcha, "captcha", 20)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

      return errors;
    }
    if (errors.ifBlank(email, "email", 100)) {
      return errors;
    }
    if (errors.ifBlank(captcha, "captcha", 20)) {
      return errors;
    }
    try {
      if (!imageCaptchaService.validateResponseForID(session
          .getSessionId(request, response), captcha)) {
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(uid, "uid")) {
      return errors;
    }
    if (errors.ifBlank(key, "key", 50)) {
      return errors;
    }
    return errors;
  }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

  }

  private WebErrors validatePasswordSubmit(Integer id, String origPwd,
      String newPwd, String email, HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(origPwd, "origPwd", 100)) {
      return errors;
    }
    if (errors.ifMaxLength(newPwd, "newPwd", 100)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.cms.web.WebErrors.ifBlank()

  private WebErrors validatePasswordSubmit(Integer id, String origPwd,
      String newPwd, String email, String realname,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifBlank(origPwd, "origPwd", 32)) {
      return errors;
    }
    if (errors.ifMaxLength(newPwd, "newPwd", 32)) {
      return errors;
    }
View Full Code Here

Examples of com.jeecms.core.web.WebErrors.ifBlank()

      return errors;
    }
    // 如果输入了验证码,那么必须验证;如果没有输入验证码,则根据当前用户判断是否需要验证码。
    if (!StringUtils.isBlank(captcha)
        || (errorRemaining != null && errorRemaining < 0)) {
      if (errors.ifBlank(captcha, "captcha", 100)) {
        return errors;
      }
      try {
        if (!imageCaptchaService.validateResponseForID(session
            .getSessionId(request, response), captcha)) {
View Full Code Here

Examples of com.jeecms.core.web.WebErrors.ifBlank()

      return errors;
    }
    // 如果输入了验证码,那么必须验证;如果没有输入验证码,则根据当前用户判断是否需要验证码。
    if (!StringUtils.isBlank(captcha)
        || (errorRemaining != null && errorRemaining < 0)) {
      if (errors.ifBlank(captcha, "captcha", 100)) {
        return errors;
      }
      try {
        if (!imageCaptchaService.validateResponseForID(session
            .getSessionId(request, response), captcha)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.