public interface LdapDirectory extends LdapConstants, LdapEventManager, java.lang.Comparable<LdapDirectory>
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT
Modifier and Type | Method and Description |
---|---|
void |
addLdapListener(LdapListener listener)
Adds listener to our list of listeners
|
LdapDirectorySettings |
getSettings()
Returns an LdapDirectorySettings object containing
a copy of the settings of this server
|
boolean |
isEnabled()
Returns the state of the enabled marker
|
void |
overrideAttributesSearch(java.lang.String attribute,
java.util.List<java.lang.String> names)
Overrides attributes name for searching for a specific type (i.e mail,
homePhone, ...).
|
java.util.Collection<java.lang.String> |
searchChildren(java.lang.String dn)
search the children nodes of the given dn
|
void |
searchPerson(LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
Searches a person in the directory, based on a search string.
|
void |
setEnabled(boolean enabled)
Sets the state of the enabled marker
|
fireLdapEvent, fireLdapEvent, removeLdapListener
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- whether the server is marked as enabledLdapDirectorySettings getSettings()
LdapDirectorySettings
void searchPerson(LdapQuery query, LdapListener caller, LdapSearchSettings searchSettings)
query
- assumed name (can be partial) of the person searched
e.g. "john", "doe", "john doe"caller
- the LdapListener which called the method and will
receive results.searchSettings
- custom settings for this search, null if you
want to stick with the defaultssearchPerson(net.java.sip.communicator.service.ldap.LdapQuery, net.java.sip.communicator.service.ldap.event.LdapListener, net.java.sip.communicator.service.ldap.LdapSearchSettings)
,
LdapPersonFound
,
LdapEvent
java.util.Collection<java.lang.String> searchChildren(java.lang.String dn)
dn
- the distinguished name of the node to search for childrensearchChildren(java.lang.String)
void addLdapListener(LdapListener listener)
addLdapListener
in interface LdapEventManager
listener
- listener to be addedvoid overrideAttributesSearch(java.lang.String attribute, java.util.List<java.lang.String> names)
attribute
- namenames
- list of attributes name
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.