Class DefaultLikeNotificationManager
- java.lang.Object
-
- com.atlassian.confluence.plugins.like.notifications.DefaultLikeNotificationManager
-
- All Implemented Interfaces:
LikeNotificationManager
public class DefaultLikeNotificationManager extends Object implements LikeNotificationManager
-
-
Constructor Summary
Constructors Constructor Description DefaultLikeNotificationManager(UserAccessor userAccessor, NotificationManager notificationManager, LikeManager likeManager, NetworkService networkService, NotificationDao notificationDao, ContentEntityManager entityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LikeNotification>
getNotifications(LikeEvent event)
Compute the notifications that should result from the specified like event ocurring.List<LikeNotification>
getNotifications(LikePayload event)
Get a list of like notifications for a provided like event payload
-
-
-
Constructor Detail
-
DefaultLikeNotificationManager
public DefaultLikeNotificationManager(UserAccessor userAccessor, NotificationManager notificationManager, LikeManager likeManager, NetworkService networkService, NotificationDao notificationDao, ContentEntityManager entityManager)
-
-
Method Detail
-
getNotifications
public List<LikeNotification> getNotifications(LikeEvent event)
Description copied from interface:LikeNotificationManager
Compute the notifications that should result from the specified like event ocurring.- Specified by:
getNotifications
in interfaceLikeNotificationManager
- Parameters:
event
- the like event- Returns:
- notifications which represent who should be notified.
-
getNotifications
public List<LikeNotification> getNotifications(LikePayload event)
Description copied from interface:LikeNotificationManager
Get a list of like notifications for a provided like event payload- Specified by:
getNotifications
in interfaceLikeNotificationManager
- Parameters:
event
- The like event payload- Returns:
-
-