com.raritantechnologies.federated.LDAP
Class LDAPSearchSourceFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.XMLSearchSourceFactory
      extended bycom.raritantechnologies.federated.LDAP.LDAPSearchSourceFactory
All Implemented Interfaces:
IXMLSearchSourceFactory

public class LDAPSearchSourceFactory
extends XMLSearchSourceFactory

Factory object that can initialize an LDAPSearchSource from its <SourceType> configuration tag.

XML Configuration Template:
  <SourceType name="[ source name ]" type="LDAPSearchSource" displayName="[ source display name ]"
                 sourceFactoryClass="com.raritantechnologies.federated.LDAP.LDAPSearchSourceFactory" 
                 queryProcessor="com.raritantechnologies.federated.LDAP.LDAPQueryProcessor"
                 host="[ host name of LDAP server]"
                 port="[ port of LDAP server ]"
                 baseDN="[ base distinguished name where search should begin]"
                 scope="[ BASE | ONE | SUBTREE ]"
                 retrieveAll=[true|false]"
                 authUser="[ authorized user name ]"
                 authPassword="[ authorized password ]"
                 authPasswordEnc="[ authorized password encrypted ]"
                 IDField="[ field that contains document ID ]"
                 URLField="[ field that contains document URL ]"
                 titleField="[ field that contains document Title ]" >

      <SearchFields>
         <Field ID="[ fieldID ]" ldapField="[ field name in LDAP ]" />
      </SearchFields>

      <!-- LDAP attributes that should be retrieved by the search -->
      <LDAPFields>
         <Field ID="[ name of LDAP attribute ]" />
      </LDAPFields>

  </SourceType>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
LDAPSearchSourceFactory()
           
 
Method Summary
 SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem, ISearchFieldMapFactory factory)
           
 
Methods inherited from class com.raritantechnologies.searchApp.XMLSearchSourceFactory
changeBasePath, initializeFieldFormatters, initializeSource, initializeStaticFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSearchSourceFactory

public LDAPSearchSourceFactory()
Method Detail

createSearchSources

public SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem,
                                          ISearchFieldMapFactory factory)
Specified by:
createSearchSources in interface IXMLSearchSourceFactory
Specified by:
createSearchSources in class XMLSearchSourceFactory