public class RecipientPreferenceServiceImpl extends Object implements RecipientPreferenceService
| Constructor and Description | 
|---|
| RecipientPreferenceServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | deleteRecipientPreference(RecipientPreference pref)This method will delete a specific user recipient preferences from the system. | 
| Collection<RecipientDelivererConfig> | getDeliverersForRecipient(String recipientId)This method will retrieve all of the message deliverer configurations for a given user | 
| Collection<RecipientDelivererConfig> | getDeliverersForRecipientAndChannel(String recipientId,
                                                                      String channel)This method will retrieve all of the message deliverer configurations for a given user, associated with a 
 particular channel. | 
| RecipientPreference | getRecipientPreference(String recipientId,
                                            String key)This method will get a specific user recipient preferences from the system. | 
| HashMap<String,String> | getRecipientPreferences(String recipientId)This method will get all  user recipient preferences from the system. | 
| void | removeRecipientDelivererConfigs(String recipientId)This method will remove all user deliverer configuration preferences in the system. | 
| void | saveRecipientDelivererConfig(String recipientId,
                                                        String delivererName,
                                                        String[] channels)This method will save a user deliverer configuration preferences in the system. | 
| RecipientPreference | saveRecipientPreference(RecipientPreference pref)This method will save a specific user recipient preferences in the system. | 
| void | saveRecipientPreferences(String recipientId,
                                                HashMap<String,String> prefs,
                                                MessageDeliverer deliverer)This method will save a user recipient preferences in the system. | 
| void | setDataObjectService(DataObjectService dataObjectService)Sets the data object service. | 
public RecipientPreferenceServiceImpl()
public RecipientPreference getRecipientPreference(String recipientId, String key)
RecipientPreferenceServicegetRecipientPreference in interface RecipientPreferenceServiceRecipientPreferenceService.getRecipientPreference(java.lang.String, java.lang.String)public void deleteRecipientPreference(RecipientPreference pref)
RecipientPreferenceServicedeleteRecipientPreference in interface RecipientPreferenceServicepref - the preferencesRecipientPreferenceService.deleteRecipientPreference(org.kuali.rice.kcb.bo.RecipientPreference)public HashMap<String,String> getRecipientPreferences(String recipientId)
RecipientPreferenceServicegetRecipientPreferences in interface RecipientPreferenceServiceRecipientPreferenceService.getRecipientPreferences(java.lang.String)public RecipientPreference saveRecipientPreference(RecipientPreference pref)
RecipientPreferenceServicesaveRecipientPreference in interface RecipientPreferenceServicepref - the preferencesRecipientPreferenceService.saveRecipientPreference(org.kuali.rice.kcb.bo.RecipientPreference)public void saveRecipientPreferences(String recipientId, HashMap<String,String> prefs, MessageDeliverer deliverer) throws ErrorList
RecipientPreferenceServicesaveRecipientPreferences in interface RecipientPreferenceServiceprefs - a hashmap of key/valuesErrorListRecipientPreferenceService.saveRecipientPreferences(java.lang.String, java.util.HashMap, org.kuali.rice.kcb.deliverer.MessageDeliverer)public void removeRecipientDelivererConfigs(String recipientId)
RecipientPreferenceServiceremoveRecipientDelivererConfigs in interface RecipientPreferenceServicerecipientId - the recipient idRecipientPreferenceService.removeRecipientDelivererConfigs(java.lang.String)public void saveRecipientDelivererConfig(String recipientId, String delivererName, String[] channels)
RecipientPreferenceServicesaveRecipientDelivererConfig in interface RecipientPreferenceServicerecipientId - the recipient iddelivererName - the deliverer namechannels - the channels for which to enable the delivererRecipientPreferenceService.saveRecipientDelivererConfig(java.lang.String, java.lang.String, java.lang.String[])public Collection<RecipientDelivererConfig> getDeliverersForRecipient(String recipientId)
RecipientPreferenceServicegetDeliverersForRecipient in interface RecipientPreferenceServiceRecipientPreferenceService.getDeliverersForRecipient(java.lang.String)public Collection<RecipientDelivererConfig> getDeliverersForRecipientAndChannel(String recipientId, String channel)
RecipientPreferenceServicepublic void setDataObjectService(DataObjectService dataObjectService)
dataObjectService - service to persist data to the datasource.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.