com.liferay.portal.notifications
Class ChannelHubManagerImpl
java.lang.Object
com.liferay.portal.notifications.ChannelHubManagerImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.notifications.ChannelHubManager
public class ChannelHubManagerImpl
- extends Object
- implements com.liferay.portal.kernel.notifications.ChannelHubManager
|
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)
|
com.liferay.portal.kernel.notifications.Channel |
createChannel(long companyId,
long userId)
|
com.liferay.portal.kernel.notifications.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)
|
com.liferay.portal.kernel.notifications.ChannelHub |
fetchChannelHub(long companyId)
|
com.liferay.portal.kernel.notifications.ChannelHub |
fetchChannelHub(long companyId,
boolean createIfAbsent)
|
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
fetchNotificationEvents(long companyId,
long userId,
boolean flush)
|
void |
flush()
|
void |
flush(long companyId)
|
void |
flush(long companyId,
long userId,
long timestamp)
|
com.liferay.portal.kernel.notifications.Channel |
getChannel(long companyId,
long userId)
|
com.liferay.portal.kernel.notifications.Channel |
getChannel(long companyId,
long userId,
boolean createIfAbsent)
|
com.liferay.portal.kernel.notifications.ChannelHub |
getChannelHub(long companyId)
|
com.liferay.portal.kernel.notifications.ChannelHub |
getChannelHub(long companyId,
boolean createIfAbsent)
|
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
getNotificationEvents(long companyId,
long userId)
|
List<com.liferay.portal.kernel.notifications.NotificationEvent> |
getNotificationEvents(long companyId,
long userId,
boolean flush)
|
Collection<Long> |
getUserIds(long companyId)
|
void |
registerChannelListener(long companyId,
long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener)
|
void |
removeTransientNotificationEvents(long companyId,
long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
|
void |
removeTransientNotificationEventsByUuid(long companyId,
long userId,
Collection<String> notificationEventUuids)
|
void |
sendNotificationEvent(long companyId,
long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
|
void |
sendNotificationEvents(long companyId,
long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
|
void |
storeNotificationEvent(long companyId,
long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
|
void |
unregisterChannelListener(long companyId,
long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelHubManagerImpl
public ChannelHubManagerImpl()
confirmDelivery
public void confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(long companyId,
long userId,
String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(long companyId,
long userId,
String notificationEventUuid,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
confirmDelivery in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
createChannel
public com.liferay.portal.kernel.notifications.Channel createChannel(long companyId,
long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
createChannel in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
createChannelHub
public com.liferay.portal.kernel.notifications.ChannelHub createChannelHub(long companyId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
createChannelHub in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvent
public void deleteUserNotificiationEvent(long companyId,
long userId,
String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
deleteUserNotificiationEvent in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvents
public void deleteUserNotificiationEvents(long companyId,
long userId,
Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
deleteUserNotificiationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
destroyChannel
public void destroyChannel(long companyId,
long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
destroyChannel in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
destroyChannelHub
public void destroyChannelHub(long companyId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
destroyChannelHub in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
fetchChannelHub
public com.liferay.portal.kernel.notifications.ChannelHub fetchChannelHub(long companyId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
fetchChannelHub in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
fetchChannelHub
public com.liferay.portal.kernel.notifications.ChannelHub fetchChannelHub(long companyId,
boolean createIfAbsent)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
fetchChannelHub in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
fetchNotificationEvents
public List<com.liferay.portal.kernel.notifications.NotificationEvent> fetchNotificationEvents(long companyId,
long userId,
boolean flush)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
fetchNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
flush
public void flush()
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
flush in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
flush
public void flush(long companyId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
flush in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
flush
public void flush(long companyId,
long userId,
long timestamp)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
flush in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getChannel
public com.liferay.portal.kernel.notifications.Channel getChannel(long companyId,
long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getChannel in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getChannel
public com.liferay.portal.kernel.notifications.Channel getChannel(long companyId,
long userId,
boolean createIfAbsent)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getChannel in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getChannelHub
public com.liferay.portal.kernel.notifications.ChannelHub getChannelHub(long companyId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getChannelHub in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getChannelHub
public com.liferay.portal.kernel.notifications.ChannelHub getChannelHub(long companyId,
boolean createIfAbsent)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getChannelHub in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getNotificationEvents
public List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(long companyId,
long userId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getNotificationEvents
public List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(long companyId,
long userId,
boolean flush)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
getUserIds
public Collection<Long> getUserIds(long companyId)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
getUserIds in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
registerChannelListener
public void registerChannelListener(long companyId,
long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
registerChannelListener in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEvents
public void removeTransientNotificationEvents(long companyId,
long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
removeTransientNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEventsByUuid
public void removeTransientNotificationEventsByUuid(long companyId,
long userId,
Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
removeTransientNotificationEventsByUuid in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
sendNotificationEvent
public void sendNotificationEvent(long companyId,
long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
sendNotificationEvent in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
sendNotificationEvents
public void sendNotificationEvents(long companyId,
long userId,
Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
sendNotificationEvents in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
storeNotificationEvent
public void storeNotificationEvent(long companyId,
long userId,
com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
storeNotificationEvent in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
unregisterChannelListener
public void unregisterChannelListener(long companyId,
long userId,
com.liferay.portal.kernel.notifications.ChannelListener channelListener)
throws com.liferay.portal.kernel.notifications.ChannelException
- Specified by:
unregisterChannelListener in interface com.liferay.portal.kernel.notifications.ChannelHubManager
- Throws:
com.liferay.portal.kernel.notifications.ChannelException