public interface SubscriptionService
Modifier and Type | Method and Description |
---|---|
Subscription |
createSubscription(String path,
SubscribableEvent event,
Principal principal,
boolean cascade)
Create a subscription to the specified event on the object represented by the specified path, for the given
principal.
|
Set<Subscription> |
createSubscriptions(String path,
SubscribableEvent event,
Set<Principal> principals,
boolean cascade)
Create a subscription to the specified event on the object represented by the specified path, for the given
principals.
|
Set<SubscribableEvent> |
getSubscribableEvents(String objectType)
Get the subscribable events available for the specified object type.
|
Set<Subscription> |
getSubscriptionsByPathAndEvent(String path,
SubscribableEvent event)
Get the subscriptions for the specified path and specified event.
|
Set<Subscription> |
getSubscriptionsByPrincipal(Principal principal)
Get the subscriptions for the specified principal.
|
Subscription createSubscription(String path, SubscribableEvent event, Principal principal, boolean cascade) throws RepositoryResourceNotFoundException, SubscriptionExistsException
path
- event
- principal
- cascade
- RepositoryResourceNotFoundException
SubscriptionExistsException
Set<Subscription> createSubscriptions(String path, SubscribableEvent event, Set<Principal> principals, boolean cascade) throws RepositoryResourceNotFoundException, SubscriptionExistsException
path
- event
- principals
- cascade
- RepositoryResourceNotFoundException
SubscriptionExistsException
Set<SubscribableEvent> getSubscribableEvents(String objectType)
TypeConstants
.objectType
- Set<Subscription> getSubscriptionsByPrincipal(Principal principal)
principal
- Set<Subscription> getSubscriptionsByPathAndEvent(String path, SubscribableEvent event) throws RepositoryResourceNotFoundException
path
- event
- RepositoryResourceNotFoundException
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA