Package com.jeecms.cms.entity.assist

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


  @RequestMapping(value = "/adspace.jspx")
  public String adspace(Integer id, HttpServletRequest request,
      HttpServletResponse response, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    if (id != null) {
      CmsAdvertisingSpace adspace = cmsAdvertisingSpaceMng.findById(id);
      List<CmsAdvertising> adList = cmsAdvertisingMng.getList(id, true);
      model.addAttribute("adspace", adspace);
      model.addAttribute("adList", adList);
    }
    FrontUtils.frontData(request, model, site);
View Full Code Here


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

    return dao.getList(siteId);
  }

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

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

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

    }
    return find(f);
  }

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

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

  public CmsAdvertisingSpace deleteById(Integer id) {
    CmsAdvertisingSpace 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.CmsAdvertisingSpace

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.