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)
RecipientPreferenceService
getRecipientPreference
in interface RecipientPreferenceService
RecipientPreferenceService.getRecipientPreference(java.lang.String, java.lang.String)
public void deleteRecipientPreference(RecipientPreference pref)
RecipientPreferenceService
deleteRecipientPreference
in interface RecipientPreferenceService
pref
- the preferencesRecipientPreferenceService.deleteRecipientPreference(org.kuali.rice.kcb.bo.RecipientPreference)
public HashMap<String,String> getRecipientPreferences(String recipientId)
RecipientPreferenceService
getRecipientPreferences
in interface RecipientPreferenceService
RecipientPreferenceService.getRecipientPreferences(java.lang.String)
public RecipientPreference saveRecipientPreference(RecipientPreference pref)
RecipientPreferenceService
saveRecipientPreference
in interface RecipientPreferenceService
pref
- the preferencesRecipientPreferenceService.saveRecipientPreference(org.kuali.rice.kcb.bo.RecipientPreference)
public void saveRecipientPreferences(String recipientId, HashMap<String,String> prefs, MessageDeliverer deliverer) throws ErrorList
RecipientPreferenceService
saveRecipientPreferences
in interface RecipientPreferenceService
prefs
- a hashmap of key/valuesErrorList
RecipientPreferenceService.saveRecipientPreferences(java.lang.String, java.util.HashMap, org.kuali.rice.kcb.deliverer.MessageDeliverer)
public void removeRecipientDelivererConfigs(String recipientId)
RecipientPreferenceService
removeRecipientDelivererConfigs
in interface RecipientPreferenceService
recipientId
- the recipient idRecipientPreferenceService.removeRecipientDelivererConfigs(java.lang.String)
public void saveRecipientDelivererConfig(String recipientId, String delivererName, String[] channels)
RecipientPreferenceService
saveRecipientDelivererConfig
in interface RecipientPreferenceService
recipientId
- 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)
RecipientPreferenceService
getDeliverersForRecipient
in interface RecipientPreferenceService
RecipientPreferenceService.getDeliverersForRecipient(java.lang.String)
public Collection<RecipientDelivererConfig> getDeliverersForRecipientAndChannel(String recipientId, String channel)
RecipientPreferenceService
public void setDataObjectService(DataObjectService dataObjectService)
dataObjectService
- service to persist data to the datasource.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.