Package com.day.cq.notification.api
Interface SubscriptionFilter
-
public interface SubscriptionFilter
todo: Task 1) announce availability of event topic (accepts) Task 2) deliver UI event blueprint (SubscriptionInfo) (allows generic event property filtering / matching / config) Task 3) provide implementation-specific filters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accepts(Subscription subscription)
Determines whether the givensubscription
corresponds to the filter criteria of this handler.boolean
accepts(Event event)
Determines whether this subscription filter accepts the givenevent
.EventInfo
getInfo()
Returns the filter criteria.
-
-
-
Method Detail
-
accepts
boolean accepts(Event event)
Determines whether this subscription filter accepts the givenevent
. If it doesn't, this provider should not be used for subscription retrieval.- Parameters:
event
- TheEvent
to check.- Returns:
true
if this provider accepts the event.
-
accepts
boolean accepts(Subscription subscription)
Determines whether the givensubscription
corresponds to the filter criteria of this handler.- Parameters:
subscription
- TheSubscription
to check.- Returns:
true
if the subscription corresponds to the filter criteria.
-
-