KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > geinuke > middle > ICommentBL


1 /*
2  * Created on 19-giu-2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7
8  /*
9  -- GeiNuke --
10 Copyright (c) 2005 by Roberto Sidoti [geinuke@users.sourceforge.net]
11  http://www.hostingjava.it/-geinuke/
12
13 This file is part of GeiNuke.
14
15     GeiNuke is free software; you can redistribute it and/or modify
16     it under the terms of the GNU General Public License as published by
17     the Free Software Foundation; either version 2 of the License, or
18     (at your option) any later version.
19
20     GeiNuke is distributed in the hope that it will be useful,
21     but WITHOUT ANY WARRANTY; without even the implied warranty of
22     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23     GNU General Public License for more details.
24
25     You should have received a copy of the GNU General Public License
26     along with GeiNuke; if not, write to the Free Software
27     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 */

29 package com.geinuke.middle;
30
31 import java.util.ArrayList JavaDoc;
32 import java.util.HashMap JavaDoc;
33
34 import com.geinuke.bizlogic.BLException;
35 import com.geinuke.dao.CommentDAO;
36 import com.geinuke.util.collection.TreeArrayList;
37 import com.geinuke.vo.CommentVO;
38
39 /**
40  * @author roby73
41  *
42  * TODO To change the template for this generated type comment go to
43  * Window - Preferences - Java - Code Style - Code Templates
44  */

45 public interface ICommentBL {
46     public void insComment(CommentVO c) throws BLException;
47
48     public void delTree(CommentDAO dao, TreeArrayList tree) throws Exception JavaDoc;
49
50     
51     public void delCommentsBlogTreeByCId(int cid)throws BLException;
52     
53     public void delCommentsTreeByCId(int cid) throws BLException;
54
55     public CommentVO getNewsCommentByCId(int cid) throws BLException;
56
57     public ArrayList JavaDoc getNewsCommentsByXId(int xid) throws BLException;
58
59     public int getForumCommentsCountByXId(int xid) throws BLException;
60
61     public ArrayList JavaDoc getForumCommentsByXId(int xid) throws BLException;
62
63     public CommentVO getLastForumCommentByFId(int fid) throws BLException;
64
65     public CommentVO getLastForumCommentByTId(int tid) throws BLException;
66
67     public TreeArrayList getNewsCommentsTreeByXId(int xid) throws BLException;
68
69     
70
71     public HashMap JavaDoc getUsersByCommentXId(int xid) throws BLException;
72
73     public HashMap JavaDoc getUsersByForumCommentXId(int xid) throws BLException;
74     
75     
76     public TreeArrayList getBlogCommentsTreeByXId(int xid) throws BLException;
77     
78     public ArrayList JavaDoc getBlogCommentsByXId(int xid) throws BLException;
79     
80     public int getBlogCommentsCountByXId(int xid) throws BLException;
81     
82     public void delCommentByCId(int cid)throws BLException;
83     
84     public void delBlogCommentsTreeByCId(int cid)throws BLException;
85     
86     public CommentVO getBlogCommentByCId(int cid) throws BLException;
87     
88     public HashMap JavaDoc getUsersByBlogPostXId(int xid) throws BLException;
89     
90     public void delForumCommentsByXId(int xid)throws BLException;
91     
92     public void delForumCommentsByFId(int fid)throws BLException;
93     
94     public CommentVO getForumCommentByCId(int cid)throws BLException;
95 }
Popular Tags