Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.ldap
Class LdapFactoryImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.ldap.LdapFactoryImpl
All Implemented Interfaces:
LdapFactory

public class LdapFactoryImpl
extends Object
implements LdapFactory

Implementation of The LdapFactory, used to create LdapDirectory-s, LdapDirectorySettings, LdapQuery, ...

Author:
Sebastien Mazy

Constructor Summary
LdapFactoryImpl()
           
 
Method Summary
 LdapQuery createQuery(String query)
          Required by LdapFactory interface.
 LdapSearchSettings createSearchSettings()
          Returns an LdapSearchSettings, to use when performing a search
 LdapDirectory createServer(LdapDirectorySettings settings)
          Required by LdapFactory interface.
 LdapDirectorySettings createServerSettings()
          Required by LdapFactory interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapFactoryImpl

public LdapFactoryImpl()
Method Detail

createServer

public LdapDirectory createServer(LdapDirectorySettings settings)
                           throws IllegalArgumentException
Required by LdapFactory interface. Creates an LdapDirectory based on the provided settings. This method will not modify the settings or save a reference to it, but may save a clone.

Specified by:
createServer in interface LdapFactory
Parameters:
settings - settings for this new server
Returns:
a reference to the created LdapDirectory
Throws:
IllegalArgumentException - if argument is invalid
See Also:
LdapDirectorySettings, LdapFactory.createServer(net.java.sip.communicator.service.ldap.LdapDirectorySettings)

createServerSettings

public LdapDirectorySettings createServerSettings()
Required by LdapFactory interface. Return a new instance of LdapDirectorySettings, a wrapper around a directory settings

Specified by:
createServerSettings in interface LdapFactory
Returns:
a new instance of LdapDirectorySettings
See Also:
LdapDirectorySettings, LdapFactory.createServerSettings()

createQuery

public LdapQuery createQuery(String query)
Required by LdapFactory interface. Returns an LDAP query, ready to be sent to an LdapDirectory

Specified by:
createQuery in interface LdapFactory
Parameters:
query - the query string, e.g. "John Doe"
Returns:
an LDAP query, ready to be sent to an LdapDirectory
See Also:
LdapQuery, LdapFactory.createQuery(java.lang.String)

createSearchSettings

public LdapSearchSettings createSearchSettings()
Returns an LdapSearchSettings, to use when performing a search

Specified by:
createSearchSettings in interface LdapFactory
Returns:
an LdapSearchSettings, to use when performing a search

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.