Liferay 6.2.0

com.liferay.portal.kernel.notifications
Interface ChannelHubManager

All Known Implementing Classes:
ChannelHubManagerImpl

public interface ChannelHubManager


Method Summary
abstract  void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids)
           
abstract  void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids, boolean archive)
           
abstract  void confirmDelivery(long companyId, long userId, String notificationEventUuid)
           
abstract  void confirmDelivery(long companyId, long userId, String notificationEventUuid, boolean archive)
           
abstract  Channel createChannel(long companyId, long userId)
           
abstract  ChannelHub createChannelHub(long companyId)
           
abstract  void deleteUserNotificiationEvent(long companyId, long userId, String notificationEventUuid)
           
abstract  void deleteUserNotificiationEvents(long companyId, long userId, Collection<String> notificationEventUuids)
           
abstract  void destroyChannel(long companyId, long userId)
           
abstract  void destroyChannelHub(long companyId)
           
abstract  ChannelHub fetchChannelHub(long companyId)
           
abstract  ChannelHub fetchChannelHub(long companyId, boolean createIfAbsent)
           
abstract  List<NotificationEvent> fetchNotificationEvents(long companyId, long userId, boolean flush)
           
abstract  void flush()
           
abstract  void flush(long companyId)
           
abstract  void flush(long companyId, long userId, long timestamp)
           
abstract  Channel getChannel(long companyId, long userId)
           
abstract  Channel getChannel(long companyId, long userId, boolean createIfAbsent)
           
abstract  ChannelHub getChannelHub(long companyId)
           
abstract  ChannelHub getChannelHub(long companyId, boolean createIfAbsent)
           
abstract  List<NotificationEvent> getNotificationEvents(long companyId, long userId)
           
abstract  List<NotificationEvent> getNotificationEvents(long companyId, long userId, boolean flush)
           
abstract  Collection<Long> getUserIds(long companyId)
           
abstract  void registerChannelListener(long companyId, long userId, ChannelListener channelListener)
           
abstract  void removeTransientNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents)
           
abstract  void removeTransientNotificationEventsByUuid(long companyId, long userId, Collection<String> notificationEventUuids)
           
abstract  void sendNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent)
           
abstract  void sendNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents)
           
abstract  void storeNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent)
           
abstract  void unregisterChannelListener(long companyId, long userId, ChannelListener channelListener)
           
 

Method Detail

confirmDelivery

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

confirmDelivery

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

confirmDelivery

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

confirmDelivery

void confirmDelivery(long companyId,
                     long userId,
                     String notificationEventUuid,
                     boolean archive)
                     throws ChannelException
Throws:
ChannelException

createChannel

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

createChannelHub

ChannelHub createChannelHub(long companyId)
                            throws ChannelException
Throws:
ChannelException

deleteUserNotificiationEvent

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

deleteUserNotificiationEvents

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

destroyChannel

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

destroyChannelHub

void destroyChannelHub(long companyId)
                       throws ChannelException
Throws:
ChannelException

fetchChannelHub

ChannelHub fetchChannelHub(long companyId)
                           throws ChannelException
Throws:
ChannelException

fetchChannelHub

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

fetchNotificationEvents

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

flush

void flush()
           throws ChannelException
Throws:
ChannelException

flush

void flush(long companyId)
           throws ChannelException
Throws:
ChannelException

flush

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

getChannel

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

getChannel

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

getChannelHub

ChannelHub getChannelHub(long companyId)
                         throws ChannelException
Throws:
ChannelException

getChannelHub

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

getNotificationEvents

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

getNotificationEvents

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

getUserIds

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

registerChannelListener

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

removeTransientNotificationEvents

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

removeTransientNotificationEventsByUuid

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

sendNotificationEvent

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

sendNotificationEvents

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

storeNotificationEvent

void storeNotificationEvent(long companyId,
                            long userId,
                            NotificationEvent notificationEvent)
                            throws ChannelException
Throws:
ChannelException

unregisterChannelListener

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

Liferay 6.2.0