Liferay 6.1.2-ce-ga3

com.liferay.portal.notifications
Class ChannelHubManagerImpl

java.lang.Object
  extended by com.liferay.portal.notifications.ChannelHubManagerImpl
All Implemented Interfaces:
ChannelHubManager

public class ChannelHubManagerImpl
extends Object
implements ChannelHubManager


Constructor Summary
ChannelHubManagerImpl()
           
 
Method Summary
 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)
           
 Channel createChannel(long companyId, long userId)
           
 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)
           
 ChannelHub fetchChannelHub(long companyId)
           
 ChannelHub fetchChannelHub(long companyId, boolean createIfAbsent)
           
 List<NotificationEvent> fetchNotificationEvents(long companyId, long userId, boolean flush)
           
 void flush()
           
 void flush(long companyId)
           
 void flush(long companyId, long userId, long timestamp)
           
 Channel getChannel(long companyId, long userId)
           
 Channel getChannel(long companyId, long userId, boolean createIfAbsent)
           
 ChannelHub getChannelHub(long companyId)
           
 ChannelHub getChannelHub(long companyId, boolean createIfAbsent)
           
 List<NotificationEvent> getNotificationEvents(long companyId, long userId)
           
 List<NotificationEvent> getNotificationEvents(long companyId, long userId, boolean flush)
           
 Collection<Long> getUserIds(long companyId)
           
 void registerChannelListener(long companyId, long userId, ChannelListener channelListener)
           
 void removeTransientNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents)
           
 void removeTransientNotificationEventsByUuid(long companyId, long userId, Collection<String> notificationEventUuids)
           
 void sendNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent)
           
 void sendNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents)
           
 void setChannelHubPrototype(ChannelHub channelHub)
           
 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

ChannelHubManagerImpl

public ChannelHubManagerImpl()
Method Detail

confirmDelivery

public void confirmDelivery(long companyId,
                            long userId,
                            Collection<String> notificationEventUuids)
                     throws ChannelException
Specified by:
confirmDelivery in interface ChannelHubManager
Throws:
ChannelException

confirmDelivery

public void confirmDelivery(long companyId,
                            long userId,
                            Collection<String> notificationEventUuids,
                            boolean archive)
                     throws ChannelException
Specified by:
confirmDelivery in interface ChannelHubManager
Throws:
ChannelException

confirmDelivery

public void confirmDelivery(long companyId,
                            long userId,
                            String notificationEventUuid)
                     throws ChannelException
Specified by:
confirmDelivery in interface ChannelHubManager
Throws:
ChannelException

confirmDelivery

public void confirmDelivery(long companyId,
                            long userId,
                            String notificationEventUuid,
                            boolean archive)
                     throws ChannelException
Specified by:
confirmDelivery in interface ChannelHubManager
Throws:
ChannelException

createChannel

public Channel createChannel(long companyId,
                             long userId)
                      throws ChannelException
Specified by:
createChannel in interface ChannelHubManager
Throws:
ChannelException

createChannelHub

public ChannelHub createChannelHub(long companyId)
                            throws ChannelException
Specified by:
createChannelHub in interface ChannelHubManager
Throws:
ChannelException

deleteUserNotificiationEvent

public void deleteUserNotificiationEvent(long companyId,
                                         long userId,
                                         String notificationEventUuid)
                                  throws ChannelException
Specified by:
deleteUserNotificiationEvent in interface ChannelHubManager
Throws:
ChannelException

deleteUserNotificiationEvents

public void deleteUserNotificiationEvents(long companyId,
                                          long userId,
                                          Collection<String> notificationEventUuids)
                                   throws ChannelException
Specified by:
deleteUserNotificiationEvents in interface ChannelHubManager
Throws:
ChannelException

destroyChannel

public void destroyChannel(long companyId,
                           long userId)
                    throws ChannelException
Specified by:
destroyChannel in interface ChannelHubManager
Throws:
ChannelException

destroyChannelHub

public void destroyChannelHub(long companyId)
                       throws ChannelException
Specified by:
destroyChannelHub in interface ChannelHubManager
Throws:
ChannelException

fetchChannelHub

public ChannelHub fetchChannelHub(long companyId)
                           throws ChannelException
