com.liferay.portal.kernel.notifications.ChannelHub Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.notifications;
import java.util.Collection;
import java.util.List;
/**
* @author Edward Han
*/
public interface ChannelHub {
public void cleanUp() throws ChannelException;
public void cleanUp(long userId) throws ChannelException;
public void confirmDelivery(
long userId, Collection notificationEventUuids)
throws ChannelException;
public void confirmDelivery(
long userId, Collection notificationEventUuids,
boolean archive)
throws ChannelException;
public void confirmDelivery(long userId, String notificationEventUuid)
throws ChannelException;
public void confirmDelivery(
long userId, String notificationEventUuid, boolean archive)
throws ChannelException;
public Channel createChannel(long userId) throws ChannelException;
public void deleteUserNotificiationEvent(
long userId, String notificationEventUuid)
throws ChannelException;
public void deleteUserNotificiationEvents(
long userId, Collection notificationEventUuids)
throws ChannelException;
public void destroy() throws ChannelException;
public Channel destroyChannel(long userId) throws ChannelException;
public Channel fetchChannel(long userId) throws ChannelException;
public Channel fetchChannel(long userId, boolean createIfAbsent)
throws ChannelException;
public List fetchNotificationEvents(long userId)
throws ChannelException;
public List fetchNotificationEvents(
long userId, boolean flush)
throws ChannelException;
public void flush() throws ChannelException;
public void flush(long userId) throws ChannelException;
public void flush(long userId, long timestamp) throws ChannelException;
public Channel getChannel(long userId) throws ChannelException;
public Channel getChannel(long userId, boolean createIfAbsent)
throws ChannelException;
public List getNotificationEvents(long userId)
throws ChannelException;
public List getNotificationEvents(
long userId, boolean flush)
throws ChannelException;
public Collection getUserIds();
public void registerChannelListener(
long userId, ChannelListener channelListener)
throws ChannelException;
public void removeTransientNotificationEvents(
long userId, Collection notificationEvents)
throws ChannelException;
public void removeTransientNotificationEventsByUuid(
long userId, Collection notificationEventUuids)
throws ChannelException;
public void sendNotificationEvent(
long userId, NotificationEvent notificationEvent)
throws ChannelException;
public void sendNotificationEvents(
long userId, Collection notificationEvents)
throws ChannelException;
public void storeNotificationEvent(
long userId, NotificationEvent notificationEvent)
throws ChannelException;
public void unregisterChannelListener(
long userId, ChannelListener channelListener)
throws ChannelException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy