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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addWatcher(String thread, String userId, String frequency)
Iterable<WatchedThread>
findAllWithWatchers()
List<ThreadsToNotify>
findProfilesToSend(String type)
List<Map>
findUserWatchedThreads(String profileId)
WatchedThread
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 Detail
-
removeWatcher
void removeWatcher(String thread, String userId) throws NotificationException
- Throws:
NotificationException
-
addWatcher
void addWatcher(String thread, String userId, String frequency) throws NotificationException
- Throws:
NotificationException
-
isUserSubscribe
WatchedThread isUserSubscribe(String threadId, String profileId) throws org.craftercms.commons.mongo.MongoDataException
- Throws:
org.craftercms.commons.mongo.MongoDataException
-
findAllWithWatchers
Iterable<WatchedThread> findAllWithWatchers() throws NotificationException
- Throws:
NotificationException
-
findProfilesToSend
List<ThreadsToNotify> findProfilesToSend(String type) throws NotificationException
- Throws:
NotificationException
-
findUserWatchedThreads
List<Map> findUserWatchedThreads(String profileId) throws SocialException
- Throws:
SocialException
-
-