|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.technical.ldap.LDAPConnection
public class LDAPConnection
Manages connections to LDAP servers.
LDAP connections are not transacted.TAResource
is just
implemented to open and close the connections.
Method Summary | |
---|---|
void |
close()
Closes the connection to the LDAP server |
void |
commit()
Empty method, LDAP connections are not transacted. |
javax.naming.directory.DirContext |
getContext()
Returns the Context of the current connection to the LDAP
server. |
static LDAPConnection |
getInstance(java.lang.String name)
Delivers an open instance of LDAPConnection . |
javax.naming.directory.SearchControls |
getSearchControls()
Creates and returns SearchControls used to search entries
in the LDAP server. |
void |
open()
Opens a connection to a LDAP server. |
void |
rollback()
Empty method, LDAP connections are not transacted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LDAPConnection getInstance(java.lang.String name) throws XException
LDAPConnection
.
If it is the first call with this name for the actual thread, a new
LDAPConnection
object will be created. Subsequent calls in
this thread will deliver the object, that has been created by the first
call.
name
- name of the LDAPConnection
XException
- if something goes wrongpublic void open() throws XException
open
in interface TAResource
XException
- if something goes wrongpublic void close()
close
in interface TAResource
public javax.naming.directory.DirContext getContext()
Context
of the current connection to the LDAP
server.
public javax.naming.directory.SearchControls getSearchControls() throws XException
SearchControls
used to search entries
in the LDAP server. Some values are read out of the configuration.
SearchControls
, initialized with values of
the configuration
XException
- if something goes wrongpublic void commit()
commit
in interface TAResource
public void rollback()
rollback
in interface TAResource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |