org.objectweb.jonas.ldap
Interface DataSourceLDAP
- All Known Implementing Classes:
- DataSourceLDAPImpl
- public interface DataSourceLDAP
A DataSourceLDAP object is a factory for JNDI DirContext objects.
This object mimics the DataSource object used for databases.
Method Summary |
javax.naming.directory.DirContext |
getDirContext()
Get a new DirContext |
javax.naming.directory.DirContext |
getDirContext(java.lang.String user,
java.lang.String passwd)
Get a new DirContext for this user |
void |
setBinAttribs(java.lang.String v)
Set the list of byte-array attributes for this bean.
|
setBinAttribs
public void setBinAttribs(java.lang.String v)
throws javax.naming.NamingException
- Set the list of byte-array attributes for this bean.
Note that we have one datasource per lookup (i.e. per bean)!
- Parameters:
name
- of the attribute
getDirContext
public javax.naming.directory.DirContext getDirContext()
throws javax.naming.NamingException
- Get a new DirContext
- Returns:
- the DirContext
getDirContext
public javax.naming.directory.DirContext getDirContext(java.lang.String user,
java.lang.String passwd)
throws javax.naming.NamingException
- Get a new DirContext for this user
- Parameters:
user
- - the user on whose behalf the DirContext will be usedpassword
- - the user's password- Returns:
- the DirContext