Package org.exoplatform.news.storage
Interface NewsStorage
- All Known Implementing Classes:
JcrNewsStorage
public interface NewsStorage
-
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveNews(String newsId) createNews(News news) voiddeleteNews(String newsId, boolean isDraft) getNews(NewsFilter newsFilter) getNewsById(String newsId, boolean editMode) intgetNewsCount(NewsFilter newsFilter) getNewsIllustration(News news) booleanisCurrentUserInNewsViewers(String newsId, String userId) voidmarkAsRead(News news, String userId) voidpublishNews(News news) scheduleNews(News news) searchNews(NewsFilter filter, String lang) voidshareNews(News news, org.exoplatform.social.core.space.model.Space space, org.exoplatform.social.core.identity.model.Identity userIdentity, String sharedActivityId) voidunarchiveNews(String newsId) voidunpublishNews(String newsId) unScheduleNews(News news) updateNews(News news, String updater) voidupdateNewsActivities(String newsActivityId, News news)
-
Method Details
-
createNews
- Throws:
Exception
-
publishNews
- Throws:
Exception
-
getNewsIllustration
- Throws:
Exception
-
updateNews
- Throws:
Exception
-
updateNewsActivities
- Throws:
Exception
-
getNewsById
- Throws:
Exception
-
getNews
- Throws:
Exception
-
getNewsCount
- Throws:
Exception
-
markAsRead
- Throws:
Exception
-
isCurrentUserInNewsViewers
- Throws:
Exception
-
unpublishNews
- Throws:
Exception
-
deleteNews
- Throws:
Exception
-
scheduleNews
- Throws:
Exception
-
unScheduleNews
- Throws:
Exception
-
archiveNews
- Throws:
Exception
-
unarchiveNews
- Throws:
Exception
-
searchNews
- Throws:
Exception
-