public class LdapDirectorySetImpl extends DefaultLdapEventManager implements LdapDirectorySet, LdapConstants
net.java.sip.communicator.service.ldap
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope
ldapListeners
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT
Constructor and Description |
---|
LdapDirectorySetImpl()
A simple constructor for this class
|
LdapDirectorySetImpl(org.jitsi.service.configuration.ConfigurationService configService)
Use this constructor if you want every change to the LdapDirectorySet
to be propagated in the user preferences files
|
Modifier and Type | Method and Description |
---|---|
boolean |
addServer(LdapDirectory server)
Tries to add an LdapDirectory to the LdapDirectorySet
|
boolean |
containsServerWithName(java.lang.String name) |
java.util.SortedSet<LdapDirectory> |
getDisabledServers()
Required by LdapDirectorySet interface.
|
java.util.SortedSet<LdapDirectory> |
getEnabledServers()
Required by LdapDirectorySet interface.
|
LdapDirectory |
getServerWithName(java.lang.String name) |
java.util.Iterator<LdapDirectory> |
iterator() |
void |
ldapEventReceived(LdapEvent event)
Required by LdapListener.
|
LdapDirectory |
removeServerWithName(java.lang.String name)
Tries to remove an LdapDirectory from the LdapDirectorySet
using the name given by the getName method.
|
void |
searchPerson(LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
Performs a search on every enabled LdapDirectory of this set.
|
void |
searchPerson(java.util.Set<LdapDirectory> servers,
LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
Performs a search on every LdapDirectory provided
|
int |
size()
Returns number of LdapDirectory(s) in the LdapDirectorySet.
|
addLdapListener, fireLdapEvent, fireLdapEvent, removeLdapListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLdapListener, fireLdapEvent, fireLdapEvent, removeLdapListener
public LdapDirectorySetImpl()
public LdapDirectorySetImpl(org.jitsi.service.configuration.ConfigurationService configService)
configService
- the configuration service to usepublic LdapDirectory getServerWithName(java.lang.String name)
getServerWithName
in interface LdapDirectorySet
name
- server namepublic LdapDirectory removeServerWithName(java.lang.String name)
removeServerWithName
in interface LdapDirectorySet
name
- name of the LdapDirectory to removepublic boolean addServer(LdapDirectory server)
addServer
in interface LdapDirectorySet
server
- the server to be addedpublic boolean containsServerWithName(java.lang.String name)
containsServerWithName
in interface LdapDirectorySet
name
- of the server to check presence in the LdapDirectorySetpublic int size()
size
in interface LdapDirectorySet
public java.util.SortedSet<LdapDirectory> getEnabledServers()
getEnabledServers
in interface LdapDirectorySet
public java.util.SortedSet<LdapDirectory> getDisabledServers()
getDisabledServers
in interface LdapDirectorySet
public java.util.Iterator<LdapDirectory> iterator()
iterator
in interface java.lang.Iterable<LdapDirectory>
public void searchPerson(java.util.Set<LdapDirectory> servers, LdapQuery query, LdapListener caller, LdapSearchSettings searchSettings)
searchPerson
in interface LdapDirectorySet
servers
- a set of LdapDirectory to search for the personquery
- the query to performcaller
- the LdapListener that will receive the resultssearchSettings
- the custom settings for this search,
or null for the defaultspublic void searchPerson(LdapQuery query, LdapListener caller, LdapSearchSettings searchSettings)
searchPerson
in interface LdapDirectorySet
query
- the query to performcaller
- the LdapListener that will receive the resultssearchSettings
- the custom settings for this searchpublic void ldapEventReceived(LdapEvent event)
ldapEventReceived
in interface LdapListener
event
- An LdapEvent probably sent by an LdapDirectory
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.