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 java.lang.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
 java.util.Collection<UserChannelSubscription> getCurrentSubscriptions(java.lang.String userid)
          This method retrieves all of the current channel subscriptions for a user.
 UserChannelSubscription getSubscription(java.lang.String channelid, java.lang.String userid)
          This method retrieves the UserChannelSubscription instance given the two unique keys that are passed in.
 void subscribeToChannel(UserChannelSubscription userChannelSubscription)
          This method will add a channel subscription into the system.
 void unsubscribeFromChannel(UserChannelSubscription 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 java.util.Collection<UserChannelSubscription> getCurrentSubscriptions(java.lang.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 UserChannelSubscription getSubscription(java.lang.String channelid,
                                               java.lang.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(UserChannelSubscription 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.UserChannelSubscription)

unsubscribeFromChannel

public void unsubscribeFromChannel(UserChannelSubscription 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.UserChannelSubscription)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.