Example #1
0
  @RequestMapping("/fws/v_list.do")
  public String list(
      Long siteId,
      String organizationName,
      String username,
      String companyName,
      Integer pageNo,
      HttpServletRequest request,
      ModelMap model) {

    Website website = SiteUtils.getWeb(request);

    //			 = manager.getPageByIsDisabledAndWebsiteId(website.getId(), false, cpn(pageNo),
    // CookieUtils.getPageSize(request));
    Pagination pagination =
        fwsMng.getPageByIsDisabled(
            organizationName,
            siteId,
            username,
            companyName,
            false,
            cpn(pageNo),
            CookieUtils.getPageSize(request));
    model.addAttribute("pagination", pagination);
    List siteList = websiteMng.getAllList();
    model.addAttribute("siteId", siteId);
    model.addAttribute("organizationName", organizationName);
    model.addAttribute("siteList", siteList);
    model.addAttribute("companyName", companyName);
    return "fws/list";
  }
Example #2
0
 @RequestMapping("/fws/v_fwlist.do")
 public String fwlist(
     Long ketaUserId, Integer pageNo, HttpServletRequest request, ModelMap model) {
   Website website = SiteUtils.getWeb(request);
   List list = new ArrayList();
   if (ketaUserId != null) {
     list =
         sqServiceMng.getList(
             ketaUserId, null, null, null, null, null, null, null, null, null, null);
   }
   model.put("list", list);
   return "fws/fwlist";
 }