public class ChannelHubManagerUtil extends Object
| Constructor and Description |
|---|
ChannelHubManagerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids) |
static void |
confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids,
boolean archived) |
static void |
confirmDelivery(long companyId,
long userId,
String notificationEventUuid) |
static void |
confirmDelivery(long companyId,
long userId,
String notificationEventUuid,
boolean archived) |
static Channel |
createChannel(long companyId,
long userId) |
static ChannelHub |
createChannelHub(long companyId) |
static void |
deleteUserNotificiationEvent(long companyId,
long userId,
String notificationEventUuid) |
static void |
deleteUserNotificiationEvents(long companyId,
long userId,
Collection<String> notificationEventUuids) |
static void |
destroyChannel(long companyId,
long userId) |
static void |
destroyChannelHub(long companyId) |
static ChannelHub |
fetchChannelHub(long companyId) |
static ChannelHub |
fetchChannelHub(long companyId,
boolean createIfAbsent) |
static List<NotificationEvent> |
fetchNotificationEvents(long companyId,
long userId,
boolean flush) |
static void |
flush() |
static void |
flush(long companyId) |
static void |
flush(long companyId,
long userId,
long timestamp) |
static Channel |
getChannel(long companyId,
long userId) |
static Channel |
getChannel(long companyId,
long userId,
boolean createIfAbsent) |
static ChannelHub |
getChannelHub(long companyId) |
static ChannelHub |
getChannelHub(long companyId,
boolean createIfAbsent) |
static ChannelHubManager |
getChannelHubManager() |
static List<NotificationEvent> |
getNotificationEvents(long companyId,
long userId) |
static List<NotificationEvent> |
getNotificationEvents(long companyId,
long userId,
boolean flush) |
static Collection<Long> |
getUserIds(long companyId) |
static void |
registerChannelListener(long companyId,
long userId,
ChannelListener channelListener) |
static void |
removeTransientNotificationEvents(long companyId,
long userId,
Collection<NotificationEvent> notificationEvents) |
static void |
removeTransientNotificationEventsByUuid(long companyId,
long userId,
Collection<String> notificationEventUuids) |
static void |
sendNotificationEvent(long companyId,
long userId,
NotificationEvent notificationEvent) |
static void |
sendNotificationEvents(long companyId,
long userId,
Collection<NotificationEvent> notificationEvents) |
void |
setChannelHubManager(ChannelHubManager channelHubManager) |
static void |
storeNotificationEvent(long companyId,
long userId,
NotificationEvent notificationEvent) |
static void |
unregisterChannelListener(long companyId,
long userId,
ChannelListener channelListener) |
public static void confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids)
throws ChannelException
ChannelExceptionpublic static void confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids,
boolean archived)
throws ChannelException
ChannelExceptionpublic static void confirmDelivery(long companyId,
long userId,
String notificationEventUuid)
throws ChannelException
ChannelExceptionpublic static void confirmDelivery(long companyId,
long userId,
String notificationEventUuid,
boolean archived)
throws ChannelException
ChannelExceptionpublic static Channel createChannel(long companyId, long userId) throws ChannelException
ChannelExceptionpublic static ChannelHub createChannelHub(long companyId) throws ChannelException
ChannelExceptionpublic static void deleteUserNotificiationEvent(long companyId,
long userId,
String notificationEventUuid)
throws ChannelException
ChannelExceptionpublic static void deleteUserNotificiationEvents(long companyId,
long userId,
Collection<String> notificationEventUuids)
throws ChannelException
ChannelExceptionpublic static void destroyChannel(long companyId,
long userId)
throws ChannelException
ChannelExceptionpublic static void destroyChannelHub(long companyId)
throws ChannelException
ChannelExceptionpublic static ChannelHub fetchChannelHub(long companyId) throws ChannelException
ChannelExceptionpublic static ChannelHub fetchChannelHub(long companyId, boolean createIfAbsent) throws ChannelException
ChannelExceptionpublic static List<NotificationEvent> fetchNotificationEvents(long companyId, long userId, boolean flush) throws ChannelException
ChannelExceptionpublic static void flush()
throws ChannelException
ChannelExceptionpublic static void flush(long companyId)
throws ChannelException
ChannelExceptionpublic static void flush(long companyId,
long userId,
long timestamp)
throws ChannelException
ChannelExceptionpublic static Channel getChannel(long companyId, long userId) throws ChannelException
ChannelExceptionpublic static Channel getChannel(long companyId, long userId, boolean createIfAbsent) throws ChannelException
ChannelExceptionpublic static ChannelHub getChannelHub(long companyId) throws ChannelException
ChannelExceptionpublic static ChannelHub getChannelHub(long companyId, boolean createIfAbsent) throws ChannelException
ChannelExceptionpublic static ChannelHubManager getChannelHubManager()
public static List<NotificationEvent> getNotificationEvents(long companyId, long userId) throws ChannelException
ChannelExceptionpublic static List<NotificationEvent> getNotificationEvents(long companyId, long userId, boolean flush) throws ChannelException
ChannelExceptionpublic static Collection<Long> getUserIds(long companyId) throws ChannelException
ChannelExceptionpublic static void registerChannelListener(long companyId,
long userId,
ChannelListener channelListener)
throws ChannelException
ChannelExceptionpublic static void removeTransientNotificationEvents(long companyId,
long userId,
Collection<NotificationEvent> notificationEvents)
throws ChannelException
ChannelExceptionpublic static void removeTransientNotificationEventsByUuid(long companyId,
long userId,
Collection<String> notificationEventUuids)
throws ChannelException
ChannelExceptionpublic static void sendNotificationEvent(long companyId,
long userId,
NotificationEvent notificationEvent)
throws ChannelException
ChannelExceptionpublic static void sendNotificationEvents(long companyId,
long userId,
Collection<NotificationEvent> notificationEvents)
throws ChannelException
ChannelExceptionpublic static void storeNotificationEvent(long companyId,
long userId,
NotificationEvent notificationEvent)
throws ChannelException
ChannelExceptionpublic static void unregisterChannelListener(long companyId,
long userId,
ChannelListener channelListener)
throws ChannelException
ChannelExceptionpublic void setChannelHubManager(ChannelHubManager channelHubManager)