Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class LDAPEntry

java.lang.Object
  extended by oracle.ldap.util.LDAPEntry

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BasicService, LDAPGroup, OracleContext, Service, ServiceEntity, ServiceReference, Subscriber, User

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.

See Also:
Serialized Form

Field Summary
protected  java.lang.String entryDN
           
protected  int entryIdType
           
protected  PropertySetCollection entryPsc
           
protected  java.lang.String inEntryId
           
protected static java.util.ResourceBundle resBundle
           
protected  boolean validated
           

 

Constructor Summary
  LDAPEntry()
           
protected LDAPEntry(javax.naming.directory.DirContext inCtx, java.lang.String inEntryDN)
           
protected LDAPEntry(javax.naming.directory.DirContext inCtx, java.lang.String inEntryDN, PropertySet inDnPs)
           

 

Method Summary
 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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

resBundle

protected static java.util.ResourceBundle resBundle

entryDN

protected java.lang.String entryDN

inEntryId

protected java.lang.String inEntryId

entryIdType

protected int entryIdType

entryPsc

protected PropertySetCollection entryPsc

validated

protected boolean validated

Constructor Detail

LDAPEntry

public LDAPEntry()

LDAPEntry

protected LDAPEntry(javax.naming.directory.DirContext inCtx,
                    java.lang.String inEntryDN)

LDAPEntry

protected LDAPEntry(javax.naming.directory.DirContext inCtx,
                    java.lang.String inEntryDN,
                    PropertySet inDnPs)

Method Detail

getProperties

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.

Parameters:
ctx - a valid DirContext
attrList - an array of attributes to be retrieved
usecache - boolean value to determine if cached values from the previous search should be used. Set to true to fetch the cached values.
Throws:
UtilException

setProperties

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.

Parameters:
ctx - a valid DirContext
ps - a valid PropertySet containing the items to be modified
Throws:
UtilException

getDN

public java.lang.String getDN(javax.naming.directory.DirContext ctx)
                       throws UtilException
Returns the DN of the entry (resolves the name if necessary).
Parameters:
ctx - a valid DirContext
Throws:
UtilException

resolve

public abstract void resolve(javax.naming.directory.DirContext ctx)
                      throws UtilException
Abstract method - implements validation of the LDAP entry by resolving the DN
Throws:
UtilException

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.