|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetscape.ldap.beans.LDAPBasePropertySupport
netscape.ldap.beans.LDAPGetProperty
public class LDAPGetProperty
Invisible Bean that just takes a name and password, host and
port, and directory base and attribute name, and returns an
attribute's values from a Directory Server. The values are
assumed to be strings, and are returned as an array. The
search has the scope "SUB", which means that it will find
an entry anywhere at or below the directory base.
Optionally, a client can register as a PropertyChangeListener
and will be notified when the values are available.
A null result means the property fetch failed. The reason is
available through getErrorCode(), which returns one of
the following:
OK INVALID_PARAMETER CONNECT_ERROR AUTHENTICATION_ERROR PROPERTY_NOT_FOUND AMBIGUOUS_RESULTS
Field Summary |
---|
Fields inherited from class netscape.ldap.beans.LDAPBasePropertySupport |
---|
AMBIGUOUS_RESULTS, AUTHENTICATION_ERROR, CONNECT_ERROR, INVALID_PARAMETER, NO_SUCH_OBJECT, OK, PROPERTY_NOT_FOUND |
Constructor Summary | |
---|---|
LDAPGetProperty()
Constructor with no parameters |
|
LDAPGetProperty(java.lang.String theHost,
int thePort,
java.lang.String theBase)
Constructor with host, port, and base initializers |
Method Summary | |
---|---|
java.lang.String |
getAttribute()
Returns the name of the attribute to retrieve |
java.lang.String[] |
getProperty()
Searches and returns values of a previously registered property, using previously set parameters |
void |
getProperty(java.awt.event.ActionEvent x)
|
java.lang.String[] |
getProperty(java.lang.String host,
int port,
java.lang.String base,
java.lang.String filter,
java.lang.String attribute)
Searches and returns values for a specified attribute |
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 |
setDNs(java.beans.PropertyChangeEvent evt)
|
Methods inherited from class netscape.ldap.beans.LDAPBasePropertySupport |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPGetProperty()
public LDAPGetProperty(java.lang.String theHost, int thePort, java.lang.String theBase)
theHost
- host stringthePort
- port numbertheBase
- directory base stringMethod Detail |
---|
public java.lang.String getAttribute()
public void setAttribute(java.lang.String attr)
public void setDNs(java.beans.PropertyChangeEvent evt)
public java.lang.String[] getProperty(java.lang.String host, int port, java.lang.String base, java.lang.String filter, java.lang.String attribute)
host
- host stringport
- port numberbase
- directory base stringfilter
- search filterattribute
- name of property to return values for
public void getProperty(java.awt.event.ActionEvent x)
public java.lang.String[] getProperty()
public static void main(java.lang.String[] args)
args
- list of arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |