Package com.day.cq.notification.api
Interface SubscriptionFilter
-
public interface SubscriptionFiltertodo: 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 booleanaccepts(Subscription subscription)Determines whether the givensubscriptioncorresponds to the filter criteria of this handler.booleanaccepts(Event event)Determines whether this subscription filter accepts the givenevent.EventInfogetInfo()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- TheEventto check.- Returns:
trueif this provider accepts the event.
-
accepts
boolean accepts(Subscription subscription)
Determines whether the givensubscriptioncorresponds to the filter criteria of this handler.- Parameters:
subscription- TheSubscriptionto check.- Returns:
trueif the subscription corresponds to the filter criteria.
-
-