public class LdapContactQuery extends AsyncContactQuery<LdapContactSourceService>
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.
Modifier and Type | Field and Description |
---|---|
static int |
LDAP_MAX_RESULTS
Maximum results for LDAP query.
|
query
QUERY_CANCELED, QUERY_COMPLETED, QUERY_ERROR, QUERY_IN_PROGRESS
Modifier | Constructor and Description |
---|---|
protected |
LdapContactQuery(LdapContactSourceService contactSource,
java.util.regex.Pattern query,
int count)
Initializes a new LdapContactQuery instance which is to perform
a specific query on behalf of a specific contactSource.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels this ContactQuery.
|
protected void |
run()
Performs this AsyncContactQuery in a background Thread.
|
void |
start()
Starts this AsyncContactQuery.
|
protected void |
stopped(boolean completed)
Notifies this LdapContactQuery that it has stopped performing
in the associated background Thread.
|
addQueryResult, addQueryResult, addQueryResults, getPhoneNumberQuery, getQueryResultCount, getQueryResults, getQueryString, phoneNumberMatches, removeQueryResult
addContactQueryListener, fireContactChanged, fireContactReceived, fireContactReceived, fireContactRemoved, fireQueryStatusChanged, getContactSource, getStatus, removeContactQueryListener, setStatus
public static final int LDAP_MAX_RESULTS
protected LdapContactQuery(LdapContactSourceService contactSource, java.util.regex.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 resultsprotected void run()
run
in class AsyncContactQuery<LdapContactSourceService>
AsyncContactQuery.run()
public void start()
AsyncContactQuery
start
in interface ContactQuery
start
in class AsyncContactQuery<LdapContactSourceService>
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 ContactQuery
cancel
in class AbstractContactQuery<LdapContactSourceService>
ContactQuery.cancel()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.