public abstract class LDAPEntry
extends java.lang.Object
implements java.io.Serializable
This abstract class represents an LDAP entry. It is subclassed by
many of the objects in the oracle.ldap.util package - for example,
User
and Subscriber
classes.
The class provides some general LDAP search and modify methods to be performed on an LDAP entry.
Constructor and Description |
---|
LDAPEntry() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDN(javax.naming.directory.DirContext ctx)
Returns the DN of the entry (resolves the name if necessary).
|
PropertySetCollection |
getProperties(javax.naming.directory.DirContext ctx,
java.lang.String[] attrList,
boolean usecache)
Retrieves selected attributes associated with this entry.
|
abstract void |
resolve(javax.naming.directory.DirContext ctx)
Abstract method - implements validation of the LDAP entry
by resolving the DN
|
void |
setProperties(javax.naming.directory.DirContext ctx,
ModPropertySet ps)
Sets or modifies the properties of this entry.
|
public PropertySetCollection getProperties(javax.naming.directory.DirContext ctx, java.lang.String[] attrList, boolean usecache) throws UtilException
Retrieves selected attributes associated with this entry.
A cache is used where previous getProperties() results
are stored. If a new search is desired, usecache
should be set to false. A new LDAP search will be done and
the cache will be refreshed with these new values.
ctx
- a valid DirContextattrList
- an array of attributes to be retrievedusecache
- boolean value to determine if cached values from
the previous search should be used. Set to true to
fetch the cached values.UtilException
public void setProperties(javax.naming.directory.DirContext ctx, ModPropertySet ps) throws UtilException
Sets or modifies the properties of this entry.
A ModPropertySet
object must be created first.
PropertySet for the modification.
ctx
- a valid DirContextps
- a valid PropertySet containing the items to be modifiedUtilException
public java.lang.String getDN(javax.naming.directory.DirContext ctx) throws UtilException
ctx
- a valid DirContextUtilException
public abstract void resolve(javax.naming.directory.DirContext ctx) throws UtilException
UtilException