|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.console.ldapmanager.LDAPManagerHelper
public class LDAPManagerHelper
The LDAP manager helper
Constructor Summary | |
---|---|
LDAPManagerHelper()
Construct an LDAP manager helper using config data (default) |
|
LDAPManagerHelper(String host,
String port,
String baseDN,
String securityAuthentication,
String userDN,
String userPwd)
Construct an LDAP manager helper using config data (partial) |
|
LDAPManagerHelper(String initialContextFactory,
String host,
String port,
String baseDN,
String ldapVersion,
String securityProtocol,
String securityAuthentication,
String securityPrincipal,
String securityCredentials)
Construct an LDAP manager helper using config data (all) |
Method Summary | |
---|---|
void |
close()
Close directory context |
String |
connect(String initialContextFactory,
String host,
String port,
String baseDN,
String ldapVersion,
String securityProtocol,
String securityAuthentication,
String securityPrincipal,
String securityCredentials)
Create a directory context using config data |
Collection |
getAttributes(String name)
Return the attributes of an LDAP entry |
String |
getBaseDN()
Return base DN of this directory context |
Map |
getEnvironment()
Return directory context environment |
Collection |
list(String name)
Returns the names bound in the named context |
Collection |
listBaseDN()
Returns the names bound in the base DN context |
String |
listJSON(String name)
Enumerates the names bound in the named context and return result as JSON |
String |
listJSON(String name,
String commonFields)
Enumerates the names bound in the named context and return result as JSON |
Collection |
search(String searchDN,
String filter,
String searchScope)
Execute an LDAP search |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPManagerHelper() throws Exception
Exception
public LDAPManagerHelper(String host, String port, String baseDN, String securityAuthentication, String userDN, String userPwd) throws Exception
Exception
public LDAPManagerHelper(String initialContextFactory, String host, String port, String baseDN, String ldapVersion, String securityProtocol, String securityAuthentication, String securityPrincipal, String securityCredentials) throws Exception
Exception
Method Detail |
---|
public String connect(String initialContextFactory, String host, String port, String baseDN, String ldapVersion, String securityProtocol, String securityAuthentication, String securityPrincipal, String securityCredentials) throws Exception
Exception
public Map getEnvironment()
public Collection list(String name) throws Exception
Exception
public Collection listBaseDN() throws Exception
Exception
public String listJSON(String name) throws Exception
Exception
public String listJSON(String name, String commonFields) throws Exception
Exception
public Collection getAttributes(String name) throws Exception
Exception
public Collection search(String searchDN, String filter, String searchScope) throws Exception
Exception
public void close() throws Exception
Exception
public String getBaseDN()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |