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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
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 Detail
-
getEmailPreference
Map<String,String> getEmailPreference(String contextId) throws SocialException
- Throws:
SocialException
-
saveEmailConfig
Map<String,Object> saveEmailConfig(String contextId, Map<String,Object> emailPref) throws SocialException
- Throws:
SocialException
-
findNotificationTemplate
String findNotificationTemplate(String contextId, String notificationType) throws SocialException
- Throws:
SocialException
-
setContextPreferences
boolean setContextPreferences(Map<String,Object> preferences, String contextId)
-
saveEmailTemplate
boolean saveEmailTemplate(String context, String type, String template) throws SocialException
- Throws:
SocialException
-
deleteContextPreferences
boolean deleteContextPreferences(String context, List<String> preferences)
-
saveAllContextPreferences
void saveAllContextPreferences(String contextId, Map<String,Object> newPreferences) throws SocialException
- Throws:
SocialException
-
-