Examples of prepareList()


Examples of com.multysite.model.NewsModel.prepareList()

      if (cached) {
        if (result.size() >= 11) {
          NewsModel model = new NewsModel();
          model.setLimit(10);
          model.setPage(1);
          model.prepareList();
          if (model.getListResult().size() > 0) {
            result = model.getListResult();
          }
          cache.put(prefix, result);
        }
View Full Code Here

Examples of com.multysite.model.NewsModel.prepareList()

    }
    if (!cached) {
      NewsModel model = new NewsModel();
      model.setLimit(10);
      model.setPage(1);
      model.prepareList();
      if (model.getListResult().size() > 0) {
        result = model.getListResult();
        cache.put(prefix, result);
      } else {
        result = new ArrayList<News>();
View Full Code Here

Examples of com.multysite.model.NewsModel.prepareList()

      ApplicationConfig config = (ApplicationConfig) req
          .getAttribute("config");
      if (template != null && config != null) {
        NewsModel model = new NewsModel();
        model.setLimit(500);
        model.prepareList();       
        req.setAttribute("model", model);
        req.setAttribute("url", req.getRequestURL().toString());
        req.getRequestDispatcher("/site-map.jsp").forward(req, resp);
      } else {
        NamespaceManager.set(Setting.getGeneralNamespace());
View Full Code Here

Examples of com.multysite.model.NewsModel.prepareList()

          } catch (Exception e) {
            page = 1;
          }
          NewsModel model = new NewsModel();
          model.setPage(page);
          model.prepareList();
          CategoryModel cateModel = new CategoryModel();
          cateModel.prepareAll();
          TagModel tagModel = new TagModel();
          tagModel.prepareList();
View Full Code Here

Examples of com.multysite.model.NewsModel.prepareList()

          page = 1;
        }
        NewsModel model = new NewsModel();
        model.setPage(page);
        model.setLimit(10);
        model.prepareList();
        req.setAttribute("model", model);
        req.getRequestDispatcher("/admin/pages/news-list.jsp").forward(
            req, resp);
      } else {
        resp.getWriter().println("Invalid Url");
View Full Code Here

Examples of com.multysite.model.NewsModel.prepareList()

      ApplicationConfig config = (ApplicationConfig) req
          .getAttribute("config");
      if (template != null && config != null) {
        NewsModel model = new NewsModel();
        model.setLimit(500);
        model.prepareList();
        req.setAttribute("config", config);
        req.setAttribute("model", model);
        req.setAttribute("url", req.getRequestURL().toString());
        req.getRequestDispatcher("/rss.jsp").forward(req, resp);
      } else {
View Full Code Here

Examples of com.multysite.model.NewsModel.prepareList()

    int count = 0;
    NewsModel model = new NewsModel();
    model.setPage(1);
    while (true) {
      model.setLimit(20);
      model.prepareList();
      List<News> list = model.getListResult();
      for (News obj : list) {
        index(obj);
        count++;
      }
View Full Code Here

Examples of com.multysite.model.TagModel.prepareList()

          bind.put("js_for_layout", template.getJs());

          CategoryModel cateModel = new CategoryModel();
          cateModel.prepareAll();
          TagModel tagModel = new TagModel();
          tagModel.prepareList();

          bind.put("keyword", keyword);
          bind.put("recent_view", RecentViewHelper.getRecentView());
          bind.put("list_tag", tagModel.getListResult());
          bind.put("list_category", cateModel.getListResult());
View Full Code Here

Examples of com.multysite.model.TagModel.prepareList()

            bind.put("js_for_layout", template.getJs());

            CategoryModel cateModel = new CategoryModel();
            cateModel.prepareAll();
            TagModel tagModel = new TagModel();
            tagModel.prepareList();

            bind.put("current_tag", obj);
            bind.put("recent_view",
                RecentViewHelper.getRecentView());
            bind.put("list_tag", tagModel.getListResult());
View Full Code Here

Examples of com.multysite.model.TagModel.prepareList()

          model.setPage(page);
          model.prepareList();
          CategoryModel cateModel = new CategoryModel();
          cateModel.prepareAll();
          TagModel tagModel = new TagModel();
          tagModel.prepareList();

          CompiledScript compiledscript = CompileScriptEngine
              .getCompileScript(config.getApplicationId(),
                  "home", template.getHome());
          if (compiledscript != null) {
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.