Interface ContextPreferencesRepository
- All Superinterfaces:
org.craftercms.commons.mongo.CrudRepository<ContextPreferences>
- All Known Implementing Classes:
ContextPreferencesRepositoryImpl
public interface ContextPreferencesRepository
extends org.craftercms.commons.mongo.CrudRepository<ContextPreferences>
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteContextPreferences
(String context, List<String> preferences) findNotificationTemplate
(String contextId, String notificationType) getContextAllPreferences
(String contextId) getContextPreferences
(String contextId) getEmailPreference
(String contextId) void
saveAllContextPreferences
(String contextId, Map<String, Object> newPreferences) saveEmailConfig
(String contextId, Map<String, Object> emailPref) boolean
saveEmailTemplate
(String context, String type, String template) boolean
setContextPreferences
(Map<String, Object> preferences, String contextId) 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 Details
-
getEmailPreference
- Throws:
SocialException
-
saveEmailConfig
Map<String,Object> saveEmailConfig(String contextId, Map<String, Object> emailPref) throws SocialException- Throws:
SocialException
-
findNotificationTemplate
- Throws:
SocialException
-
getContextPreferences
-
getContextAllPreferences
-
setContextPreferences
-
saveEmailTemplate
- Throws:
SocialException
-
deleteContextPreferences
-
saveAllContextPreferences
void saveAllContextPreferences(String contextId, Map<String, Object> newPreferences) throws SocialException- Throws:
SocialException
-