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, wait
deliver, getId, getUserDescription, isImmediate
public boolean accept(java.lang.String resourceType)
Channel
public java.util.Map<java.lang.String,java.lang.Object> getConfiguration()
Channel
getConfiguration
in interface Channel
public void performBeforeDeliver(Notification notification, java.lang.String userId, Session session, java.util.Map<java.lang.String,java.lang.Object> configuration) throws ChannelException
Channel
Channel.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 Channel
notification
- the target Notification
userId
- 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
Channel
Channel.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 Channel
notification
- the target Notification
userId
- 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 - 2020 Adobe. All Rights Reserved