public function sendList(BASE_CLASS_EventCollector $event)
 {
     $params = $event->getParams();
     $userIdList = $params['userIdList'];
     $notifications = $this->service->findNotificationListForSend($userIdList);
     $notificationIds = array();
     foreach ($notifications as $notification) {
         $event->add(array('pluginKey' => $notification->pluginKey, 'entityType' => $notification->entityType, 'entityId' => $notification->entityId, 'userId' => $notification->userId, 'action' => $notification->action, 'time' => $notification->timeStamp, 'viewed' => (bool) $notification->viewed, 'data' => $notification->getData()));
         $notificationIds[] = $notification->id;
     }
     $this->service->markNotificationsSentByIds($notificationIds);
 }