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, validateObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public Map<String,String> getEmailPreference(String contextId) throws SocialException
getEmailPreference
in interface ContextPreferencesRepository
SocialException
public Map<String,Object> saveEmailConfig(String contextId, Map<String,Object> emailPref) throws SocialException
saveEmailConfig
in interface ContextPreferencesRepository
SocialException
public String findNotificationTemplate(String contextId, String notificationType) throws SocialException
findNotificationTemplate
in interface ContextPreferencesRepository
SocialException
public Map<String,Object> getContextPreferences(String contextId)
getContextPreferences
in interface ContextPreferencesRepository
public Map<String,Object> getContextAllPreferences(String contextId)
getContextAllPreferences
in interface ContextPreferencesRepository
public boolean setContextPreferences(Map<String,Object> preferences, String contextId)
setContextPreferences
in interface ContextPreferencesRepository
public boolean deleteContextPreferences(String context, List<String> preferences)
deleteContextPreferences
in interface ContextPreferencesRepository
public void saveEmailPreference(String contextId, Map<String,Object> emailPreferences) throws SocialException
SocialException
public void saveAllContextPreferences(String contextId, Map<String,Object> newPreferences) throws SocialException
saveAllContextPreferences
in interface ContextPreferencesRepository
SocialException
public boolean saveEmailTemplate(String context, String type, String template) throws SocialException
saveEmailTemplate
in interface ContextPreferencesRepository
SocialException
Copyright © 2018 CrafterCMS. All rights reserved.