public class ContextPreferencesRepositoryImpl extends org.craftercms.commons.mongo.AbstractJongoRepository<ContextPreferences> implements ContextPreferencesRepository
| Constructor and Description |
|---|
ContextPreferencesRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteContextPreferences(String context,
List<String> preferences) |
String |
findNotificationTemplate(String contextId,
String notificationType) |
Map<String,Object> |
getContextAllPreferences(String contextId) |
Map<String,Object> |
getContextPreferences(String contextId) |
Map<String,String> |
getEmailPreference(String contextId) |
void |
saveAllContextPreferences(String contextId,
Map<String,Object> newPreferences) |
Map<String,Object> |
saveEmailConfig(String contextId,
Map<String,Object> emailPref) |
void |
saveEmailPreference(String contextId,
Map<String,Object> emailPreferences) |
boolean |
saveEmailTemplate(String context,
String type,
String template) |
boolean |
setContextPreferences(Map<String,Object> preferences,
String contextId) |
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, 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, listFilesByName, readFile, readFile, remove, remove, removeById, removeByStringId, save, save, saveFile, saveFile, update, update, update, update, updateFile, updateFile, updateFilepublic Map<String,String> getEmailPreference(String contextId) throws SocialException
getEmailPreference in interface ContextPreferencesRepositorySocialExceptionpublic Map<String,Object> saveEmailConfig(String contextId, Map<String,Object> emailPref) throws SocialException
saveEmailConfig in interface ContextPreferencesRepositorySocialExceptionpublic String findNotificationTemplate(String contextId, String notificationType) throws SocialException
findNotificationTemplate in interface ContextPreferencesRepositorySocialExceptionpublic Map<String,Object> getContextPreferences(String contextId)
getContextPreferences in interface ContextPreferencesRepositorypublic Map<String,Object> getContextAllPreferences(String contextId)
getContextAllPreferences in interface ContextPreferencesRepositorypublic boolean setContextPreferences(Map<String,Object> preferences, String contextId)
setContextPreferences in interface ContextPreferencesRepositorypublic boolean deleteContextPreferences(String context, List<String> preferences)
deleteContextPreferences in interface ContextPreferencesRepositorypublic void saveEmailPreference(String contextId, Map<String,Object> emailPreferences) throws SocialException
SocialExceptionpublic void saveAllContextPreferences(String contextId, Map<String,Object> newPreferences) throws SocialException
saveAllContextPreferences in interface ContextPreferencesRepositorySocialExceptionpublic boolean saveEmailTemplate(String context, String type, String template) throws SocialException
saveEmailTemplate in interface ContextPreferencesRepositorySocialExceptionCopyright © 2019 CrafterCMS. All Rights Reserved.