public class WatchedThreadsRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<WatchedThread> implements WatchedThreadsRepository
| Constructor and Description |
|---|
WatchedThreadsRepositoryImpl() |
| Modifier and Type | Method and 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) |
checkCommandResult, count, count, count, createSortQuery, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getCollection, getFileInfo, getFileInfo, getQueryFor, init, insert, insert, readFile, readFile, remove, remove, removeById, removeByStringId, returnList, returnSimple, save, save, saveFile, saveFile, setJongo, setQueries, update, update, update, update, updateFile, updateFile, updateFile, validateObject, validateObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, count, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getFileInfo, getFileInfo, insert, insert, readFile, readFile, remove, remove, removeById, removeByStringId, save, save, saveFile, saveFile, update, update, update, update, updateFile, updateFile, updateFilepublic void removeWatcher(String thread, String userId) throws NotificationException
removeWatcher in interface WatchedThreadsRepositoryNotificationExceptionpublic void addWatcher(String thread, String userId, String frequency) throws NotificationException
addWatcher in interface WatchedThreadsRepositoryNotificationExceptionpublic WatchedThread isUserSubscribe(String threadId, String profileId) throws org.craftercms.commons.mongo.MongoDataException
isUserSubscribe in interface WatchedThreadsRepositoryorg.craftercms.commons.mongo.MongoDataExceptionpublic Iterable<WatchedThread> findAllWithWatchers() throws NotificationException
findAllWithWatchers in interface WatchedThreadsRepositoryNotificationExceptionpublic List<ThreadsToNotify> findProfilesToSend(String type) throws NotificationException
findProfilesToSend in interface WatchedThreadsRepositoryNotificationExceptionpublic List<Map> findUserWatchedThreads(String profileId) throws SocialException
findUserWatchedThreads in interface WatchedThreadsRepositorySocialExceptionCopyright © 2015 CrafterCMS. All Rights Reserved.