public interface NotificationManager
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel(String type)
Return the channel.
|
PersistableValueMap |
getChannelConfiguration(Authorizable authorizable,
Map subscriptionConfig,
Session session)
Return the channel configuration for the subscription.
|
Iterator<PersistableValueMap> |
getChannelConfigurations(Authorizable authorizable,
Session session)
Return all channel configurations for a given authorizable.
|
Subscription |
getSubscription(String type)
Return the subscription.
|
Iterator<PersistableValueMap> |
getSubscriptionConfigurations(Authorizable authorizable,
Session session)
Return all subscriptions for a given authorizable.
|
boolean |
subscribe(Authorizable authorizable,
Map<String,Object> configuration,
Session session)
Create a new subscription for the authorizable.
|
boolean |
unsubscribe(Authorizable authorizable,
String path,
Session s)
Remove all subscriptions matching the given
path. |
Iterator<PersistableValueMap> getSubscriptionConfigurations(Authorizable authorizable, Session session)
authorizable - The authorizable.Iterator<PersistableValueMap> getChannelConfigurations(Authorizable authorizable, Session session)
authorizable - The authorizable.Channel getChannel(String type)
type - The channel type.nullSubscription getSubscription(String type)
type - The subscription type.nullPersistableValueMap getChannelConfiguration(Authorizable authorizable, Map subscriptionConfig, Session session)
authorizable - The authorizable.subscriptionConfig - The subscription configuration.nullboolean subscribe(Authorizable authorizable, Map<String,Object> configuration, Session session)
authorizable - The authorizable.configuration - The configuration.session - User's session.true if the configuration could be created, false otherwise.boolean unsubscribe(Authorizable authorizable, String path, Session s)
path. The path denotes the item
the user originally subscribed for.authorizable - The authorizable.path - The path of the subscription to remove.session - User's session.true if the configuration could be removed, false otherwise."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"