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 Type
    Method
    Description
    boolean
    accepts(Subscription subscription)
    Determines whether the given subscription corresponds to the filter criteria of this handler.
    boolean
    accepts(Event event)
    Determines whether this subscription filter accepts the given event.
    Returns the filter criteria.
  • Method Details

    • accepts

      boolean accepts(Event event)
      Determines whether this subscription filter accepts the given event. If it doesn't, this provider should not be used for subscription retrieval.
      Parameters:
      event - The Event to check.
      Returns:
      true if this provider accepts the event.
    • accepts

      boolean accepts(Subscription subscription)
      Determines whether the given subscription corresponds to the filter criteria of this handler.
      Parameters:
      subscription - The Subscription to check.
      Returns:
      true if the subscription corresponds to the filter criteria.
    • getInfo

      EventInfo getInfo()
      Returns the filter criteria.
      Returns:
      A EventInfo object.