public interface NotificationManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
createSubscription(Authorizable authorizable,
ValueMap configuration)
Deprecated.
|
Channel |
getChannel(java.lang.String type)
Return the channel.
|
PersistableValueMap |
getChannelConfiguration(Authorizable authorizable,
java.util.Map subscriptionConfig)
Return the channel configuration for the subscription.
|
java.util.Iterator<PersistableValueMap> |
getChannelConfigurations(Authorizable authorizable)
Return all channel configurations for a given authorizable.
|
Node |
getNotificationNode(Authorizable authorizable)
Deprecated.
|
Subscription |
getSubscription(java.lang.String type)
Return the subscription.
|
java.util.Iterator<PersistableValueMap> |
getSubscriptionConfigurations(Authorizable authorizable)
Return all subscriptions for a given authorizable.
|
boolean |
removeSubscription(Authorizable authorizable,
PersistableValueMap configuration)
Deprecated.
|
boolean |
subscribe(Authorizable authorizable,
java.util.Map<java.lang.String,java.lang.Object> configuration)
Create a new subscription for the authorizable.
|
boolean |
unsubscribe(Authorizable authorizable,
java.lang.String path)
Remove all subscriptions matching the given
path. |
java.util.Iterator<PersistableValueMap> getSubscriptionConfigurations(Authorizable authorizable)
authorizable - The authorizable.java.util.Iterator<PersistableValueMap> getChannelConfigurations(Authorizable authorizable)
authorizable - The authorizable.Channel getChannel(java.lang.String type)
type - The channel type.nullSubscription getSubscription(java.lang.String type)
type - The subscription type.nullPersistableValueMap getChannelConfiguration(Authorizable authorizable, java.util.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, java.util.Map<java.lang.String,java.lang.Object> configuration)
authorizable - The authorizable.configuration - The configuration.true if the configuration could be created, false otherwise.boolean unsubscribe(Authorizable authorizable, java.lang.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.