Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.notifications
Class ChannelHubManagerUtil

java.lang.Object
  extended by com.liferay.portal.kernel.notifications.ChannelHubManagerUtil

public class ChannelHubManagerUtil
extends Object


Constructor Summary
ChannelHubManagerUtil()
           
 
Method Summary
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 unregisterChannelListener(long companyId, long userId, ChannelListener channelListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelHubManagerUtil

public ChannelHubManagerUtil()
Method Detail

confirmDelivery

public static void confirmDelivery(long companyId,
                                   long userId,
                                   Collection<String> notificationEventUuids)
                            throws ChannelException
Throws:
ChannelException

confirmDelivery

public static void confirmDelivery(long companyId,
                                   long userId,
                                   Collection<String> notificationEventUuids,
                                   boolean archived)
                            throws ChannelException
Throws:
ChannelException

confirmDelivery

public static void confirmDelivery(long companyId,
                                   long userId,
                                   String notificationEventUuid)
                            throws ChannelException
Throws:
ChannelException

confirmDelivery

public static void confirmDelivery(long companyId,
                                   long userId,
                                   String notificationEventUuid,
                                   boolean archived)
                            throws ChannelException
Throws:
ChannelException

createChannel

public static Channel createChannel(long companyId,
                                    long userId)
                             throws ChannelException
Throws:
ChannelException

createChannelHub

public static ChannelHub createChannelHub(long companyId)
                                   throws ChannelException
Throws:
ChannelException

deleteUserNotificiationEvent

public static void deleteUserNotificiationEvent(long companyId,
                                                long userId,
                                                String notificationEventUuid)
                                         throws ChannelException
Throws:
ChannelException

deleteUserNotificiationEvents

public static void deleteUserNotificiationEvents(long companyId,
                                                 long userId,
                                                 Collection<String> notificationEventUuids)
                                          throws ChannelException
Throws:
ChannelException

destroyChannel

public static void destroyChannel(long companyId,
                                  long userId)
                           throws ChannelException
Throws:
ChannelException

destroyChannelHub

public static void destroyChannelHub(long companyId)
                              throws ChannelException
Throws:
ChannelException

fetchChannelHub

public static ChannelHub fetchChannelHub(long companyId)
                                  throws ChannelException
Throws:
ChannelException

fetchChannelHub

public static ChannelHub fetchChannelHub(long companyId,
                                         boolean createIfAbsent)
                                  throws ChannelException
Throws:
ChannelException

fetchNotificationEvents

public static List<NotificationEvent> fetchNotificationEvents(long companyId,
                                                              long userId,
                                                              boolean flush)
                                                       throws ChannelException
Throws:
ChannelException

flush

public static void flush()
                  throws ChannelException
Throws:
ChannelException

flush

public static void flush(long companyId)
                  throws ChannelException
Throws:
ChannelException

flush

public static void flush(long companyId,
                         long userId,
                         long timestamp)
                  throws ChannelException
Throws:
ChannelException

getChannel

public static Channel getChannel(long companyId,
                                 long userId)
                          throws ChannelException
Throws:
ChannelException

getChannel

public static Channel getChannel(long companyId,
                                 long userId,
                                 boolean createIfAbsent)
                          throws ChannelException
Throws:
ChannelException

getChannelHub

public static ChannelHub getChannelHub(long companyId)
                                throws ChannelException
Throws:
ChannelException

getChannelHub

public static ChannelHub getChannelHub(long companyId,
                                       boolean createIfAbsent)
                                throws ChannelException
Throws:
ChannelException

getChannelHubManager

public static ChannelHubManager getChannelHubManager()

getNotificationEvents

public static List<NotificationEvent> getNotificationEvents(long companyId,
                                                            long userId)
                                                     throws ChannelException
Throws:
ChannelException

getNotificationEvents

public static List<NotificationEvent> getNotificationEvents(long companyId,
                                                            long userId,
                                                            boolean flush)
                                                     throws ChannelException
Throws:
ChannelException

getUserIds

public static Collection<Long> getUserIds(long companyId)
                                   throws ChannelException
Throws:
ChannelException

registerChannelListener

public static void registerChannelListener(long companyId,
                                           long userId,
                                           ChannelListener channelListener)
                                    throws ChannelException
Throws:
ChannelException

removeTransientNotificationEvents

public static void removeTransientNotificationEvents(long companyId,
                                                     long userId,
                                                     Collection<NotificationEvent> notificationEvents)
                                              throws ChannelException
Throws:
ChannelException

removeTransientNotificationEventsByUuid

public static void removeTransientNotificationEventsByUuid(long companyId,
                                                           long userId,
                                                           Collection<String> notificationEventUuids)
                                                    throws ChannelException
Throws:
ChannelException

sendNotificationEvent

public static void sendNotificationEvent(long companyId,
                                         long userId,
                                         NotificationEvent notificationEvent)
                                  throws ChannelException
Throws:
ChannelException

sendNotificationEvents

public static void sendNotificationEvents(long companyId,
                                          long userId,
                                          Collection<NotificationEvent> notificationEvents)
                                   throws ChannelException
Throws:
ChannelException

unregisterChannelListener

public static void unregisterChannelListener(long companyId,
                                             long userId,
                                             ChannelListener channelListener)
                                      throws ChannelException
Throws:
ChannelException

setChannelHubManager

public void setChannelHubManager(ChannelHubManager channelHubManager)

Liferay 6.1.2-ce-ga3