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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void cleanUp(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
cleanUp
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long userId, Collection<String> notificationEventUuids) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long userId, Collection<String> notificationEventUuids, boolean archive) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long userId, String notificationEventUuid) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long userId, String notificationEventUuid, boolean archive) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel createChannel(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
createChannel
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void deleteUserNotificiationEvent(long userId, String notificationEventUuid) throws com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvent
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void deleteUserNotificiationEvents(long userId, Collection<String> notificationEventUuids) throws com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvents
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void destroy() throws com.liferay.portal.kernel.notifications.ChannelException
destroy
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel destroyChannel(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
destroyChannel
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel fetchChannel(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
fetchChannel
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void flush() throws com.liferay.portal.kernel.notifications.ChannelException
flush
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void flush(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
flush
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void flush(long userId, long timestamp) throws com.liferay.portal.kernel.notifications.ChannelException
flush
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel getChannel(long userId) throws com.liferay.portal.kernel.notifications.ChannelException
getChannel
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public Collection<Long> getUserIds()
getUserIds
in interface com.liferay.portal.kernel.notifications.ChannelHub
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public void removeTransientNotificationEventsByUuid(long userId, Collection<String> notificationEventUuids) throws com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEventsByUuid
in interface com.liferay.portal.kernel.notifications.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException
public 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.ChannelHub
com.liferay.portal.kernel.notifications.ChannelException