public class ChannelHubImpl extends Object implements com.liferay.portal.kernel.notifications.ChannelHub
| Constructor and Description |
|---|
ChannelHubImpl(long companyId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
cleanUp(long userId) |
void |
confirmDelivery(long userId,
Collection<String> notificationEventUuids) |
void |
confirmDelivery(long userId,
Collection<String> notificationEventUuids,
boolean archive) |
void |
confirmDelivery(long userId,
String notificationEventUuid) |
void |
confirmDelivery(long userId,
String notificationEventUuid,
boolean archive) |
com.liferay.portal.kernel.notifications.Channel |
createChannel(long userId) |
void |
deleteUserNotificiationEvent(long userId,
String notificationEventUuid) |
void |
deleteUserNotificiationEvents(long userId,
Collection<String> notificationEventUuids) |
void |
destroy() |
com.liferay.portal.kernel.notifications.Channel |
destroyChannel(long userId) |
com.liferay.portal.kernel.notifications.Channel |
fetchChannel(long userId) |
com.liferay.portal.kernel.notifications.Channel |
fetchChannel(long userId,
boolean createIfAbsent) |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
fetchNotificationEvents(long userId) |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
fetchNotificationEvents(long userId,
boolean flush) |
void |
flush() |
void |
flush(long userId) |
void |
flush(long userId,
long timestamp) |
com.liferay.portal.kernel.notifications.Channel |
getChannel(long userId) |
com.liferay.portal.kernel.notifications.Channel |
getChannel(long userId,
boolean createIfAbsent) |
long |
getCompanyId() |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
getNotificationEvents(long userId) |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
getNotificationEvents(long userId,
boolean flush) |
Collection<Long> |
getUserIds() |
void |
registerChannelListener(long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener) |
void |
removeTransientNotificationEvents(long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents) |
void |
removeTransientNotificationEventsByUuid(long userId,
Collection<String> notificationEventUuids) |
void |
sendNotificationEvent(long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent) |
void |
sendNotificationEvents(long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents) |
void |
storeNotificationEvent(long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent) |
void |
unregisterChannelListener(long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener) |
public void cleanUp()
throws com.liferay.portal.kernel.notifications.ChannelException
cleanUp in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void cleanUp(long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
cleanUp in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void confirmDelivery(long userId,
Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void confirmDelivery(long userId,
Collection<String> notificationEventUuids,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void confirmDelivery(long userId,
String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void confirmDelivery(long userId,
String notificationEventUuid,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic com.liferay.portal.kernel.notifications.Channel createChannel(long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
createChannel in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void deleteUserNotificiationEvent(long userId,
String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvent in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void deleteUserNotificiationEvents(long userId,
Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void destroy()
throws com.liferay.portal.kernel.notifications.ChannelException
destroy in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic com.liferay.portal.kernel.notifications.Channel destroyChannel(long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
destroyChannel in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic com.liferay.portal.kernel.notifications.Channel fetchChannel(long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
fetchChannel in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic com.liferay.portal.kernel.notifications.Channel fetchChannel(long userId,
boolean createIfAbsent)
throws com.liferay.portal.kernel.notifications.ChannelException
fetchChannel in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic List<com.liferay.portal.kernel.notifications.NotificationEvent> fetchNotificationEvents(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
fetchNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic List<com.liferay.portal.kernel.notifications.NotificationEvent> fetchNotificationEvents(long userId, boolean flush) throws com.liferay.portal.kernel.notifications.ChannelException
fetchNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void flush()
throws com.liferay.portal.kernel.notifications.ChannelException
flush in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void flush(long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
flush in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void flush(long userId,
long timestamp)
throws com.liferay.portal.kernel.notifications.ChannelException
flush in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic com.liferay.portal.kernel.notifications.Channel getChannel(long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
getChannel in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic com.liferay.portal.kernel.notifications.Channel getChannel(long userId,
boolean createIfAbsent)
throws com.liferay.portal.kernel.notifications.ChannelException
getChannel in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic long getCompanyId()
public List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
getNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(long userId, boolean flush) throws com.liferay.portal.kernel.notifications.ChannelException
getNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic Collection<Long> getUserIds()
getUserIds in interface com.liferay.portal.kernel.notifications.ChannelHubpublic void registerChannelListener(long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener)
throws com.liferay.portal.kernel.notifications.ChannelException
registerChannelListener in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void removeTransientNotificationEvents(long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
throws com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void removeTransientNotificationEventsByUuid(long userId,
Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEventsByUuid in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void sendNotificationEvent(long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
throws com.liferay.portal.kernel.notifications.ChannelException
sendNotificationEvent in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void sendNotificationEvents(long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
throws com.liferay.portal.kernel.notifications.ChannelException
sendNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void storeNotificationEvent(long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
throws com.liferay.portal.kernel.notifications.ChannelException
storeNotificationEvent in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelExceptionpublic void unregisterChannelListener(long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener)
throws com.liferay.portal.kernel.notifications.ChannelException
unregisterChannelListener in interface com.liferay.portal.kernel.notifications.ChannelHubcom.liferay.portal.kernel.notifications.ChannelException