Class WatchedThreadsRepositoryImpl
java.lang.Object
org.craftercms.commons.mongo.AbstractJongoRepository<WatchedThread>
org.craftercms.social.repositories.system.notifications.impl.WatchedThreadsRepositoryImpl
- All Implemented Interfaces:
org.craftercms.commons.mongo.CrudRepository<WatchedThread>,WatchedThreadsRepository
public class WatchedThreadsRepositoryImpl
extends org.craftercms.commons.mongo.AbstractJongoRepository<WatchedThread>
implements WatchedThreadsRepository
-
Field Summary
Fields inherited from class org.craftercms.commons.mongo.AbstractJongoRepository
clazz, collectionName, gridfs, jongo, queries -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWatcher(String thread, String userId, String frequency) findProfilesToSend(String type) findUserWatchedThreads(String profileId) isUserSubscribe(String threadId, String profileId) voidremoveWatcher(String thread, String userId) Methods inherited from class org.craftercms.commons.mongo.AbstractJongoRepository
count, count, count, createSortQuery, deleteFile, deleteFile, find, find, findAll, findById, findByStringId, findOne, findOne, getCollection, getFileInfo, getFileInfo, getQueryFor, init, insert, insert, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, returnList, returnSimple, save, save, saveFile, saveFile, setJongo, setQueries, update, update, update, update, updateFile, updateFile, updateFile, validateObject, validateObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
WatchedThreadsRepositoryImpl
public WatchedThreadsRepositoryImpl()
-
-
Method Details
-
removeWatcher
- Specified by:
removeWatcherin interfaceWatchedThreadsRepository- Throws:
NotificationException
-
addWatcher
- Specified by:
addWatcherin interfaceWatchedThreadsRepository- Throws:
NotificationException
-
isUserSubscribe
public WatchedThread isUserSubscribe(String threadId, String profileId) throws org.craftercms.commons.mongo.MongoDataException - Specified by:
isUserSubscribein interfaceWatchedThreadsRepository- Throws:
org.craftercms.commons.mongo.MongoDataException
-
findAllWithWatchers
- Specified by:
findAllWithWatchersin interfaceWatchedThreadsRepository- Throws:
NotificationException
-
findProfilesToSend
- Specified by:
findProfilesToSendin interfaceWatchedThreadsRepository- Throws:
NotificationException
-
findUserWatchedThreads
- Specified by:
findUserWatchedThreadsin interfaceWatchedThreadsRepository- Throws:
SocialException
-