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
ChannelException
public static void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids, boolean archived) throws ChannelException
ChannelException
public static void confirmDelivery(long companyId, long userId, String notificationEventUuid) throws ChannelException
ChannelException
public static void confirmDelivery(long companyId, long userId, String notificationEventUuid, boolean archived) throws ChannelException
ChannelException
public static Channel createChannel(long companyId, long userId) throws ChannelException
ChannelException
public static ChannelHub createChannelHub(long companyId) throws ChannelException
ChannelException
public static void deleteUserNotificiationEvent(long companyId, long userId, String notificationEventUuid) throws ChannelException
ChannelException
public static void deleteUserNotificiationEvents(long companyId, long userId, Collection<String> notificationEventUuids) throws ChannelException
ChannelException
public static void destroyChannel(long companyId, long userId) throws ChannelException
ChannelException
public static void destroyChannelHub(long companyId) throws ChannelException
ChannelException
public static ChannelHub fetchChannelHub(long companyId) throws ChannelException
ChannelException
public static ChannelHub fetchChannelHub(long companyId, boolean createIfAbsent) throws ChannelException
ChannelException
public static List<NotificationEvent> fetchNotificationEvents(long companyId, long userId, boolean flush) throws ChannelException
ChannelException
public static void flush() throws ChannelException
ChannelException
public static void flush(long companyId) throws ChannelException
ChannelException
public static void flush(long companyId, long userId, long timestamp) throws ChannelException
ChannelException
public static Channel getChannel(long companyId, long userId) throws ChannelException
ChannelException
public static Channel getChannel(long companyId, long userId, boolean createIfAbsent) throws ChannelException
ChannelException
public static ChannelHub getChannelHub(long companyId) throws ChannelException
ChannelException
public static ChannelHub getChannelHub(long companyId, boolean createIfAbsent) throws ChannelException
ChannelException
public static ChannelHubManager getChannelHubManager()
public static List<NotificationEvent> getNotificationEvents(long companyId, long userId) throws ChannelException
ChannelException
public static List<NotificationEvent> getNotificationEvents(long companyId, long userId, boolean flush) throws ChannelException
ChannelException
public static Collection<Long> getUserIds(long companyId) throws ChannelException
ChannelException
public static void registerChannelListener(long companyId, long userId, ChannelListener channelListener) throws ChannelException
ChannelException
public static void removeTransientNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents) throws ChannelException
ChannelException
public static void removeTransientNotificationEventsByUuid(long companyId, long userId, Collection<String> notificationEventUuids) throws ChannelException
ChannelException
public static void sendNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent) throws ChannelException
ChannelException
public static void sendNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents) throws ChannelException
ChannelException
public static void storeNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent) throws ChannelException
ChannelException
public static void unregisterChannelListener(long companyId, long userId, ChannelListener channelListener) throws ChannelException
ChannelException
public void setChannelHubManager(ChannelHubManager channelHubManager)