Package org.kuali.rice.ken.service.impl
Class UserPreferenceServiceImpl
java.lang.Object
org.kuali.rice.ken.service.impl.UserPreferenceServiceImpl
- All Implemented Interfaces:
UserPreferenceService
UserPreferenceService implementation - uses the businessObjectDao to get at data in the underlying database.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionUserPreferenceServiceImpl(DataObjectService dataObjectService, NotificationChannelService notificationChannelService) Constructs a UserPreferenceServiceImpl -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentSubscriptions(String userid) This method retrieves all of the current channel subscriptions for a user.getSubscription(String channelid, String userid) This method retrieves the UserChannelSubscription instance given the two unique keys that are passed in.voidsubscribeToChannel(UserChannelSubscriptionBo userChannelSubscription) This method will add a channel subscription into the system.voidunsubscribeFromChannel(UserChannelSubscriptionBo userChannelSubscription) This method will remove a channel subscription from the system.
-
Constructor Details
-
UserPreferenceServiceImpl
public UserPreferenceServiceImpl(DataObjectService dataObjectService, NotificationChannelService notificationChannelService) Constructs a UserPreferenceServiceImpl- Parameters:
dataObjectService-notificationChannelService-
-
-
Method Details
-
getCurrentSubscriptions
Description copied from interface:UserPreferenceServiceThis method retrieves all of the current channel subscriptions for a user.- Specified by:
getCurrentSubscriptionsin interfaceUserPreferenceService- Parameters:
userid-- Returns:
- Collection
- See Also:
-
getSubscription
Description copied from interface:UserPreferenceServiceThis method retrieves the UserChannelSubscription instance given the two unique keys that are passed in.- Specified by:
getSubscriptionin interfaceUserPreferenceService- Parameters:
channelid-userid-- Returns:
- UserChannelSubscription
- See Also:
-
subscribeToChannel
Description copied from interface:UserPreferenceServiceThis method will add a channel subscription into the system.- Specified by:
subscribeToChannelin interfaceUserPreferenceService- Parameters:
userChannelSubscription-- See Also:
-
unsubscribeFromChannel
Description copied from interface:UserPreferenceServiceThis method will remove a channel subscription from the system.- Specified by:
unsubscribeFromChannelin interfaceUserPreferenceService- Parameters:
userChannelSubscription-- See Also:
-