public class NewsServiceImpl extends Object implements NewsService, org.springframework.context.ApplicationContextAware
NewsService
Constructor and Description |
---|
NewsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<NewsSourceImpl> |
getAllActiveNewsSources() |
List<NewsSourceImpl> |
getAllActiveNewsSources(Long parentId) |
List<NewsSourceImpl> |
getAllNewsSources() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
NewsCache |
getCache() |
NewsDao |
getDao() |
NewsArticleImpl |
getNewsArticle(String articleId) |
NewsArticleImpl |
getNewsArticle(String articleId,
long sourceId)
Retrieve the details of an article
|
NewsSourceImpl |
getNewsSourceById(Long id)
Retrieve a NewsSource object
|
List<NewsSourceImpl> |
getNewsSources(Long parentId,
Boolean isActive) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCache(NewsCache cache) |
void |
setDao(NewsDao dao) |
public NewsServiceImpl()
public List<NewsSourceImpl> getAllNewsSources()
getAllNewsSources
in interface NewsService
public List<NewsSourceImpl> getAllActiveNewsSources()
getAllActiveNewsSources
in interface NewsService
public List<NewsSourceImpl> getAllActiveNewsSources(Long parentId)
getAllActiveNewsSources
in interface NewsService
public List<NewsSourceImpl> getNewsSources(Long parentId, Boolean isActive)
getNewsSources
in interface NewsService
public NewsSourceImpl getNewsSourceById(Long id)
NewsService
getNewsSourceById
in interface NewsService
id
- the id of the NewsSource to retrievepublic NewsArticleImpl getNewsArticle(String articleId, long sourceId)
NewsService
getNewsArticle
in interface NewsService
articleId
- the id of the article to retrievesourceId
- the id of the NewsSource to which the article belongs.public NewsArticleImpl getNewsArticle(String articleId)
getNewsArticle
in interface NewsService
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public NewsDao getDao()
getDao
in interface NewsService
public void setDao(NewsDao dao)
setDao
in interface NewsService
public NewsCache getCache()
getCache
in interface NewsService
public void setCache(NewsCache cache)
setCache
in interface NewsService
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.