Package com.jeecms.cms.entity.assist

Examples of com.jeecms.cms.entity.assist.CmsGuestbookCtg


  public String index(Integer ctgId, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    FrontUtils.frontData(request, model, site);
    FrontUtils.frontPageData(request, model);
    CmsGuestbookCtg ctg = null;
    if (ctgId != null) {
      ctg = cmsGuestbookCtgMng.findById(ctgId);
    }
    if (ctg == null) {
      // 留言板首页
View Full Code Here


  private boolean vldExist(Integer id, Integer siteId, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    CmsGuestbookCtg entity = manager.findById(id);
    if (errors.ifNotExist(entity, CmsGuestbookCtg.class, id)) {
      return true;
    }
    if (!entity.getSite().getId().equals(siteId)) {
      errors.notInSite(CmsGuestbookCtg.class, id);
      return true;
    }
    return false;
  }
View Full Code Here

    return dao.getList(siteId);
  }

  @Transactional(readOnly = true)
  public CmsGuestbookCtg findById(Integer id) {
    CmsGuestbookCtg entity = dao.findById(id);
    return entity;
  }
View Full Code Here

    bean = dao.updateByUpdater(updater);
    return bean;
  }

  public CmsGuestbookCtg deleteById(Integer id) {
    CmsGuestbookCtg bean = dao.deleteById(id);
    return bean;
  }
View Full Code Here

        + " where bean.site.id=? order by bean.priority asc";
    return find(hql, siteId);
  }

  public CmsGuestbookCtg findById(Integer id) {
    CmsGuestbookCtg entity = get(id);
    return entity;
  }
View Full Code Here

    getSession().save(bean);
    return bean;
  }

  public CmsGuestbookCtg deleteById(Integer id) {
    CmsGuestbookCtg entity = super.get(id);
    if (entity != null) {
      getSession().delete(entity);
    }
    return entity;
  }
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.assist.CmsGuestbookCtg

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.