|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubscriptionService
Service that provides a way to create and retrieve Subscriptions for subscribable events in the repository.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |