Package com.easydesk.notification
Class BatchNotificationByActivitySetManager
java.lang.Object
com.easydesk.notification.DefaultNotificationManager
com.easydesk.notification.BatchNotificationManager
com.easydesk.notification.BatchNotificationByActivitySetManager
- All Implemented Interfaces:
BatchManager,NotificationManager
@Component("batchNotificationByActivitySetManager")
public class BatchNotificationByActivitySetManager
extends BatchNotificationManager
Multi Target Batch Notification Manager 각 notify 수단에 대하여 모두 처리된다.
- Author:
- Youncho Cho
-
Field Summary
Fields inherited from class com.easydesk.notification.BatchNotificationManager
BASE_OBJECT_COMPARATOR, DEFAULT_PERIOD, NOTIFICATION_STATUS_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSendByActivitySet(ActivitySet activitySet, EasyDeskUserImpl receiver, Item item, List<Activity> activities, AttributeOption managerOption, NotificationType type, Connection con, Collection<NotificationStatus> status) receiver 에 notification 을 보낸다.protected voiddoSendByActivitySet(Date now, ActivitySet activitySet, NotificationType type, AttributeOption managerOption, Connection con) notification 을 보낸다.static List<NotificationStatus> getPendingNotifications(Date date, ActivitySet activitySet, AttributeOption managerOption, Connection con) Wait 상테의 NotificationStatus 를 구한다.protected static Map<EasyDeskUser, Set<NotificationStatus>> getPendingUserMap(List<NotificationStatus> pending, Connection con) 각 receiver 별 NotificationStatus 집합을 구한다.protected static Map<EasyDeskUser, Map<Item, TreeSet<NotificationStatus>>> getUserPendingItemMap(Map<EasyDeskUser, Set<NotificationStatus>> pendingUserMap, Connection con) 각 item 별 NotificationStatus 집합을 구한다.voidsendPendingNotifications(Date now, NotificationType type, AttributeOption managerOption) Methods inherited from class com.easydesk.notification.BatchNotificationManager
batch, doSendByItem, getActivites, getPendingItemMap, getPendingNotifications, updateNotificationRepository, updateNotificationRepositoryMethods inherited from class com.easydesk.notification.DefaultNotificationManager
getNotificationContext, getNotificator, getNotificator, notificate, notified, requestFinished
-
Constructor Details
-
BatchNotificationByActivitySetManager
public BatchNotificationByActivitySetManager()
-
-
Method Details
-
sendPendingNotifications
public void sendPendingNotifications(Date now, NotificationType type, AttributeOption managerOption) - Overrides:
sendPendingNotificationsin classBatchNotificationManager- Parameters:
now-type-managerOption-
-
doSendByActivitySet
protected void doSendByActivitySet(Date now, ActivitySet activitySet, NotificationType type, AttributeOption managerOption, Connection con) throws TorqueException notification 을 보낸다.- Parameters:
now-activitySet-type-managerOption-con-- Throws:
TorqueException
-
doSendByActivitySet
protected void doSendByActivitySet(ActivitySet activitySet, EasyDeskUserImpl receiver, Item item, List<Activity> activities, AttributeOption managerOption, NotificationType type, Connection con, Collection<NotificationStatus> status) throws Exception receiver 에 notification 을 보낸다.- Parameters:
activitySet-receiver-item-activities-managerOption-type-con-status-- Throws:
Exception
-
getUserPendingItemMap
protected static Map<EasyDeskUser,Map<Item, getUserPendingItemMapTreeSet<NotificationStatus>>> (Map<EasyDeskUser, Set<NotificationStatus>> pendingUserMap, Connection con) throws TorqueException각 item 별 NotificationStatus 집합을 구한다.- Parameters:
pendingUserMap- { receiver, NotificationStatus Set} mapcon- DOCUMENT ME!- Returns:
- {user, { item , NotificatonStatus Set } } map
- Throws:
TorqueException- DOCUMENT ME!
-
getPendingUserMap
protected static Map<EasyDeskUser,Set<NotificationStatus>> getPendingUserMap(List<NotificationStatus> pending, Connection con) 각 receiver 별 NotificationStatus 집합을 구한다.- Parameters:
pending- NotificationStatus listcon- DOCUMENT ME!- Returns:
- { receiver , NotificatonStatus Set } map with { "Error", List }
-
getPendingNotifications
public static List<NotificationStatus> getPendingNotifications(Date date, ActivitySet activitySet, AttributeOption managerOption, Connection con) Wait 상테의 NotificationStatus 를 구한다.- Parameters:
date-activitySet-managerOption-con-
-