Package org.exoplatform.push.channel
Class PushChannel
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.api.notification.channel.AbstractChannel
-
- org.exoplatform.push.channel.PushChannel
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class PushChannel extends org.exoplatform.commons.api.notification.channel.AbstractChannel
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDstatic StringLOG_OPERATION_NAMEstatic StringLOG_SERVICE_NAMEStringnotificationTitle
-
Constructor Summary
Constructors Constructor Description PushChannel(MessagePublisher messagePublisher, DeviceService deviceService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(org.exoplatform.commons.api.notification.NotificationContext ctx, String userId)StringgetId()org.exoplatform.commons.api.notification.model.ChannelKeygetKey()protected org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuildergetTemplateBuilderInChannel(org.exoplatform.commons.api.notification.model.PluginKey pluginKey)StringgetTemplateFilePath(org.exoplatform.commons.api.notification.model.PluginKey key)booleanhasTemplateBuilder(org.exoplatform.commons.api.notification.model.PluginKey key)voidregisterTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider)-
Methods inherited from class org.exoplatform.commons.api.notification.channel.AbstractChannel
dispatch, end, getLifecycle, getTemplateBuilder, start
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
LOG_SERVICE_NAME
public static final String LOG_SERVICE_NAME
- See Also:
- Constant Field Values
-
LOG_OPERATION_NAME
public static final String LOG_OPERATION_NAME
- See Also:
- Constant Field Values
-
notificationTitle
public String notificationTitle
-
-
Constructor Detail
-
PushChannel
public PushChannel(MessagePublisher messagePublisher, DeviceService deviceService)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
getKey
public org.exoplatform.commons.api.notification.model.ChannelKey getKey()
- Specified by:
getKeyin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
dispatch
public void dispatch(org.exoplatform.commons.api.notification.NotificationContext ctx, String userId)- Specified by:
dispatchin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
registerTemplateProvider
public void registerTemplateProvider(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider)
- Specified by:
registerTemplateProviderin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
getTemplateFilePath
public String getTemplateFilePath(org.exoplatform.commons.api.notification.model.PluginKey key)
- Overrides:
getTemplateFilePathin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
hasTemplateBuilder
public boolean hasTemplateBuilder(org.exoplatform.commons.api.notification.model.PluginKey key)
- Overrides:
hasTemplateBuilderin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
getTemplateBuilderInChannel
protected org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder getTemplateBuilderInChannel(org.exoplatform.commons.api.notification.model.PluginKey pluginKey)
- Specified by:
getTemplateBuilderInChannelin classorg.exoplatform.commons.api.notification.channel.AbstractChannel
-
-