public interface NewsService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEditNews(String posterId,
String spaceId) |
boolean |
canPinNews() |
News |
createNews(News news) |
News |
createNewsDraft(News news) |
void |
deleteNews(String id) |
List<News> |
getNews(NewsFilter filter) |
News |
getNewsById(String id) |
List<News> |
getNewsDrafts(String spaceId,
String author) |
void |
markAsRead(News news,
String userId) |
void |
pinNews(String newsId) |
List<News> |
searchNews(NewsFilter filter,
String lang) |
void |
shareNews(SharedNews sharedNews,
List<org.exoplatform.social.core.space.model.Space> spaces) |
void |
unpinNews(String newsId) |
News |
updateNews(News news) |
List<News> getNews(NewsFilter filter) throws Exception
Exceptionvoid shareNews(SharedNews sharedNews, List<org.exoplatform.social.core.space.model.Space> spaces) throws Exception
ExceptionList<News> getNewsDrafts(String spaceId, String author) throws Exception
Exceptionboolean canPinNews()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.