public abstract class AbstractChannel
extends org.exoplatform.container.component.BaseComponentPlugin
| Constructor and Description |
|---|
AbstractChannel()
Using the default life-cycle
|
AbstractChannel(AbstractNotificationLifecycle lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dispatch(NotificationContext ctx,
String userId)
Process the notification information for the specified user.
|
void |
dispatch(NotificationInfo notifInfo)
Process the notification info
|
void |
end() |
abstract String |
getId()
Gets ChannelId
|
abstract ChannelKey |
getKey()
Gets Channel Key
|
AbstractNotificationLifecycle |
getLifecycle()
Gets the lifecycle what assigned to the channel
|
AbstractTemplateBuilder |
getTemplateBuilder(PluginKey key)
Gets the template builder by the specified PluginKey
|
protected abstract AbstractTemplateBuilder |
getTemplateBuilderInChannel(PluginKey key) |
String |
getTemplateFilePath(PluginKey key)
Gets the template by the specified pluginId
|
boolean |
hasTemplateBuilder(PluginKey key)
Has the template builder of the plugin and the channel
|
abstract void |
registerTemplateProvider(TemplateProvider provider)
Register the template provider to the channel.
|
void |
start()
Initialize something when starts to work the channel
|
public AbstractChannel(AbstractNotificationLifecycle lifecycle)
public AbstractChannel()
public void start()
public void end()
public abstract String getId()
public abstract ChannelKey getKey()
public AbstractNotificationLifecycle getLifecycle()
public abstract void dispatch(NotificationContext ctx, String userId)
ctx - The NotificationContextuserId - the user will be received the message.public void dispatch(NotificationInfo notifInfo)
notifInfo - the notification informationpublic abstract void registerTemplateProvider(TemplateProvider provider)
provider - public String getTemplateFilePath(PluginKey key)
key - the plugin keypublic boolean hasTemplateBuilder(PluginKey key)
key - the plugin keypublic AbstractTemplateBuilder getTemplateBuilder(PluginKey key)
key - the PluginKeyprotected abstract AbstractTemplateBuilder getTemplateBuilderInChannel(PluginKey key)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.