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

📄 forumservice.java

📁 天乙虚拟社区8.05版本。只支持Mysql
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
	/**
	 * 回帖
	 *
	 * @param forum
	 *            Forum
	 * @param mainForum
	 *            Forum
	 * @param board
	 *            Board
	 * @param ui
	 *            UserInfo
	 * @param uploadFile
	 *            UploadFile
	 * @param isQuote
	 *            boolean
	 * @return Forum
	 * @throws BbscsException
	 */
	public Forum createReForum(Forum forum, Forum mainForum, Board board, UserInfo ui, UploadFile uploadFile,
			boolean isQuote) throws BbscsException;

	/**
	 *
	 * @param forum
	 *            Forum
	 * @param uploadFile
	 *            UploadFile
	 * @return Forum
	 * @throws BbscsException
	 */
	public Forum createForumUpFile(Forum forum, UploadFile uploadFile) throws BbscsException;

	/**
	 * 帖子修改
	 *
	 * @param forum
	 *            Forum
	 * @return Forum
	 * @throws BbscsException
	 */
	public Forum editForum(Forum forum) throws BbscsException;

	/**
	 *
	 * @param bid
	 *            long
	 * @param commen
	 *            int
	 * @return int
	 */
	public long getForumNumCommend(long bid, long commen);

	/**
	 *
	 * @param commend
	 *            long
	 * @return int
	 */
	public long getForumNumCommend(long commend);


	/**
	 *
	 * @param bid
	 *            long
	 * @param commen
	 *            int
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsCommend(long bid, long commen, Pages pages);

	/**
	 *
	 * @param commend
	 *            long
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsCommend(long commend, Pages pages);

	/**
	 *
	 * @param bid
	 *            long
	 * @param mainID
	 *            String
	 * @param userID
	 *            String
	 * @return boolean
	 */
	public boolean isReedUser(long bid, String mainID, String userID);

	/**
	 * 删除一个帖子
	 *
	 * @param forum
	 *            Forum
	 * @param board
	 *            Board
	 * @param ui
	 *            UserInfo
	 * @throws BbscsException
	 */
	public void delaPost(Forum forum, Board board, UserInfo ui) throws BbscsException;

	/**
	 *
	 * @param forum
	 *            Forum
	 * @param ui
	 *            UserInfo
	 * @throws BbscsException
	 */
	public void savePostElite(Forum forum, UserInfo ui) throws BbscsException;

	public void saveForums(List forums) throws BbscsException;

	public void saveForumsEliteDel(List forums) throws BbscsException;

	/**
	 *
	 * @param forum
	 *            Forum
	 * @param board
	 *            Board
	 * @param vote
	 *            Vote
	 * @param ui
	 *            UserInfo
	 * @return Forum
	 * @throws BbscsException
	 */
	public Forum createVoteForum(Forum forum, Board board, Vote vote, UserInfo ui,String voteItem) throws BbscsException;

	/**
	 * 搂主帖子数
	 *
	 * @param bid
	 *            long
	 * @param userID
	 *            String
	 * @param mainID
	 *            String
	 * @return int
	 */
	public long getForumOwnerNum(long bid, String userID, String mainID);

	/**
	 * 只看楼主
	 *
	 * @param bid
	 *            long
	 * @param userID
	 *            String
	 * @param mainID
	 *            String
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsOwner(long bid, String userID, String mainID, Pages pages);

	/**
	 * 删除附件
	 *
	 * @param forum
	 *            Forum
	 * @param fileNames
	 *            String[]
	 * @throws BbscsException
	 */
	public void removeAttachFile(Forum forum, List fileNames) throws BbscsException;

	/**
	 * 删除某个帖子所有附件
	 *
	 * @param forum
	 *            Forum
	 * @throws BbscsException
	 */
	public void removeAllAttachFile(Forum forum) throws BbscsException;

	/**
	 * 删除未通过审核的帖子附件
	 *
	 * @param ids
	 *            List
	 * @throws BbscsException
	 */
	public void delForumsNotAuditingAttachFile(List ids) throws BbscsException;

	/**
	 *
	 * @param bid
	 *            long
	 * @param reNum
	 *            int
	 * @param click
	 *            int
	 * @return int
	 */
	public long getForumNumHotTopic(long bid, int reNum, int click);

	/**
	 *
	 * @param bid
	 *            long
	 * @param reNum
	 *            int
	 * @param click
	 *            int
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsHotTopic(long bid, int reNum, int click, Pages pages);

	/**
	 *
	 * @param atime
	 *            long
	 * @throws BbscsException
	 */
	public void removeToHistory(long atime) throws BbscsException;

	/**
	 *
	 * @param forums
	 *            List
	 * @param board
	 *            Board
	 * @throws BbscsException
	 */
	public void delPosts(List forums, Board board) throws BbscsException;

	/**
	 *
	 * @param bid
	 *            long
	 * @param ids
	 *            List
	 * @return List
	 */
	public List findForumsInIds(long bid, List ids);

	/**
	 *
	 * @param ids
	 *            List
	 * @return List
	 */
	public List findForumsInIds(List ids);

	/**
	 *
	 * @param forum
	 *            Forum
	 * @throws BbscsException
	 */
	public void delPostReal(Forum forum) throws BbscsException;

	/**
	 *
	 * @param ids
	 *            List
	 * @throws BbscsException
	 */
	public void delPostsReal(List ids) throws BbscsException;

	/**
	 * s
	 *
	 * @param bid
	 *            long
	 * @throws BbscsException
	 */
	public void delWastePost(long bid) throws BbscsException;

	/**
	 *
	 * @param bid
	 *            long
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsAllManage(long bid, Pages pages);


	/**
	 *
	 * @param ids
	 *            List
	 * @param board
	 *            Board
	 * @throws BbscsException
	 */
	public void saveForumsResume(List ids, Board board) throws BbscsException;

	/**
	 *
	 * @param ids
	 *            List
	 * @param board
	 *            Board
	 * @throws BbscsException
	 */
	public void saveForumsAuditing(List ids, Board board) throws BbscsException;

	/**
	 *
	 * @param ids
	 *            List
	 * @throws BbscsException
	 */
	public void saveForumsAuditingAttachFile(List ids) throws BbscsException;

	/**
	 *
	 * @param bid
	 *            long
	 * @return int
	 */
	public long getForumsAuditingAttachFileNum(long bid);

	/**
	 *
	 * @param bid
	 *            long
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsAuditingAttachFile(long bid, Pages pages);

	/**
	 *
	 * @param bid
	 *            long
	 * @param mainID
	 *            String
	 * @return List
	 */
	public List findForumsTopicAuditingAttachFile(long bid, String mainID);

	/**
	 *
	 * @param forum
	 *            Forum
	 * @param titleType
	 *            int[]
	 * @param values
	 *            int[]
	 * @throws BbscsException
	 */
	public void saveForumChangeUser(Forum forum, int[] titleType, int[] values) throws BbscsException;

	/**
	 *
	 * @param forum
	 *            Forum
	 * @param titleType
	 *            int
	 * @param values
	 *            int
	 * @throws BbscsException
	 */
	public void saveForumChangeUser(Forum forum, int titleType, int values) throws BbscsException;

	/**
	 *
	 * @param commend
	 *            long
	 * @throws BbscsException
	 */
	public void createCommendPage(long commend) throws BbscsException;

	/**
	 *
	 * @param createOrDel
	 *            int
	 * @param forum
	 *            Forum
	 * @throws BbscsException
	 */
	public void saveForumCommend(int createOrDel, Board board, Forum forum) throws BbscsException;

	/**
	 *
	 * @param indexStatus
	 *            int
	 * @return List
	 */
	public List findForumsByIndexStatus(int indexStatus);

	/**
	 *
	 * @param num
	 *            int
	 * @return List
	 */
	public List findForumsAllNew(int num);

	/**
	 *
	 * @param num
	 *            int
	 * @return List
	 */
	public List findForumsAllNewCache(int num);

	/**
	 *
	 * @param bid
	 *            long
	 * @param tagID
	 *            String
	 * @return PageList
	 */
	public PageList findForumsAll(long bid, String tagID, Pages pages);

	/**
	 *
	 * @param bid
	 *            long
	 * @param tagID
	 *            String
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsMainWWW(long bid, String tagID, Pages pages);

	/**
	 *
	 * @param bid
	 *            long
	 * @param tagID
	 *            String
	 * @param pages
	 *            Pages
	 * @return PageList
	 */
	public PageList findForumsMainLastRe(long bid, String tagID, Pages pages);

	/**
	 *
	 * @param bid
	 *            long
	 * @param postId
	 *            String
	 * @param f
	 *            Forum
	 * @param buyFromUi
	 *            UserInfo
	 * @throws BbscsException
	 */
	public void saveForumBuy(long bid, String postId, Forum f, UserInfo buyFromUi) throws BbscsException;

	/**
	 *
	 * @param postId
	 *            String
	 * @return int
	 */
	public long getForumBuyNumByPostId(String postId);

	/**
	 *
	 * @param postId
	 *            String
	 * @param fromId
	 *            String
	 * @return ForumBuy
	 */
	public ForumBuy findForumBuyByPostIdFromId(String postId, String fromId);

	public Forum saveEditForum(Forum forum) throws BbscsException;

	public void saveMoveForum(Forum forum, Board toboard) throws BbscsException;

	public void saveMoveForum(long frombid, String mainid, Board toboard) throws BbscsException;

	public String getForumDetail(Forum forum, boolean forcefromfile);
}

⌨️ 快捷键说明

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