Specified by:
fetchChannelHub in interface ChannelHubManager
Throws:
ChannelException

fetchChannelHub

public ChannelHub fetchChannelHub(long companyId,
                                  boolean createIfAbsent)
                           throws ChannelException
Specified by:
fetchChannelHub in interface ChannelHubManager
Throws:
ChannelException

fetchNotificationEvents

public List<NotificationEvent> fetchNotificationEvents(long companyId,
                                                       long userId,
                                                       boolean flush)
                                                throws ChannelException
Specified by:
fetchNotificationEvents in interface ChannelHubManager
Throws:
ChannelException

flush

public void flush()
           throws ChannelException
Specified by:
flush in interface ChannelHubManager
Throws:
ChannelException

flush

public void flush(long companyId)
           throws ChannelException
Specified by:
flush in interface ChannelHubManager
Throws:
ChannelException

flush

public void flush(long companyId,
                  long userId,
                  long timestamp)
           throws ChannelException
Specified by:
flush in interface ChannelHubManager
Throws:
ChannelException

getChannel

public Channel getChannel(long companyId,
                          long userId)
                   throws ChannelException
Specified by:
getChannel in interface ChannelHubManager
Throws:
ChannelException

getChannel

public Channel getChannel(long companyId,
                          long userId,
                          boolean createIfAbsent)
                   throws ChannelException
Specified by:
getChannel in interface ChannelHubManager
Throws:
ChannelException

getChannelHub

public ChannelHub getChannelHub(long companyId)
                         throws ChannelException
Specified by:
getChannelHub in interface ChannelHubManager
Throws:
ChannelException

getChannelHub

public ChannelHub getChannelHub(long companyId,
                                boolean createIfAbsent)
                         throws ChannelException
Specified by:
getChannelHub in interface ChannelHubManager
Throws:
ChannelException

getNotificationEvents

public List<NotificationEvent> getNotificationEvents(long companyId,
                                                     long userId)
                                              throws ChannelException
Specified by:
getNotificationEvents in interface ChannelHubManager
Throws:
ChannelException

getNotificationEvents

public List<NotificationEvent> getNotificationEvents(long companyId,
                                                     long userId,
                                                     boolean flush)
                                              throws ChannelException
Specified by:
getNotificationEvents in interface ChannelHubManager
Throws:
ChannelException

getUserIds

public Collection<Long> getUserIds(long companyId)
                            throws ChannelException
Specified by:
getUserIds in interface ChannelHubManager
Throws:
ChannelException

registerChannelListener

public void registerChannelListener(long companyId,
                                    long userId,
                                    ChannelListener channelListener)
                             throws ChannelException
Specified by:
registerChannelListener in interface ChannelHubManager
Throws:
ChannelException

removeTransientNotificationEvents

public void removeTransientNotificationEvents(long companyId,
                                              long userId,
                                              Collection<NotificationEvent> notificationEvents)
                                       throws ChannelException
Specified by:
removeTransientNotificationEvents in interface ChannelHubManager
Throws:
ChannelException

removeTransientNotificationEventsByUuid

public void removeTransientNotificationEventsByUuid(long companyId,
                                                    long userId,
                                                    Collection<String> notificationEventUuids)
                                             throws ChannelException
Specified by:
removeTransientNotificationEventsByUuid in interface ChannelHubManager
Throws:
ChannelException

sendNotificationEvent

public void sendNotificationEvent(long companyId,
                                  long userId,
                                  NotificationEvent notificationEvent)
                           throws ChannelException
Specified by:
sendNotificationEvent in interface ChannelHubManager
Throws:
ChannelException

sendNotificationEvents

public void sendNotificationEvents(long companyId,
                                   long userId,
                                   Collection<NotificationEvent> notificationEvents)
                            throws ChannelException
Specified by:
sendNotificationEvents in interface ChannelHubManager
Throws:
ChannelException

setChannelHubPrototype

public void setChannelHubPrototype(ChannelHub channelHub)

unregisterChannelListener

public void unregisterChannelListener(long companyId,
                                      long userId,
                                      ChannelListener channelListener)
                               throws ChannelException
Specified by:
unregisterChannelListener in interface ChannelHubManager
Throws:
ChannelException

Liferay 6.1.2-ce-ga3