public class UserPreferenceServiceImpl extends Object implements UserPreferenceService
Constructor and Description |
---|
UserPreferenceServiceImpl(DataObjectService dataObjectService,
NotificationChannelService notificationChannelService)
Constructs a UserPreferenceServiceImpl
|
Modifier and Type | Method and Description |
---|---|
Collection<UserChannelSubscriptionBo> |
getCurrentSubscriptions(String userid)
This method retrieves all of the current channel subscriptions for a user.
|
UserChannelSubscriptionBo |
getSubscription(String channelid,
String userid)
This method retrieves the UserChannelSubscription instance given the two unique keys that are
passed in.
|
void |
subscribeToChannel(UserChannelSubscriptionBo userChannelSubscription)
This method will add a channel subscription into the system.
|
void |
unsubscribeFromChannel(UserChannelSubscriptionBo userChannelSubscription)
This method will remove a channel subscription from the system.
|
public UserPreferenceServiceImpl(DataObjectService dataObjectService, NotificationChannelService notificationChannelService)
dataObjectService
- notificationChannelService
- public Collection<UserChannelSubscriptionBo> getCurrentSubscriptions(String userid)
UserPreferenceService
getCurrentSubscriptions
in interface UserPreferenceService
UserPreferenceService.getCurrentSubscriptions(java.lang.String)
public UserChannelSubscriptionBo getSubscription(String channelid, String userid)
UserPreferenceService
getSubscription
in interface UserPreferenceService
UserPreferenceService.getSubscription(java.lang.String, java.lang.String)
public void subscribeToChannel(UserChannelSubscriptionBo userChannelSubscription)
UserPreferenceService
subscribeToChannel
in interface UserPreferenceService
UserPreferenceService.subscribeToChannel(org.kuali.rice.ken.bo.UserChannelSubscriptionBo)
public void unsubscribeFromChannel(UserChannelSubscriptionBo userChannelSubscription)
UserPreferenceService
unsubscribeFromChannel
in interface UserPreferenceService
UserPreferenceService.unsubscribeFromChannel(org.kuali.rice.ken.bo.UserChannelSubscriptionBo)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.