Title: JAT
Description: This class implements a context access (see javax.naming.directory.DirContext).
For example is possible to access to a LDAP context.
Configuration:
In the data source name section put the following parameters:
- the list of initial (init) properties (such as context factory, URL, etc.):
- name the name of the property
- value the value of the property
- base_object_name the base object name used for search objects
- list of operations (operation):
- name the name of the operation
- value the value of the operation
(use symbol '?' for parameters coming from
com.jat.business.BusinessObjectProperties when a query is called (see
com.jat.integration.DataSource ))
- list of fields (optional) for operation parameters
Note that the number of fields must be exactly as the number of parameters (symbol '?') of the value of operation
Example of LDAP access:
[ldapDataSourceName]
init1.name = java.naming.factory.initial
init1.value = com.sun.jndi.ldap.LdapCtxFactory
init2.name = java.naming.provider.url
init2.value = ldap://ldapServer:ldapPort/ldapPath
base_object_name = o=organizationName, c=US
test = true
operation1.name = list
operation1.value = sn=List
operation2.name = listBySn
operation2.value = sn=?
operation2.field1 = sn
operation3.name = listByMail
operation3.value = mail=?
operation3.field1 = mail
Copyright: Copyright (c) 2004 -2005 Stefano Fratini (stefano.fratini@gmail.com)
Distributed under the terms of the GNU Lesser General Public License, v2.1 or later
author: stf version: 1.2 since: 1.2 See Also: com.jat.integration.DataSource |