org.kuali.rice.ken.service.impl
Class UserPreferenceServiceImpl

java.lang.Object
  extended by org.kuali.rice.ken.service.impl.UserPreferenceServiceImpl
All Implemented Interfaces:
UserPreferenceService

public class UserPreferenceServiceImpl
extends Object
implements UserPreferenceService

UserPreferenceService implementation - uses the businessObjectDao to get at data in the underlying database.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
UserPreferenceServiceImpl(GenericDao businessObjectDao, NotificationChannelService notificationChannelService)
          Constructs a UserPreferenceServiceImpl
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPreferenceServiceImpl

public UserPreferenceServiceImpl(GenericDao businessObjectDao,
                                 NotificationChannelService notificationChannelService)
Constructs a UserPreferenceServiceImpl

Parameters:
businessObjectDao -
notificationChannelService -
Method Detail

getCurrentSubscriptions

public Collection<UserChannelSubscriptionBo> getCurrentSubscriptions(String userid)
Description copied from interface: UserPreferenceService
This method retrieves all of the current channel subscriptions for a user.

Specified by:
getCurrentSubscriptions in interface UserPreferenceService
Returns:
Collection
See Also:
UserPreferenceService.getCurrentSubscriptions(java.lang.String)

getSubscription

public UserChannelSubscriptionBo getSubscription(String channelid,
                                                 String userid)
Description copied from interface: UserPreferenceService
This method retrieves the UserChannelSubscription instance given the two unique keys that are passed in.

Specified by:
getSubscription in interface UserPreferenceService
Returns:
UserChannelSubscription
See Also:
UserPreferenceService.getSubscription(java.lang.String, java.lang.String)

subscribeToChannel

public void subscribeToChannel(UserChannelSubscriptionBo userChannelSubscription)
Description copied from interface: UserPreferenceService
This method will add a channel subscription into the system.

Specified by:
subscribeToChannel in interface UserPreferenceService
See Also:
UserPreferenceService.subscribeToChannel(org.kuali.rice.ken.bo.UserChannelSubscriptionBo)

unsubscribeFromChannel

public void unsubscribeFromChannel(UserChannelSubscriptionBo userChannelSubscription)
Description copied from interface: UserPreferenceService
This method will remove a channel subscription from the system.

Specified by:
unsubscribeFromChannel in interface UserPreferenceService
See Also:
UserPreferenceService.unsubscribeFromChannel(org.kuali.rice.ken.bo.UserChannelSubscriptionBo)


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.