Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: liferay notificationevent delete by deliverBy
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
Hi ,Can some one please suggest.
Thanks
Thanks