|
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.ldap.event.DefaultLdapEventManager
net.java.sip.communicator.impl.ldap.LdapDirectorySetImpl
public class LdapDirectorySetImpl
A thread-safe implementation of LdapDirectorySet, backed by a TreeMap
net.java.sip.communicator.service.ldap| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.java.sip.communicator.service.ldap.LdapConstants |
|---|
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope |
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.service.ldap.event.DefaultLdapEventManager |
|---|
ldapListeners |
| Fields inherited from interface net.java.sip.communicator.service.ldap.LdapConstants |
|---|
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT |
| Constructor Summary | |
|---|---|
LdapDirectorySetImpl()
A simple constructor for this class |
|
LdapDirectorySetImpl(ConfigurationService configService)
Use this constructor if you want every change to the LdapDirectorySet to be propagated in the user preferences files |
|
| Method Summary | |
|---|---|
boolean |
addServer(LdapDirectory server)
Tries to add an LdapDirectory to the LdapDirectorySet |
boolean |
containsServerWithName(String name)
|
SortedSet<LdapDirectory> |
getDisabledServers()
Required by LdapDirectorySet interface. |
SortedSet<LdapDirectory> |
getEnabledServers()
Required by LdapDirectorySet interface. |
LdapDirectory |
getServerWithName(String name)
|
Iterator<LdapDirectory> |
iterator()
|
void |
ldapEventReceived(LdapEvent event)
Required by LdapListener. |
LdapDirectory |
removeServerWithName(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(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. |
| Methods inherited from class net.java.sip.communicator.service.ldap.event.DefaultLdapEventManager |
|---|
addLdapListener, fireLdapEvent, fireLdapEvent, removeLdapListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.ldap.event.LdapEventManager |
|---|
addLdapListener, fireLdapEvent, fireLdapEvent, removeLdapListener |
| Constructor Detail |
|---|
public LdapDirectorySetImpl()
public LdapDirectorySetImpl(ConfigurationService configService)
configService - the configuration service to use| Method Detail |
|---|
public LdapDirectory getServerWithName(String name)
getServerWithName in interface LdapDirectorySetname - server name
public LdapDirectory removeServerWithName(String name)
removeServerWithName in interface LdapDirectorySetname - name of the LdapDirectory to remove
public boolean addServer(LdapDirectory server)
addServer in interface LdapDirectorySetserver - the server to be added
public boolean containsServerWithName(String name)
containsServerWithName in interface LdapDirectorySetname - of the server to check presence in the LdapDirectorySet
public int size()
size in interface LdapDirectorySetpublic SortedSet<LdapDirectory> getEnabledServers()
getEnabledServers in interface LdapDirectorySetpublic SortedSet<LdapDirectory> getDisabledServers()
getDisabledServers in interface LdapDirectorySetpublic Iterator<LdapDirectory> iterator()
iterator in interface Iterable<LdapDirectory>
public void searchPerson(Set<LdapDirectory> servers,
LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
searchPerson in interface LdapDirectorySetservers - 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 defaults
public void searchPerson(LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
searchPerson in interface LdapDirectorySetquery - the query to performcaller - the LdapListener that will receive the resultssearchSettings - the custom settings for this searchpublic void ldapEventReceived(LdapEvent event)
ldapEventReceived in interface LdapListenerevent - An LdapEvent probably sent by an LdapDirectory
|
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 | |||||||||