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
| Fields inherited from class com.liferay.portal.kernel.notifications.BaseChannelImpl |
lock |
| 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)
confirmDelivery
public void confirmDelivery(Collection<String> notificationEventUuids)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(Collection<String> notificationEventUuids,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
confirmDelivery
public void confirmDelivery(String notificationEventUuid,
boolean archive)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvent
public void deleteUserNotificiationEvent(String notificationEventUuid)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
deleteUserNotificiationEvents
public void deleteUserNotificiationEvents(Collection<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 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(Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
removeTransientNotificationEventsByUuid
public void removeTransientNotificationEventsByUuid(Collection<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(Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
throws com.liferay.portal.kernel.notifications.ChannelException
- Throws:
com.liferay.portal.kernel.notifications.ChannelException
storeNotificationEvent
public void storeNotificationEvent(com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent,
long currentTime)
doCleanUp
protected void doCleanUp()
throws Exception
- Specified by:
doCleanUp in class com.liferay.portal.kernel.notifications.BaseChannelImpl
- Throws:
Exception
doGetNotificationEvents
protected List<com.liferay.portal.kernel.notifications.NotificationEvent> doGetNotificationEvents(boolean flush)
throws Exception
- Throws:
Exception
doInit
protected void doInit()
doStoreNotificationEvent
protected void doStoreNotificationEvent(com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent,
long currentTime)
isRemoveNotificationEvent
protected boolean isRemoveNotificationEvent(com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent,
long currentTime)