1
2
3 /***
4 Copyright (C) 2005 The Java Community
5
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free Software
8 Foundation; either version 2 of the License, or (at your option) any later
9 version.
10
11 This program is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along with
16 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17 Place, Suite 330, Boston, MA 02111-1307 USA.
18 */
19 package org.bejug.javacareers.jobs.service;
20
21 import java.util.List;
22
23 import org.bejug.javacareers.feeder.model.RssFeed;
24
25 /***
26 * The RssFeed service implementation which will be called by the view. This
27 * can be any view including RUI and/or HTML web clients.
28 *
29 * @author Bavo Bruylandt (Last modified by $Author: schauwvliege $)
30 * @version $Revision: 1.2 $ - $Date: 2005/09/13 08:11:17 $
31 */
32 public interface RssFeedService {
33
34 /***
35 * Add a RSS feed
36 * @param feed The feed to add
37 */
38 void addRssFeed(RssFeed feed);
39
40 /***
41 * Convenience method to delete RSS feed by matching all properties
42 * @param feed The feed to delete
43 */
44 void deleteRssFeed(RssFeed feed);
45
46 /***
47 * Delete RSS feeds by URL.
48 * @param url String.
49 */
50 void deleteRssFeedByUrl(String url);
51
52 /***
53 * Delete RSS feeds by URL
54 * @param id The ID of feed to delete
55 */
56 void deleteRssFeed(Integer id);
57
58 /***
59 * Return all RSS feeds
60 * @return List.
61 */
62 List getRssFeeds();
63
64 /***
65 * gets a RssFeed by id.
66 * @param id the id of the RssFeed
67 * @return the wanted RssFeed
68 */
69 RssFeed getRssFeed(Integer id);
70
71 /***
72 * runs the aggregation schedule on demand
73 */
74 void aggregateFeeds();
75
76 /***
77 * runs the generation schedule on demand
78 */
79 void generateFeeds();
80
81 }
82 /***
83 * $Log: RssFeedService.java,v $
84 * Revision 1.2 2005/09/13 08:11:17 schauwvliege
85 * organize imports
86 *
87 * Revision 1.1 2005/08/26 07:58:31 ge0ffrey
88 * split up the sources in service, serviceimpl and webclient
89 *
90 * Revision 1.5 2005/08/10 09:04:49 bavo_jcs
91 * Optimized imports according to checkstyle
92 *
93 * Revision 1.4 2005/06/15 15:41:54 bavo_jcs
94 * made aggregation and generation a service
95 *
96 * Revision 1.3 2005/06/14 12:05:52 schauwvliege
97 * CheckStyle and fixing tests
98 *
99 * Revision 1.2 2005/06/09 08:18:52 bejug_cc
100 * Fix initial import
101 *
102 * Revision 1.3 2005/06/05 10:58:38 sja
103 * Correct CVS tags and JavaDoc.
104 *
105 **/