de.novanic.eventservice.event.listener.unlisten
Class UnlistenEventFilter

java.lang.Object
  extended by de.novanic.eventservice.event.listener.unlisten.UnlistenEventFilter
All Implemented Interfaces:
EventFilter, java.io.Serializable

public class UnlistenEventFilter
extends java.lang.Object
implements EventFilter

The UnlistenEventFilter filters all UnlistenEvent instances by default, which doesn't match the registered domains of the user/client for report reasons.

Author:
sstrohschein
Date: 16.08.2009
Time: 17:59:36
See Also:
Serialized Form

Constructor Summary
UnlistenEventFilter(ListenDomainAccessor aListenDomainAccessor, java.lang.String aUserId, UnlistenEventListener.Scope anUnlistenScope)
           
 
Method Summary
 boolean match(Event anEvent)
          Filters all UnlistenEvent instances which doesn't match the registered domains for the current user/client or which are sent on a other scope (UnlistenEventListener.Scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnlistenEventFilter

public UnlistenEventFilter(ListenDomainAccessor aListenDomainAccessor,
                           java.lang.String aUserId,
                           UnlistenEventListener.Scope anUnlistenScope)
Method Detail

match

public boolean match(Event anEvent)
Filters all UnlistenEvent instances which doesn't match the registered domains for the current user/client or which are sent on a other scope (UnlistenEventListener.Scope.

Specified by:
match in interface EventFilter
Parameters:
anEvent - event to check
Returns:
true when the event should be filtered, otherwise false