Package org.exoplatform.news.storage
Interface NewsStorage
-
- All Known Implementing Classes:
JcrNewsStorage
public interface NewsStorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidarchiveNews(String newsId)NewscreateNews(News news)voiddeleteNews(String newsId, boolean isDraft)List<News>getNews(NewsFilter newsFilter)NewsgetNewsById(String newsId, boolean editMode)intgetNewsCount(NewsFilter newsFilter)StringgetNewsIllustration(News news)booleanisCurrentUserInNewsViewers(String newsId, String userId)voidmarkAsRead(News news, String userId)voidpublishNews(News news)NewsscheduleNews(News news)List<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)NewsunScheduleNews(News news)NewsupdateNews(News news, String updater)voidupdateNewsActivities(String newsActivityId, News news)
-
-
-
Method Detail
-
updateNewsActivities
void updateNewsActivities(String newsActivityId, News news) throws Exception
- Throws:
Exception
-
getNews
List<News> getNews(NewsFilter newsFilter) throws Exception
- Throws:
Exception
-
getNewsCount
int getNewsCount(NewsFilter newsFilter) throws Exception
- Throws:
Exception
-
isCurrentUserInNewsViewers
boolean isCurrentUserInNewsViewers(String newsId, String userId) throws Exception
- Throws:
Exception
-
shareNews
void shareNews(News news, org.exoplatform.social.core.space.model.Space space, org.exoplatform.social.core.identity.model.Identity userIdentity, String sharedActivityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
-