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