public class ChannelHubManagerImpl
extends Object
implements com.liferay.portal.kernel.notifications.ChannelHubManager
Constructor and Description |
---|
ChannelHubManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids) |
void |
confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids,
boolean archive) |
void |
confirmDelivery(long companyId,
long userId,
String notificationEventUuid) |
void |
confirmDelivery(long companyId,
long userId,
String notificationEventUuid,
boolean archive) |
com.liferay.portal.kernel.notifications.Channel |
createChannel(long companyId,
long userId) |
com.liferay.portal.kernel.notifications.ChannelHub |
createChannelHub(long companyId) |
void |
deleteUserNotificiationEvent(long companyId,
long userId,
String notificationEventUuid) |
void |
deleteUserNotificiationEvents(long companyId,
long userId,
Collection<String> notificationEventUuids) |
void |
destroyChannel(long companyId,
long userId) |
void |
destroyChannelHub(long companyId) |
com.liferay.portal.kernel.notifications.ChannelHub |
fetchChannelHub(long companyId) |
com.liferay.portal.kernel.notifications.ChannelHub |
fetchChannelHub(long companyId,
boolean createIfAbsent) |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
fetchNotificationEvents(long companyId,
long userId,
boolean flush) |
void |
flush() |
void |
flush(long companyId) |
void |
flush(long companyId,
long userId,
long timestamp) |
com.liferay.portal.kernel.notifications.Channel |
getChannel(long companyId,
long userId) |
com.liferay.portal.kernel.notifications.Channel |
getChannel(long companyId,
long userId,
boolean createIfAbsent) |
com.liferay.portal.kernel.notifications.ChannelHub |
getChannelHub(long companyId) |
com.liferay.portal.kernel.notifications.ChannelHub |
getChannelHub(long companyId,
boolean createIfAbsent) |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
getNotificationEvents(long companyId,
long userId) |
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
getNotificationEvents(long companyId,
long userId,
boolean flush) |
Collection<Long> |
getUserIds(long companyId) |
void |
registerChannelListener(long companyId,
long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener) |
void |
removeTransientNotificationEvents(long companyId,
long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents) |
void |
removeTransientNotificationEventsByUuid(long companyId,
long userId,
Collection<String> notificationEventUuids) |
void |
sendNotificationEvent(long companyId,
long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent) |
void |
sendNotificationEvents(long companyId,
long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents) |
void |
storeNotificationEvent(long companyId,
long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent) |
void |
unregisterChannelListener(long companyId,
long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener) |
public void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids, boolean archive) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long companyId, long userId, String notificationEventUuid) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void confirmDelivery(long companyId, long userId, String notificationEventUuid, boolean archive) throws com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel createChannel(long companyId, long userId) throws com.liferay.portal.kernel.notifications.ChannelException
createChannel
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.ChannelHub createChannelHub(long companyId) throws com.liferay.portal.kernel.notifications.ChannelException
createChannelHub
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void deleteUserNotificiationEvent(long companyId, long userId, String notificationEventUuid) throws com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvent
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void deleteUserNotificiationEvents(long companyId, long userId, Collection<String> notificationEventUuids) throws com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvents
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void destroyChannel(long companyId, long userId) throws com.liferay.portal.kernel.notifications.ChannelException
destroyChannel
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void destroyChannelHub(long companyId) throws com.liferay.portal.kernel.notifications.ChannelException
destroyChannelHub
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.ChannelHub fetchChannelHub(long companyId) throws com.liferay.portal.kernel.notifications.ChannelException
fetchChannelHub
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.ChannelHub fetchChannelHub(long companyId, boolean createIfAbsent) throws com.liferay.portal.kernel.notifications.ChannelException
fetchChannelHub
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public List<com.liferay.portal.kernel.notifications.NotificationEvent> fetchNotificationEvents(long companyId, long userId, boolean flush) throws com.liferay.portal.kernel.notifications.ChannelException
fetchNotificationEvents
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void flush() throws com.liferay.portal.kernel.notifications.ChannelException
flush
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void flush(long companyId) throws com.liferay.portal.kernel.notifications.ChannelException
flush
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void flush(long companyId, long userId, long timestamp) throws com.liferay.portal.kernel.notifications.ChannelException
flush
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel getChannel(long companyId, long userId) throws com.liferay.portal.kernel.notifications.ChannelException
getChannel
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.Channel getChannel(long companyId, long userId, boolean createIfAbsent) throws com.liferay.portal.kernel.notifications.ChannelException
getChannel
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.ChannelHub getChannelHub(long companyId) throws com.liferay.portal.kernel.notifications.ChannelException
getChannelHub
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public com.liferay.portal.kernel.notifications.ChannelHub getChannelHub(long companyId, boolean createIfAbsent) throws com.liferay.portal.kernel.notifications.ChannelException
getChannelHub
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(long companyId, long userId) throws com.liferay.portal.kernel.notifications.ChannelException
getNotificationEvents
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(long companyId, long userId, boolean flush) throws com.liferay.portal.kernel.notifications.ChannelException
getNotificationEvents
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public Collection<Long> getUserIds(long companyId) throws com.liferay.portal.kernel.notifications.ChannelException
getUserIds
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void registerChannelListener(long companyId, long userId, com.liferay.portal.kernel.notifications.ChannelListener channelListener) throws com.liferay.portal.kernel.notifications.ChannelException
registerChannelListener
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void removeTransientNotificationEvents(long companyId, 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.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void removeTransientNotificationEventsByUuid(long companyId, long userId, Collection<String> notificationEventUuids) throws com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEventsByUuid
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void sendNotificationEvent(long companyId, long userId, com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent) throws com.liferay.portal.kernel.notifications.ChannelException
sendNotificationEvent
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void sendNotificationEvents(long companyId, 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.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void storeNotificationEvent(long companyId, long userId, com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent) throws com.liferay.portal.kernel.notifications.ChannelException
storeNotificationEvent
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException
public void unregisterChannelListener(long companyId, long userId, com.liferay.portal.kernel.notifications.ChannelListener channelListener) throws com.liferay.portal.kernel.notifications.ChannelException
unregisterChannelListener
in interface com.liferay.portal.kernel.notifications.ChannelHubManager
com.liferay.portal.kernel.notifications.ChannelException