public class LDAPGetEntries extends LDAPBasePropertySupport implements java.io.Serializable
OK INVALID_PARAMETER CONNECT_ERROR AUTHENTICATION_ERROR PROPERTY_NOT_FOUND AMBIGUOUS_RESULTS
AMBIGUOUS_RESULTS, AUTHENTICATION_ERROR, CONNECT_ERROR, INVALID_PARAMETER, NO_SUCH_OBJECT, OK, PROPERTY_NOT_FOUND
Constructor and Description |
---|
LDAPGetEntries()
Constructor with no parameters
|
LDAPGetEntries(java.lang.String theHost,
int thePort,
java.lang.String theBase)
Constructor with host, port, and base initializers
|
LDAPGetEntries(java.lang.String theHost,
int thePort,
java.lang.String theBase,
int theScope)
Constructor with host, port, base, and scope initializers
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute()
Returns the name of the attribute to retrieve
|
java.lang.String[] |
getEntries()
Searches and returns values of a previously registered property,
using previously set parameters
|
void |
getEntries(java.awt.event.ActionEvent x) |
java.lang.String[] |
getEntries(java.lang.String host,
int port,
java.lang.String base,
int scope,
java.lang.String filter)
Searches and returns values for a specified attribute
|
java.lang.String[] |
getEntries(java.lang.String host,
int port,
java.lang.String base,
int scope,
java.lang.String userid,
java.lang.String userName)
Searches and returns values for a specified attribute
|
java.lang.String |
getResultString() |
static void |
main(java.lang.String[] args)
The main body if we run it as application instead of applet.
|
void |
setAttribute(java.lang.String attr)
Sets the attribute to retrieve
|
void |
setResultString(java.lang.String sNewValue) |
addPropertyChangeListener, connect, convertToString, firePropertyChange, getAuthDN, getAuthPassword, getBase, getDebug, getErrorCode, getFilter, getHost, getPort, getScope, getUserID, getUserName, printDebug, removePropertyChangeListener, setAuthDN, setAuthPassword, setBase, setDebug, setDefaultReferralCredentials, setErrorCode, setFilter, setHost, setPort, setScope, setUserID, setUserName
public LDAPGetEntries()
public LDAPGetEntries(java.lang.String theHost, int thePort, java.lang.String theBase)
theHost
- host stringthePort
- port numbertheBase
- directory base stringpublic LDAPGetEntries(java.lang.String theHost, int thePort, java.lang.String theBase, int theScope)
theHost
- host stringthePort
- port numbertheBase
- directory base stringtheScope
- one of LDAPConnection.SCOPE_BASE,
LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONEpublic java.lang.String getAttribute()
public void setAttribute(java.lang.String attr)
public void setResultString(java.lang.String sNewValue)
public java.lang.String getResultString()
public java.lang.String[] getEntries(java.lang.String host, int port, java.lang.String base, int scope, java.lang.String filter)
host
- host stringport
- port numberbase
- directory base stringscope
- one of LDAPConnection.SCOPE_BASE,
LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONEfilter
- search filterpublic java.lang.String[] getEntries(java.lang.String host, int port, java.lang.String base, int scope, java.lang.String userid, java.lang.String userName)
host
- host stringport
- port numberbase
- directory base stringscope
- one of LDAPConnection.SCOPE_BASE,
LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONEuserName
- The user nameuserid
- The user idpublic void getEntries(java.awt.event.ActionEvent x)
public java.lang.String[] getEntries()
public static void main(java.lang.String[] args)
args
- list of arguments