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
Modifier and TypeMethodDescriptionbooleanaccepts(Subscription subscription) Determines whether the givensubscriptioncorresponds to the filter criteria of this handler.booleanDetermines whether this subscription filter accepts the givenevent.getInfo()Returns the filter criteria.
-
Method Details
-
accepts
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
Determines whether the givensubscriptioncorresponds to the filter criteria of this handler.- Parameters:
subscription- TheSubscriptionto check.- Returns:
trueif the subscription corresponds to the filter criteria.
-
getInfo
EventInfo getInfo()Returns the filter criteria.- Returns:
- A
EventInfoobject.
-