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(Authorizable authorizable)
Deprecated.
Use
NotificationUtil#getNotificationNode(String, javax.jcr.Session) instead |
static Node |
getNotificationNode(Authorizable authorizable,
Session s)
Deprecated.
Use
NotificationUtil#getNotificationNode(String, javax.jcr.Session) instead |
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.nullpublic static java.lang.String getChannelName(java.util.Map subscriptionConfig)
subscriptionConfig - The subscription configuration.nullpublic static java.lang.String getSubscriptionType(java.util.Map subscriptionConfig)
subscriptionConfig - The subscription configuration.nullpublic static Node getNotificationNode(Authorizable authorizable) throws RepositoryException
NotificationUtil#getNotificationNode(String, javax.jcr.Session) insteadauthorizable - 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
NotificationUtil#getNotificationNode(String, javax.jcr.Session) insteadauthorizable - The authorizable.s - The session to get the nodeRepositoryException - Upon encountering a repository error getting the notification node.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 - 2018 Adobe Systems Incorporated. All Rights Reserved"