Examples of ifNotExist()


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

    WebErrors errors = WebErrors.create(request);
    if (cid == null) {
      return errors;
    }
    Channel c = channelMng.findById(cid);
    if (errors.ifNotExist(c, Channel.class, cid)) {
      return errors;
    }
    Integer siteId = CmsUtils.getSiteId(request);
    if (!c.getSite().getId().equals(siteId)) {
      errors.notInSite(Channel.class, cid);
View Full Code Here

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

    bean.setSite(site);
    if (errors.ifNull(channelId, "channelId")) {
      return errors;
    }
    Channel channel = channelMng.findById(channelId);
    if (errors.ifNotExist(channel, Channel.class, channelId)) {
      return errors;
    }
    if (channel.getChild().size() > 0) {
      errors.addErrorCode("content.error.notLeafChannel");
    }
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.