Package com.jeecms.cms.entity.main

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


  public static final String PARAM_IDS = "ids";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    List<Content> list = getList(params, env);

    Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
        params);
    paramWrap.put(OUT_LIST, DEFAULT_WRAPPER.wrap(list));
View Full Code Here


  public static final String TPL_NAME = "tag_list";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    List<ContentTag> list = contentTagMng.getListForTag(FrontUtils
        .getCount(params));

    Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
        params);
View Full Code Here

  public static final String PARAM_SITE_ID = "siteId";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    int first = FrontUtils.getFirst(params);
    int max = FrontUtils.getCount(params);
    List<CmsGuestbook> list = cmsGuestbookMng.getList(getSiteId(params),
        getCtgId(params), getRecommend(params), getChecked(params),
        getDesc(params), true, first, max);
View Full Code Here

  private static final Logger log = LoggerFactory
      .getLogger(LuceneContentAct.class);

  @RequestMapping(value = "/lucene/v_index.do")
  public String index(HttpServletRequest request, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);

    List<Channel> topList = channelMng.getTopList(site.getId(), true);
    List<Channel> channelList = Channel.getListForSelect(topList, null,
        true);
    model.addAttribute("site", site);
    model.addAttribute("channelList", channelList);
    return "lucene/index";
View Full Code Here

  public static final String PARAM_RECOMMEND = "recommend";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    Pagination page = cmsTopicMng.getPageForTag(getChannelId(params),
        getRecommend(params), FrontUtils.getPageNo(env), FrontUtils
            .getCount(params));

    Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
View Full Code Here

  public static final String PARAM_RECOMMEND = "recommend";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    List<CmsTopic> list = cmsTopicMng.getListForTag(getChannelId(params),
        getRecommend(params), FrontUtils.getCount(params));

    Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
        params);
View Full Code Here

  public static final String TPL_NAME = "tag_page";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    Pagination page = contentTagMng.getPageForTag(
        FrontUtils.getPageNo(env), FrontUtils.getCount(params));

    Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
        params);
View Full Code Here

  public static final String TPL_NAME = "comment_page";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    Pagination page = cmsCommentMng.getPageForTag(null,
        getContentId(params), getGreaterThen(params),
        getChecked(params), getRecommend(params), getDesc(params),
        FrontUtils.getPageNo(env), FrontUtils.getCount(params));
View Full Code Here

  public static final String PARAM_SITE_ID = "siteId";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);

    List<CmsComment> list = cmsCommentMng.getListForTag(getSiteId(params),
        getContentId(params), getGreaterThen(params),
        getChecked(params), getRecommend(params), getDesc(params),
        FrontUtils.getCount(params));
View Full Code Here

  public static final String PARAM_CONTENT = "content";

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    String content = DirectiveUtils.getString(PARAM_CONTENT, params);
    if ("1".equals(content)) {
      String sysPage = DirectiveUtils.getString(PARAM_SYS_PAGE, params);
      String userPage = DirectiveUtils.getString(PARAM_USER_PAGE, params);
      if (!StringUtils.isBlank(sysPage)) {
        String tpl = TPL_STYLE_PAGE_CONTENT + sysPage + TPL_SUFFIX;
        env.include(tpl, UTF8, true);
      } else if (!StringUtils.isBlank(userPage)) {
        String tpl = getTplPath(site.getSolutionPath(),
            TPLDIR_STYLE_PAGE, userPage);
        env.include(tpl, UTF8, true);
      } else {
        // 没有包含分页
      }
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.main.CmsSite

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.