public abstract class AbstractChannel<T extends ChannelExtension> extends java.lang.Object implements Channel
CHANNEL_DESCRIPTION| Constructor and Description |
|---|
AbstractChannel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String resourceType)
Check whether the specified resource type is supported by this channel
|
java.util.Map<java.lang.String,java.lang.Object> |
getConfiguration()
Get the channel configuration
|
void |
performAfterDeliver(Notification notification,
java.lang.String userId,
Session session,
java.util.Map<java.lang.String,java.lang.Object> configuration)
This method is being called after a channel performs its
Channel.deliver(com.adobe.cq.social.notifications.api.Notification, java.lang.String) operation. |
void |
performBeforeDeliver(Notification notification,
java.lang.String userId,
Session session,
java.util.Map<java.lang.String,java.lang.Object> configuration)
This method is being called before a channel performs its
Channel.deliver(com.adobe.cq.social.notifications.api.Notification, java.lang.String) operation. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeliver, getId, getUserDescription, isImmediatepublic boolean accept(java.lang.String resourceType)
Channelpublic java.util.Map<java.lang.String,java.lang.Object> getConfiguration()
ChannelgetConfiguration in interface Channelpublic void performBeforeDeliver(Notification notification, java.lang.String userId, Session session, java.util.Map<java.lang.String,java.lang.Object> configuration) throws ChannelException
ChannelChannel.deliver(com.adobe.cq.social.notifications.api.Notification, java.lang.String) operation. This is to allow
any channel extension to perform any delivery customization.performBeforeDeliver in interface Channelnotification - the target NotificationuserId - the user whom to be notified.session - the session that is being used to perform the operation.configuration - the channel configuration.ChannelException - thrown if any one of the operations extensions throws an exception. This aborts the
operations.public void performAfterDeliver(Notification notification, java.lang.String userId, Session session, java.util.Map<java.lang.String,java.lang.Object> configuration) throws ChannelException
ChannelChannel.deliver(com.adobe.cq.social.notifications.api.Notification, java.lang.String) operation. This is to allow
any channel extension to perform any delivery customization.performAfterDeliver in interface Channelnotification - the target NotificationuserId - the user whom to be notified.session - the session that is being used to perform the operation.configuration - the channel configuration.ChannelException - thrown if any one of the operations extensions throws an exception. This aborts the
operations.Copyright © 2010 - 2023 Adobe. All Rights Reserved