public interface NotificationManager
Modifier and Type | Method and Description |
---|---|
boolean |
createSubscription(Authorizable authorizable,
ValueMap configuration)
Deprecated.
|
Channel |
getChannel(String type)
Return the channel.
|
PersistableValueMap |
getChannelConfiguration(Authorizable authorizable,
Map subscriptionConfig)
Return the channel configuration for the subscription.
|
Iterator<PersistableValueMap> |
getChannelConfigurations(Authorizable authorizable)
Return all channel configurations for a given authorizable.
|
Node |
getNotificationNode(Authorizable authorizable)
Deprecated.
|
Subscription |
getSubscription(String type)
Return the subscription.
|
Iterator<PersistableValueMap> |
getSubscriptionConfigurations(Authorizable authorizable)
Return all subscriptions for a given authorizable.
|
boolean |
removeSubscription(Authorizable authorizable,
PersistableValueMap configuration)
Deprecated.
|
boolean |
subscribe(Authorizable authorizable,
Map<String,Object> configuration)
Create a new subscription for the authorizable.
|
boolean |
unsubscribe(Authorizable authorizable,
String path)
Remove all subscriptions matching the given
path . |
Iterator<PersistableValueMap> getSubscriptionConfigurations(Authorizable authorizable)
authorizable
- The authorizable.Iterator<PersistableValueMap> getChannelConfigurations(Authorizable authorizable)
authorizable
- The authorizable.Channel getChannel(String type)
type
- The channel type.null
Subscription getSubscription(String type)
type
- The subscription type.null
PersistableValueMap getChannelConfiguration(Authorizable authorizable, Map subscriptionConfig)
authorizable
- The authorizable.subscriptionConfig
- The subscription configuration.null
@Deprecated Node getNotificationNode(Authorizable authorizable) throws RepositoryException
NotificationUtil.getNotificationNode(Authorizable)
insteadauthorizable
- The authorizable.RepositoryException
- Upon encountering a repository error getting the notification node.@Deprecated boolean createSubscription(Authorizable authorizable, ValueMap configuration)
subscribe(com.day.cq.security.Authorizable, java.util.Map)
insteadauthorizable
- The authorizable.configuration
- The configuration.true
if the configuration could be created, false
otherwise.@Deprecated boolean removeSubscription(Authorizable authorizable, PersistableValueMap configuration)
unsubscribe(com.day.cq.security.Authorizable, String)
instead.authorizable
- The authorizable.configuration
- The configuration.true
if the configuration could be removed, false
otherwise.boolean subscribe(Authorizable authorizable, Map<String,Object> configuration)
authorizable
- The authorizable.configuration
- The configuration.true
if the configuration could be created, false
otherwise.boolean unsubscribe(Authorizable authorizable, String path)
path
. The path
denotes the item
the user originally subscribed for.authorizable
- The authorizable.path
- The path of the subscription to remove.true
if the configuration could be removed, false
otherwise."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"