public abstract class NotificationUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_CHANNEL_NAME
The configuration property holding the channel type.
|
static java.lang.String |
PROPERTY_CHANNEL_TYPE
The configuration property holding the channel type.
|
static java.lang.String |
PROPERTY_SUBSCRIPTION_TYPE
The configuration property holding the subscription type.
|
Constructor and Description |
---|
NotificationUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getChannelName(java.util.Map subscriptionConfig)
Return the channel name for the config.
|
static java.lang.String |
getChannelType(java.util.Map channelConfig)
Return the channel type for the config.
|
static Node |
getNotificationNode(java.lang.String authorizablePath,
Session s)
Return the node for the settings of the notification module of an authorizable.
|
static java.lang.String |
getSubscriptionType(java.util.Map subscriptionConfig)
Return the subscription type for the config.
|
public static final java.lang.String PROPERTY_CHANNEL_TYPE
public static final java.lang.String PROPERTY_CHANNEL_NAME
public static final java.lang.String PROPERTY_SUBSCRIPTION_TYPE
public static java.lang.String getChannelType(java.util.Map channelConfig)
channelConfig
- The channel configuration.null
public static java.lang.String getChannelName(java.util.Map subscriptionConfig)
subscriptionConfig
- The subscription configuration.null
public static java.lang.String getSubscriptionType(java.util.Map subscriptionConfig)
subscriptionConfig
- The subscription configuration.null
public static Node getNotificationNode(java.lang.String authorizablePath, Session s) throws RepositoryException
authorizablePath
- The path of the authorizable.s
- The session to get the nodeRepositoryException
- Upon encountering a repository error getting the notification node."Copyright © 2010 - 2019 Adobe Systems Incorporated. All Rights Reserved"