Examples of CmsModel


Examples of com.jeecms.cms.entity.main.CmsModel

  @RequestMapping("/item/o_save_list.do")
  public String saveList(Integer modelId, Boolean isChannel, String[] fields,
      String[] labels, Integer[] dataTypes, Integer[] prioritys,
      Boolean[] singles, Boolean[] displays, HttpServletRequest request,
      ModelMap model) {
    CmsModel m = cmsModelMng.findById(modelId);
    List<CmsModelItem> itemList = getItems(m, isChannel, fields, labels,
        dataTypes, prioritys, singles, displays);
    manager.saveList(itemList);
    log.info("save CmsModelItem count={}", itemList.size());
    model.addAttribute("modelId", modelId);
View Full Code Here

Examples of com.jeecms.cms.entity.main.CmsModel

  private boolean vldExist(Integer id, WebErrors errors) {
    if (errors.ifNull(id, "id")) {
      return true;
    }
    CmsModel entity = manager.findById(id);
    if (errors.ifNotExist(entity, CmsModel.class, id)) {
      return true;
    }
    return false;
  }
View Full Code Here

Examples of com.jeecms.cms.entity.main.CmsModel

      parent = manager.findById(root);
      model.addAttribute("parent", parent);
      model.addAttribute("root", root);
    }
    // 模型
    CmsModel m = cmsModelMng.findById(modelId);
    // 栏目模板列表
    List<String> channelTplList = getTplChannel(site, m, null);
    // 内容模板列表
    List<String> contentTplList = getTplContent(site, m, null);
    // 模型项列表
View Full Code Here

Examples of com.jeecms.cms.entity.main.CmsModel

      tplContent = tplContent.substring(tplPathLength);
    }
    // 父栏目
    Channel parent = channel.getParent();
    // 模型
    CmsModel m = channel.getModel();
    // 栏目列表
    List<Channel> topList = manager.getTopList(site.getId(), false);
    List<Channel> channelList = Channel.getListForSelect(topList, null,
        channel, false);

    // 栏目模板列表
    List<String> channelTplList = getTplChannel(site, m, channel
        .getTplChannel());
    // 内容模板列表
    List<String> contentTplList = getTplContent(site, m, channel
        .getTplContent());
    List<CmsGroup> groupList = cmsGroupMng.getList();
    // 模型项列表
    List<CmsModelItem> itemList = cmsModelItemMng.getList(m.getId(), true,
        false);
    // 浏览会员组列表、浏览会员组IDS
    List<CmsGroup> viewGroups = groupList;
    Integer[] viewGroupIds = CmsGroup.fetchIds(channel.getViewGroups());
    // 投稿会员组列表
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.