com.liferay.portal.notifications
Class ChannelImpl
java.lang.Object
com.liferay.portal.kernel.notifications.BaseChannelImpl
com.liferay.portal.notifications.ChannelImpl
- All Implemented Interfaces:
- Channel
public class ChannelImpl
- extends BaseChannelImpl
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 Channel clone(long companyId,
long userId)
confirmDelivery
public void confirmDelivery(Collection<String> notificationEventUuids)
throws ChannelException
- Throws:
ChannelException
confirmDelivery
public void confirmDelivery(Collection<String> notificationEventUuids,
boolean archive)
throws ChannelException
- Throws:
ChannelException
confirmDelivery
public void confirmDelivery(String notificationEventUuid)
throws ChannelException
- Throws:
ChannelException
confirmDelivery
public void confirmDelivery(String notificationEventUuid,
boolean archive)
throws ChannelException
- Throws:
ChannelException
deleteUserNotificiationEvent
public void deleteUserNotificiationEvent(String notificationEventUuid)
throws ChannelException
- Throws:
ChannelException
deleteUserNotificiationEvents
public void deleteUserNotificiationEvents(Collection<String> notificationEventUuids)
throws ChannelException
- Throws:
ChannelException
flush
public void flush()
flush
public void flush(long timestamp)
getNotificationEvents
public List<NotificationEvent> getNotificationEvents(boolean flush)
throws ChannelException
- Throws:
ChannelException
init
public void init()
throws ChannelException
- Throws:
ChannelException
removeTransientNotificationEvents
public void removeTransientNotificationEvents(Collection<NotificationEvent> notificationEvents)
removeTransientNotificationEventsByUuid
public void removeTransientNotificationEventsByUuid(Collection<String> notificationEventUuids)
sendNotificationEvent
public void sendNotificationEvent(NotificationEvent notificationEvent)
throws ChannelException
- Throws:
ChannelException
sendNotificationEvents
public void sendNotificationEvents(Collection<NotificationEvent> notificationEvents)
throws ChannelException
- Throws:
ChannelException
doCleanUp
protected void doCleanUp()
throws Exception
- Specified by:
doCleanUp
in class BaseChannelImpl
- Throws:
Exception
doGetNotificationEvents
protected List<NotificationEvent> doGetNotificationEvents(boolean flush)
throws Exception
- Throws:
Exception
doInit
protected void doInit()
throws SystemException
- Throws:
SystemException
isRemoveNotificationEvent
protected boolean isRemoveNotificationEvent(NotificationEvent notificationEvent,
long currentTime)
storeNotificationEvent
protected void storeNotificationEvent(NotificationEvent notificationEvent,
long currentTime)