Package com.jeecms.cms.web

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


      return errors;
    }
    if (errors.ifMaxLength(tagStr, "tagStr", 255)) {
      return errors;
    }
    if (errors.ifNull(channelId, "channelId")) {
      return errors;
    }
    if (vldChannel(errors, site, user, channelId)) {
      return errors;
    }
View Full Code Here


  }

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

  }

  private WebErrors validateUpload(MultipartFile file,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(file, "file")) {
      return errors;
    }
    return errors;
  }
View Full Code Here

  private WebErrors validateSave(Content bean, Integer channelId,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    CmsSite site = CmsUtils.getSite(request);
    bean.setSite(site);
    if (errors.ifNull(channelId, "channelId")) {
      return errors;
    }
    Channel channel = channelMng.findById(channelId);
    if (errors.ifNotExist(channel, Channel.class, channelId)) {
      return errors;
View Full Code Here

  }

  private WebErrors validateUpload(MultipartFile file,
      HttpServletRequest request) {
    WebErrors errors = WebErrors.create(request);
    if (errors.ifNull(file, "file")) {
      return errors;
    }
    return errors;
  }
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.