Class NotificationSubscriptionManagementServiceImpl
- java.lang.Object
-
- de.xima.fc.notification.mgmt.internal.NotificationSubscriptionManagementServiceImpl
-
- All Implemented Interfaces:
NotificationManagementService
@ApplicationScoped public class NotificationSubscriptionManagementServiceImpl extends Object implements NotificationManagementService
Service interface for managing notification subscriptions.- Since:
- 8.5.0
- Author:
- tobias
-
-
Constructor Summary
Constructors Constructor Description NotificationSubscriptionManagementServiceImpl()NotificationSubscriptionManagementServiceImpl(RpcHandlerProvider handlerProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NotificationSubscription>findAll(NotificationType notificationType, NotificationUser user)Finds all notification subscriptions for a given notification type.NotificationSubscriptionSettingsfindSettingsByAssignee(NotificationAssignee assignee, NotificationUser user)Finds the notification subscription settings for a given assignee.NotificationSubscriptionSettingssaveSettings(NotificationSubscriptionSettings settings, NotificationUser user)Saves the notification subscription settings.
-
-
-
Constructor Detail
-
NotificationSubscriptionManagementServiceImpl
@Inject public NotificationSubscriptionManagementServiceImpl(RpcHandlerProvider handlerProvider)
-
NotificationSubscriptionManagementServiceImpl
public NotificationSubscriptionManagementServiceImpl()
-
-
Method Detail
-
findAll
public List<NotificationSubscription> findAll(NotificationType notificationType, NotificationUser user) throws FcNotificationsManagementException
Finds all notification subscriptions for a given notification type.- Specified by:
findAllin interfaceNotificationManagementService- Parameters:
notificationType- The type of notification.user- The user requesting the subscriptions.- Returns:
- A list of notification subscriptions.
- Throws:
FcNotificationsManagementException- If an error occurs while retrieving the subscriptions.
-
findSettingsByAssignee
public NotificationSubscriptionSettings findSettingsByAssignee(NotificationAssignee assignee, NotificationUser user) throws FcNotificationsManagementException
Finds the notification subscription settings for a given assignee.- Specified by:
findSettingsByAssigneein interfaceNotificationManagementService- Parameters:
assignee- The assignee whose settings are to be retrieved.user- The user requesting the settings.- Returns:
- The notification subscription settings for the assignee.
- Throws:
FcNotificationsManagementException- If an error occurs while retrieving the settings.
-
saveSettings
public NotificationSubscriptionSettings saveSettings(NotificationSubscriptionSettings settings, NotificationUser user) throws FcNotificationsManagementException
Saves the notification subscription settings.- Specified by:
saveSettingsin interfaceNotificationManagementService- Parameters:
settings- The notification subscription settings to be saved.user- The user requesting the save operation.- Returns:
- The saved notification subscription settings.
- Throws:
FcNotificationsManagementException- If an error occurs while saving the settings.
-
-