Multi-LDAP Technical Documentation
Dernière modification de cette page le 9 octobre 2008 à 13:54.
Un article de Milimail.
(Redirigé depuis Multi ldap autocompletion Architecture)
> User Manual > Add-on: Multi-LDAP > Technical Documentation
Sommaire |
Add-on: Multi-LDAP - Technical Documentation
Architecture
Synthetic presentation of the architecture of the extension
This feature is developed as a Thunderbird add-on.
- Users autocompletion with multi-directory LDAP
This feature is based on the standard autocompletion from Thunderbird. It overload functions setupLdapAutocompleteSession(), AddDirectorySettingsObserver() and RemoveDirectorySettingsObserver() of the MsgComposeCommands.js file.
GUI files
- Global preferences:
- User account preferences:
Global configuration
- preferencesOverlay.xul file overload preferences.xul file. It includes the file composeLDAPOverlay.xul. It use the composeLDAPOverlay.js library
- composeLDAPOverlay.js : retrieve the LDAP server list configured. It builds dynamically all XML items to create the GUI servers list. This list is accessible from the global preferences, in the composition tab.
- Property to activate LDAP autocompletion (boolean): ldap_2.autoComplete.useDirectory
- Property to define LDAP server list (string): ldap_2.autoComplete.directoryServers
User account preferences
- Architecture is the same as above with a level less of inclusion (No file preferencesOverlay.xul). The file am-addressingOverlay.xul overloads am-addressingOverlay.xul. It uses the library file am-addressingOverlay.js
- Property to overload the activation of LDAP autocompletion (boolean):ldap_2.identity.%IDENTITYKEY%.overrideGlobal_Pref.multi-ldap
- Property to overload the definition of LDAP server list (string):ldap_2.identity.%IDENTITYKEY%.directoryServers
XPCOM files
This extension doesn't provided any new XPCOM. Mainly, it uses the built-in XPCOM nsIAutoCompleteSession and nsILDAPAutoCompFormatter that allows to manage the standard autocompletion on LDAP server.
Reference: English – Translations: Français •






