Interface WatchedThreadsRepository
- All Superinterfaces:
org.craftercms.commons.mongo.CrudRepository<WatchedThread>
- All Known Implementing Classes:
WatchedThreadsRepositoryImpl
public interface WatchedThreadsRepository
extends org.craftercms.commons.mongo.CrudRepository<WatchedThread>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWatcher
(String thread, String userId, String frequency) findProfilesToSend
(String type) findUserWatchedThreads
(String profileId) isUserSubscribe
(String threadId, String profileId) void
removeWatcher
(String thread, String userId) Methods inherited from interface org.craftercms.commons.mongo.CrudRepository
count, count, count, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getFileInfo, getFileInfo, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, save, save, saveFile, saveFile, update, update, update, update, updateFile, updateFile, updateFile
-
Method Details
-
removeWatcher
- Throws:
NotificationException
-
addWatcher
- Throws:
NotificationException
-
isUserSubscribe
WatchedThread isUserSubscribe(String threadId, String profileId) throws org.craftercms.commons.mongo.MongoDataException - Throws:
org.craftercms.commons.mongo.MongoDataException
-
findAllWithWatchers
- Throws:
NotificationException
-
findProfilesToSend
- Throws:
NotificationException
-
findUserWatchedThreads
- Throws:
SocialException
-