net.java.sip.communicator.service.contactsource
Interface ExtendedContactSourceService
- All Superinterfaces:
- ContactSourceService
- All Known Implementing Classes:
- AsyncContactSourceService, GoogleContactsSourceService, LdapContactSourceService, MacOSXAddrBookContactSourceService, MsOutlookAddrBookContactSourceService
public interface ExtendedContactSourceService
- extends ContactSourceService
The ExtendedContactSourceService as its name states it, extends the
ContactSourceService in order to provide the possibility to query
a contact source by specifying a given Pattern. This interface is
meant to be implemented by contact sources, where it is possible to match
source results directly through a given Pattern, i.e. by using:
Matcher matcher = pattern.matcher(myString);
if(matcher.find())
....
The advantages of passing a Pattern over a String are that
a Pattern can use a predefined regular expression and
can define certain properties like Pattern.CASE_INSENSITIVE,
Pattern.UNICODE_CASE, etc., which could be important for the search.
- Author:
- Yana Stamcheva
queryContactSource
ContactQuery queryContactSource(Pattern queryPattern)
- Queries this search source for the given searchPattern.
- Parameters:
queryPattern - the pattern to search for
- Returns:
- the created query
getPhoneNumberPrefix
String getPhoneNumberPrefix()
- Returns the global phone number prefix to be used when calling contacts
from this contact source.
- Returns:
- the global phone number prefix
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.