1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.kuali.mobility.news.service;
16
17 import org.kuali.mobility.news.dao.NewsCache;
18 import org.kuali.mobility.news.dao.NewsDao;
19 import org.kuali.mobility.news.entity.NewsArticle;
20 import org.kuali.mobility.news.entity.NewsSource;
21
22 import javax.jws.WebService;
23 import java.util.List;
24
25
26
27
28
29
30 @WebService
31 public interface NewsService {
32
33 public List<? extends NewsSource> getNewsSources(Long parentId, Boolean isActive);
34
35
36
37
38
39 @Deprecated
40 public List<? extends NewsSource> getAllNewsSources();
41 public List<? extends NewsSource> getAllNewsSources(Boolean compact);
42
43
44
45
46
47 @Deprecated
48 public List<? extends NewsSource> getAllActiveNewsSources();
49 public List<? extends NewsSource> getAllActiveNewsSources(Boolean compact);
50
51 @Deprecated
52 public List<? extends NewsSource> getAllActiveNewsSources(Long parentId);
53 public List<? extends NewsSource> getAllActiveNewsSources(Long parentId,Boolean compact);
54
55
56
57
58
59
60
61 public NewsSource getNewsSourceById(Long id);
62
63
64
65
66
67
68
69
70 public NewsArticle getNewsArticle(String articleId, long sourceId);
71
72 public NewsArticle getNewsArticle(String articleId);
73
74 public void setDao(NewsDao dao);
75
76 public NewsDao getDao();
77
78 public void setCache(NewsCache cache);
79
80 public NewsCache getCache();
81 }