Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.contactlist
Interface ContactListFilter

All Known Subinterfaces:
ContactListSourceFilter
All Known Implementing Classes:
CallHistoryFilter, PresenceFilter, SearchFilter

public interface ContactListFilter

The ContactListFilter is an interface meant to be implemented by modules interested in filtering the contact list. An implementation of this interface should be able to answer if an UIContact or an UIGroup is matching the corresponding filter.

Author:
Yana Stamcheva

Method Summary
 void applyFilter(FilterQuery filterQuery)
          Applies this filter to any interested sources
 boolean isMatching(UIContact uiContact)
          Indicates if the given uiGroup is matching the current filter.
 boolean isMatching(UIGroup uiGroup)
          Indicates if the given uiGroup is matching the current filter.
 

Method Detail

isMatching

boolean isMatching(UIContact uiContact)
Indicates if the given uiGroup is matching the current filter.

Parameters:
uiContact - the UIContact to check
Returns:
true to indicate that the given uiContact matches this filter, false - otherwise

isMatching

boolean isMatching(UIGroup uiGroup)
Indicates if the given uiGroup is matching the current filter.

Parameters:
uiGroup - the UIGroup to check
Returns:
true to indicate that the given uiGroup matches this filter, false - otherwise

applyFilter

void applyFilter(FilterQuery filterQuery)
Applies this filter to any interested sources

Parameters:
filterQuery - the FilterQuery that tracks the results of this filtering

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.