|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.ucmdb.discovery.library.clients.BaseClient com.hp.ucmdb.discovery.library.clients.query.QueryClient com.hp.ucmdb.discovery.library.clients.ldap.LdapClient
public class LdapClient
This class represents LDAP client that handles all search communications.
Field Summary | |
---|---|
static java.lang.String |
LDAP_CONNECT_TIMEOUT
|
static java.lang.String |
LDAP_DEFAULT_CONTEXT_FACTORY
|
static java.lang.Integer |
LDAP_DEFAULT_PORT
|
static java.lang.String |
LDAP_PROTOCOL_NAME
|
static int |
OBJECT_SCOPE
|
static int |
ONELEVEL_SCOPE
|
static java.lang.String |
PROP_AUTHENTICATION_TYPE
|
static java.lang.String |
PROP_INITIAL_CONTEXT_FACTORY
|
static java.lang.String |
PROP_PASSWORD
|
static java.lang.String |
PROP_PORT_NUMBER
|
static java.lang.String |
PROP_PROVIDER_URL
|
static java.lang.String |
PROP_TIMEOUT
|
static java.lang.String |
PROP_USERNAME
|
static int |
SUBTREE_SCOPE
|
Fields inherited from class com.hp.ucmdb.discovery.library.clients.BaseClient |
---|
CREDENTIALS_ID, ENCODING |
Constructor Summary | |
---|---|
LdapClient(ClientsFrameworkImpl framework,
java.util.Properties props)
|
Method Summary | |
---|---|
Query |
createQuery(java.lang.String objName,
java.lang.String[] attrIds)
|
Query |
createQuery(java.lang.String objName,
java.lang.String filter,
java.lang.String[] attrIds)
|
ResultSet |
executeQuery(Query query)
Submits a query and returns the result set. |
ResultSet |
executeQuery(java.lang.String query)
Submits a query and returns the result set. |
ResultSet |
executeQuery(java.lang.String name,
java.lang.String filter,
java.lang.String[] attributeIds)
Searches in the named context or object for entries that satisfy the given search filter. |
ResultSet |
getAttributes(java.lang.String name,
java.lang.String[] attrIds)
Retrieves selected attributes associated with a named object. |
javax.naming.Context |
getContext()
|
java.lang.Integer |
getPort()
Get port number for this client connection. |
ResultSet |
getRootDseResultSet()
Get rootDse for initial context. |
Methods inherited from class com.hp.ucmdb.discovery.library.clients.BaseClient |
---|
close, getClientType, getCredentialId, getIpAddress, getProperty, getShellCmdSeperator, getSudoCommands, getSudoPaths, getTimeout, getUserName, isConnected, supportsSudo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LDAP_PROTOCOL_NAME
public static final java.lang.Integer LDAP_DEFAULT_PORT
public static final java.lang.String LDAP_DEFAULT_CONTEXT_FACTORY
public static final java.lang.String LDAP_CONNECT_TIMEOUT
public static final java.lang.String PROP_PROVIDER_URL
public static final java.lang.String PROP_PORT_NUMBER
public static final java.lang.String PROP_INITIAL_CONTEXT_FACTORY
public static final java.lang.String PROP_AUTHENTICATION_TYPE
public static final java.lang.String PROP_TIMEOUT
public static final java.lang.String PROP_USERNAME
public static final java.lang.String PROP_PASSWORD
public static final int OBJECT_SCOPE
public static final int ONELEVEL_SCOPE
public static final int SUBTREE_SCOPE
Constructor Detail |
---|
public LdapClient(ClientsFrameworkImpl framework, java.util.Properties props) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public ResultSet getRootDseResultSet() throws java.lang.Exception
java.lang.Exception
public ResultSet executeQuery(java.lang.String query) throws java.lang.Exception
QueryClient
executeQuery
in class QueryClient
query
- The query to execute
ResultSet
with database-oriented API @see ResultSet
java.lang.Exception
ResultSet
public javax.naming.Context getContext()
public ResultSet executeQuery(java.lang.String name, java.lang.String filter, java.lang.String[] attributeIds) throws java.lang.Exception
name
- - the name of the context or object to searchfilter
- - the filter expression to use for the search; may not be nullattributeIds
- - the attributes to return. null indicates that all attributes
are to be returned; an empty array indicates that none are to
be returned.
java.lang.Exception
public ResultSet getAttributes(java.lang.String name, java.lang.String[] attrIds) throws java.lang.Exception
name
- - the name of the object from which to retrieve attributesattrIds
- - the identifiers of the attributes to retrieve. null
indicates that all attributes should be retrieved; an empty
array indicates that none should be retrieved.
java.lang.Exception
public ResultSet executeQuery(Query query) throws java.lang.Exception
QueryClient
executeQuery
in class QueryClient
query
- The query to execute
ResultSet
with database-oriented API @see ResultSet
java.lang.Exception
ResultSet
public java.lang.Integer getPort()
public Query createQuery(java.lang.String objName, java.lang.String filter, java.lang.String[] attrIds)
public Query createQuery(java.lang.String objName, java.lang.String[] attrIds)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |