com.liferay.portal.notifications
Class ChannelImpl
java.lang.Object
com.liferay.portal.kernel.notifications.BaseChannelImpl
com.liferay.portal.notifications.ChannelImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.notifications.Channel
public class ChannelImpl
- extends com.liferay.portal.kernel.notifications.BaseChannelImpl
- Author:
- Edward Han, Brian Wing Shun Chan, Jonathan Lee
| Methods inherited from class com.liferay.portal.kernel.notifications.BaseChannelImpl |
cleanUp, close, getCompanyId, getNotificationEvents, getUserId, hasNotificationEvents, notifyChannelListeners, registerChannelListener, setCleanUpInterval, unregisterChannelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelImpl
public ChannelImpl()
ChannelImpl
public ChannelImpl(long companyId,
long usedId)
clone
public com.liferay.portal.kernel.notifications.Channel clone(long companyId,
long userId)
confirmDelivery
public void confirmDelivery(java.util.Collection<java.lang.String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(java.util.Collection<java.lang.String> notificationEventUuids,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(java.lang.String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(java.lang.String notificationEventUuid,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvent
public void deleteUserNotificiationEvent(java.lang.String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvents
public void deleteUserNotificiationEvents(java.util.Collection<java.lang.String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
flush
public void flush()
flush
public void flush(long timestamp)
getNotificationEvents
public java.util.List<com.liferay.portal.kernel.notifications.NotificationEvent> getNotificationEvents(boolean flush)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
init
public void init()
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
removeTransientNotificationEvents
public void removeTransientNotificationEvents(java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
removeTransientNotificationEventsByUuid
public void removeTransientNotificationEventsByUuid(java.util.Collection<java.lang.String> notificationEventUuids)
sendNotificationEvent
public void sendNotificationEvent(com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
sendNotificationEvents
public void sendNotificationEvents(java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
doCleanUp
protected void doCleanUp()
throws java.lang.Exception
- Specified by:
doCleanUp in class com.liferay.portal.kernel.notifications.BaseChannelImpl
- Throws:
java.lang.Exception
doGetNotificationEvents
protected java.util.List<com.liferay.portal.kernel.notifications.NotificationEvent> doGetNotificationEvents(boolean flush)
throws java.lang.Exception
- Throws:
java.lang.Exception
doInit
protected void doInit()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
isRemoveNotificationEvent
protected boolean isRemoveNotificationEvent(com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent,
long currentTime)
storeNotificationEvent
protected void storeNotificationEvent(com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent,
long currentTime)