|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.contactsource.AbstractContactQuery<T>
net.java.sip.communicator.service.contactsource.AsyncContactQuery<LdapContactSourceService>
net.java.sip.communicator.impl.ldap.LdapContactQuery
public class LdapContactQuery
Implements ContactQuery for LDAP.
In contrast to other contact source implementations like AddressBook and Outlook the LDAP contact source implementation is explicitly moved to the "impl.ldap" package in order to allow us to create LDAP contact sources for ldap directories through the LdapService.
| Field Summary | |
|---|---|
static int |
LDAP_MAX_RESULTS
Maximum results for LDAP query. |
| Fields inherited from class net.java.sip.communicator.service.contactsource.AsyncContactQuery |
|---|
query |
| Fields inherited from interface net.java.sip.communicator.service.contactsource.ContactQuery |
|---|
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS |
| Constructor Summary | |
|---|---|
protected |
LdapContactQuery(LdapContactSourceService contactSource,
Pattern query,
int count)
Initializes a new LdapContactQuery instance which is to perform a specific query on behalf of a specific contactSource. |
| Method Summary | |
|---|---|
void |
cancel()
Cancels this ContactQuery. |
protected String |
normalizePhoneNumber(String phoneNumber)
Normalizes a String phone number by converting alpha characters to their respective digits on a keypad and then stripping non-digit characters. |
protected boolean |
phoneNumberMatches(String phoneNumber)
Determines whether a specific String phone number matches the AsyncContactQuery.query of this AsyncContactQuery. |
protected void |
run()
Performs this AsyncContactQuery in a background Thread. |
protected void |
stopped(boolean completed)
Notifies this LdapContactQuery that it has stopped performing in the associated background Thread. |
| Methods inherited from class net.java.sip.communicator.service.contactsource.AsyncContactQuery |
|---|
addQueryResult, getPhoneNumberQuery, getQueryResultCount, getQueryResults, getQueryString, start |
| Methods inherited from class net.java.sip.communicator.service.contactsource.AbstractContactQuery |
|---|
addContactQueryListener, fireContactReceived, fireQueryStatusChanged, getContactSource, getStatus, removeContactQueryListener, setStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LDAP_MAX_RESULTS
| Constructor Detail |
|---|
protected LdapContactQuery(LdapContactSourceService contactSource,
Pattern query,
int count)
contactSource - the ContactSourceService which is to
perform the new ContactQuery instancequery - the Pattern for which contactSource is
being queriedcount - maximum number of results| Method Detail |
|---|
protected String normalizePhoneNumber(String phoneNumber)
normalizePhoneNumber in class AsyncContactQuery<LdapContactSourceService>phoneNumber - a String which represents a phone number to
normalize
protected boolean phoneNumberMatches(String phoneNumber)
AsyncContactQuery.query of this AsyncContactQuery.
phoneNumberMatches in class AsyncContactQuery<LdapContactSourceService>phoneNumber - the String which represents the phone number
to match to the query of this AsyncContactQuery
protected void run()
run in class AsyncContactQuery<LdapContactSourceService>AsyncContactQuery.run()protected void stopped(boolean completed)
stopped in class AsyncContactQuery<LdapContactSourceService>completed - true if this ContactQuery has
successfully completed, false if an error has been encountered
during its executionAsyncContactQuery.stopped(boolean)public void cancel()
cancel in interface ContactQuerycancel in class AbstractContactQuery<LdapContactSourceService>ContactQuery.cancel()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||