KickJava   Java API By Example, From Geeks To Geeks.

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


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.vo.NewsVO;
36
37 /**
38  * @author roby73
39  *
40  * TODO To change the template for this generated type comment go to
41  * Window - Preferences - Java - Code Style - Code Templates
42  */

43 public interface INewsBL {
44     public ArrayList JavaDoc getAllNews() throws BLException;
45
46     public ArrayList JavaDoc getEnabledNews() throws BLException;
47
48     public ArrayList JavaDoc getNewsByTId(int tid, boolean full) throws BLException;
49
50     public ArrayList JavaDoc getEnabledNewsByPeriod(Long JavaDoc[] bounds) throws BLException;
51
52     public ArrayList JavaDoc getEnabledNewsArchive() throws BLException;
53
54     public ArrayList JavaDoc getEnabledFullNews(int qt) throws BLException;
55
56     public void updateNews(NewsVO n) throws BLException;
57
58     public NewsVO getNewsByNId(int id) throws BLException;
59
60     public NewsVO getNewsByCommentCId(int cid) throws BLException;
61
62     public ArrayList JavaDoc getDisabledNews() throws BLException;
63
64     public HashMap JavaDoc getAutorList(ArrayList JavaDoc list) throws BLException;
65
66     public void insNews(NewsVO n) throws BLException;
67     
68     public void deleteNews(int nid)throws BLException;
69     
70     public ArrayList JavaDoc getLimitedNewsByTId(int tid,int max,boolean full) throws BLException;
71
72     public ArrayList JavaDoc getNewsByTitleOrText(String JavaDoc text) throws BLException;
73 }
Popular Tags