⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumserviceimp.java

📁 java论坛
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
   */
  public PageList findForumsAuditing(long bid, Pages pages) {
    return this.findForums(bid, -1, 0, 1, "postTime", Constant.ORDER_DESC, pages);
  }

  /**
   * 取得同一主题帖子列表
   *
   * @param bid long
   * @param mainID String
   * @param delSign int
   * @param auditing int
   * @param orderby String
   * @param ascOrDesc int
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsTopic(long bid, String mainID, int delSign, int auditing, String orderby,
                              int ascOrDesc) {
    return this.getForumDAO().findForumsTopic(bid, mainID, delSign, auditing, orderby, ascOrDesc);
  }

  /**
   * 取得同一主题帖子列表
   *
   * @param bid long
   * @param mainID String
   * @param delSign int
   * @param auditing int
   * @param oo OrderObj[]
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsTopic(long bid, String mainID, int delSign, int auditing, OrderObj[] oo) {
    return this.getForumDAO().findForumsTopic(bid, mainID, delSign, auditing, oo);
  }

  /**
   * 取得同一主题帖子分页列表
   *
   * @param bid long
   * @param mainID String
   * @param delSign int
   * @param auditing int
   * @param orderby String
   * @param ascOrDesc int
   * @param pages int
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsTopic(long bid, String mainID, int delSign, int auditing,
                                  String orderby, int ascOrDesc, Pages pages) {
    PageList pl = new PageList();
    if (pages.getTotalNum() == -1) {
      pages.setTotalNum(this.getForumDAO().getForumTopicNum(bid, mainID, delSign, auditing));
    }
    pages.executeCount();

    List l = this.getForumDAO().findForumsTopic(bid, mainID, delSign, auditing, orderby, ascOrDesc,
                                                pages.getSpage(), pages.getPerPageNum());
    pl.setObjectList(l);
    pl.setPages(pages);
    return pl;
  }

  /**
   * 取得同一主题帖子分页列表
   *
   * @param bid long
   * @param mainID String
   * @param delSign int
   * @param auditing int
   * @param oo OrderObj[]
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsTopic(long bid, String mainID, int delSign, int auditing, OrderObj[] oo,
                                  Pages pages) {
    PageList pl = new PageList();
    if (pages.getTotalNum() == -1) {
      pages.setTotalNum(this.getForumDAO().getForumTopicNum(bid, mainID, delSign, auditing));
    }
    pages.executeCount();

    List l = this.getForumDAO().findForumsTopic(bid, mainID, delSign, auditing, oo, pages.getSpage(),
                                                pages.getPerPageNum());
    pl.setObjectList(l);
    pl.setPages(pages);
    return pl;

  }

  /**
   * 取得同一主题帖子分页列表
   *
   * @param bid long
   * @param mainID String
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsTopic(long bid, String mainID, Pages pages) {
    return this.findForumsTopic(bid, mainID, 0, 0, "postTime", Constant.ORDER_ASC, pages);
  }

  /**
   * 取得已删除同一主题帖子列表
   *
   * @param bid long
   * @param mainID String
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsTopicDel(long bid, String mainID) {
    return this.getForumDAO().findForumsTopic(bid, mainID, 1, -1, "postTime", Constant.ORDER_ASC);
  }

  /**
   * 取得未审核同一主题帖子列表
   *
   * @param bid long
   * @param mainID String
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsTopicAuditing(long bid, String mainID) {
    return this.getForumDAO().findForumsTopic(bid, mainID, 0, 1, "postTime", Constant.ORDER_ASC);
  }

  /**
   * 取得指定版区下的帖子数量
   *
   * @param bids List
   * @param isNew int
   * @param delSign int
   * @param auditing int
   * @return int
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public int getForumNumInBids(List bids, int isNew, int delSign, int auditing) {
    return this.getForumDAO().getForumNumInBids(bids, isNew, delSign, auditing);
  }

  /**
   * 取得指定版区下的帖子数量
   *
   * @param bids List
   * @return int
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public int getForumNumInBids(List bids) {
    return this.getForumDAO().getForumNumInBids(bids, 1, 0, 0);
  }

  /**
   * 取得指定版区下的帖子列表
   *
   * @param bids List
   * @param isNew int
   * @param delSign int
   * @param auditing int
   * @param orderby String
   * @param ascOrDesc int
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsInBids(List bids, int isNew, int delSign, int auditing, String orderby,
                               int ascOrDesc) {
    return this.getForumDAO().findForumsInBids(bids, isNew, delSign, auditing, orderby, ascOrDesc);
  }

  /**
   * 取得指定版区下的帖子列表
   *
   * @param bids List
   * @param isNew int
   * @param delSign int
   * @param auditing int
   * @param oo OrderObj[]
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsInBids(List bids, int isNew, int delSign, int auditing, OrderObj[] oo) {
    return this.getForumDAO().findForumsInBids(bids, isNew, delSign, auditing, oo);
  }

  /**
   * 取得指定版区下的帖子分页列表
   *
   * @param bids List
   * @param isNew int
   * @param delSign int
   * @param auditing int
   * @param orderby String
   * @param ascOrDesc int
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsInBids(List bids, int isNew, int delSign, int auditing, String orderby,
                                   int ascOrDesc, Pages pages) {
    PageList pl = new PageList();
    if (pages.getTotalNum() == -1) {
      pages.setTotalNum(this.getForumDAO().getForumNumInBids(bids, isNew, delSign, auditing));
    }
    pages.executeCount();

    List l = this.getForumDAO().findForumsInBids(bids, isNew, delSign, auditing, orderby, ascOrDesc,
                                                 pages.getSpage(), pages.getPerPageNum());
    pl.setObjectList(l);
    pl.setPages(pages);
    return pl;

  }

  /**
   * 取得指定版区下的帖子分页列表
   *
   * @param bids List
   * @param isNew int
   * @param delSign int
   * @param auditing int
   * @param oo OrderObj[]
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsInBids(List bids, int isNew, int delSign, int auditing, OrderObj[] oo,
                                   Pages pages) {
    PageList pl = new PageList();
    if (pages.getTotalNum() == -1) {
      pages.setTotalNum(this.getForumDAO().getForumNumInBids(bids, isNew, delSign, auditing));
    }
    pages.executeCount();

    List l = this.getForumDAO().findForumsInBids(bids, isNew, delSign, auditing, oo, pages.getSpage(),
                                                 pages.getPerPageNum());
    pl.setObjectList(l);
    pl.setPages(pages);
    return pl;

  }

  /**
   * 取得指定版区下的帖子分页列表,WWW方式
   *
   * @param bids List
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsInBidsWWW(List bids, Pages pages) {
    return this.findForumsInBids(bids, 1, 0, 0, "postTime", Constant.ORDER_DESC, pages);
  }

  /**
   * 取得指定版区下的帖子分页列表,顶帖方式
   * @param bids List
   * @param pages Pages
   * @return PageList
   */
  public PageList findForumsInBidsLastRe(List bids, Pages pages) {
    return this.findForumsInBids(bids, 1, 0, 0, "lastTime", Constant.ORDER_DESC, pages);
  }

  /**
   * 取得指定版区下的帖子分页列表,不分主次
   * @param bids List
   * @param pages Pages
   * @return PageList
   */
  public PageList findForumsInBidsAll(List bids, Pages pages) {
    return this.findForumsInBids(bids, -1, 0, 0, "postTime", Constant.ORDER_DESC, pages);
  }

  /**
   * 取得精华帖列表
   *
   * @param bid long
   * @param elite long
   * @param eliteId long
   * @return List
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public List findForumsElite(long bid, long elite, long eliteId) {
    return this.getForumDAO().findForumsElite(bid, elite, eliteId);
  }

  /**
   * 取得搜索帖子数量
   *
   * @param bid long
   * @param con String
   * @param text String
   * @param delSign int
   * @param auditing int
   * @return int
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public int getSearchNum(long bid, String con, String text, int delSign, int auditing) {
    return this.getForumDAO().getSearchNum(bid, con, text, delSign, auditing);
  }

  /**
   * 取得搜索结果分页列表
   *
   * @param bid long
   * @param con String
   * @param text String
   * @param delSign int
   * @param auditing int
   * @param orderby String
   * @param ascOrDesc int
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList getSearchList(long bid, String con, String text, int delSign, int auditing,
                                String orderby, int ascOrDesc, Pages pages) {
    PageList pl = new PageList();
    if (pages.getTotalNum() == -1) {
      pages.setTotalNum(this.getForumDAO().getSearchNum(bid, con, text, delSign, auditing));
    }
    pages.executeCount();

    List l = this.getForumDAO().getSearchList(bid, con, text, delSign, auditing, orderby, ascOrDesc,
                                              pages.getSpage(), pages.getPerPageNum());
    pl.setObjectList(l);
    pl.setPages(pages);
    return pl;

  }

  /**
   * 取得搜索帖子数量
   *
   * @param bid long
   * @param con String
   * @param text String
   * @return int
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public int getSearchNum(long bid, String con, String text) {
    return this.getForumDAO().getSearchNum(bid, con, text, 0, 0);
  }

  /**
   * 取得搜索结果分页列表
   *
   * @param bid long
   * @param con String
   * @param text String
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList getSearchList(long bid, String con, String text, Pages pages) {
    return this.getSearchList(bid, con, text, 0, 0, "postTime", Constant.ORDER_DESC, pages);
  }

  /**
   * 取得自己的帖子数量
   *
   * @param userID String
   * @return int
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public int getForumOwnerNum(String userID) {
    return this.getForumDAO().getForumOwnerNum(userID, -1, 0, 0);
  }

  /**
   * 取得自己的帖子分页列表
   *
   * @param userID String
   * @param isNew int
   * @param pages Pages
   * @return PageList
   * @todo Implement this com.laoer.bbscs.service.ForumService method
   */
  public PageList findForumsOwner(String userID, int isNew, Pages pages) {
    PageList pl = new PageList();
    if (pages.getTotalNum() == -1) {
      pages.setTotalNum(this.getForumOwnerNum(userID));
    }
    pages.executeCount();

    List l = this.getForumDAO().findForumsOwner(userID, isNew, 0, 0, "postTime", Constant.ORDER_DESC,
                                                pages.getSpage(), pages.getPerPageNum());
    pl.setObjectList(l);
    pl.setPages(pages);
    return pl;
  }

  /**

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -