Message Boards
liferay notificationevent delete by deliverBy
Aye Aye, modified 3 Years ago.
liferay notificationevent delete by deliverBy
New Member Post: 1 Join Date: 8/16/20 Recent Posts
Hi Everyone, I would like to delete notification .While I try to delete with the following method.
List<UserNotificationEvent> notiList= _notiEventLocalService.getUserNotificationEvents(guardian.getLoginUserId(), UserNotificationDeliveryConstants.TYPE_WEBSITE);
for(UserNotificationEvent notiEvent : notiList) {
_notiEventLocalService.deleteUserNotificationEvent(notiEvent);
}However getUserNotificationEvents is searching with receiver login ID and not with deliver user id. Which method should i use to get with sender id.
Thank You,
AYE
List<UserNotificationEvent> notiList= _notiEventLocalService.getUserNotificationEvents(guardian.getLoginUserId(), UserNotificationDeliveryConstants.TYPE_WEBSITE);
for(UserNotificationEvent notiEvent : notiList) {
_notiEventLocalService.deleteUserNotificationEvent(notiEvent);
}However getUserNotificationEvents is searching with receiver login ID and not with deliver user id. Which method should i use to get with sender id.
Thank You,
AYE
Yan Paing, modified 3 Years ago.
RE: liferay notificationevent delete by deliverBy
Regular Member Posts: 128 Join Date: 3/11/10 Recent Posts
Hi ,Can some one please suggest.
Thanks
Thanks