|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ca.commons.naming.DXAttributes
|
+--com.ca.commons.naming.DXEntry
This class is a wrapper for DXAttributes, that includes knowledge of the DN of the attributes set.
| Field Summary | |
static int |
NEW
This status constant implies that the entry is a new entry, that has not yet been written to the directory. |
static int |
NEW_WRITTEN
This status constant implies that the entry is a new entry, that has just been written to the directory, but may not yet have been added to the tree or re-displayed by the editor. |
static int |
NORMAL
This status constant implies that the entry is a 'normal' directory entry. |
| Constructor Summary | |
DXEntry()
Constructors simply chain to DXAttributes... |
|
DXEntry(javax.naming.directory.Attribute a)
|
|
DXEntry(javax.naming.directory.Attributes a)
|
|
DXEntry(javax.naming.directory.Attributes a,
DN dn)
|
|
DXEntry(DN dn)
|
|
DXEntry(DXEntry copyMe)
|
|
DXEntry(java.util.Hashtable newAtts)
|
|
DXEntry(javax.naming.NamingEnumeration newAtts)
|
|
| Method Summary | |
DN |
getDN()
Returns the DN of this entry, or an empty DN if none has been set. |
RDN |
getRDN()
Returns the Entry's RDN. |
int |
getStatus()
Returns the status of the entry as a status constant. |
java.lang.String |
getString(java.lang.String id)
Utility class intended for recovering the value of a single value attribute as a string. |
java.lang.String |
getStringStatus()
Returns the status of the entry as a readable string. |
boolean |
isNewEntry()
Returns whether the entry is new, (or just written to the directory), or whether it already existed in the directory. |
javax.naming.directory.Attribute |
put(javax.naming.directory.Attribute attr)
Intercept a DN being passed as an attribute (as might happen reading an ldif file); |
void |
putDN(DN dn)
Add a DN directly, without using an attribute. |
void |
setDN(DN dn)
|
void |
setStatus(int entryStatus)
This is used to set what stage of the 'new entry' life cycle an entry is in - one of 'NORMAL', 'NEW', or 'NEW_WRITTEN'. |
java.lang.String |
toString()
Provides a string representation of the entry, as a set of attributes preceeded by a header of form 'entry = |
| Methods inherited from class com.ca.commons.naming.DXAttributes |
attributesEqual, clone, emptyAtt, equals, equals, expandAllAttributes, get, getAdditionSet, getAll, getAllNonNull, getAllObjectClasses, getAllObjectClasses, getAsNonNullAttributes, getDeletionSet, getID, getIDs, getldapName, getMandatory, getObjectClassName, getOptional, getOrderedOCs, getParentObjectClasses, getReplacementSet, getSchema, hasOIDs, isCaseIgnored, print, print, printAttributeList, printAttributes, put, put, registerOID, remove, removeEmptyAttributes, setAllObjectClasses, setDefaultSchema, size, sortOCByDepth, toIDStringArray |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NORMAL
public static final int NEW
public static final int NEW_WRITTEN
| Constructor Detail |
public DXEntry()
public DXEntry(DN dn)
public DXEntry(javax.naming.directory.Attribute a)
public DXEntry(javax.naming.directory.Attributes a)
public DXEntry(javax.naming.directory.Attributes a,
DN dn)
public DXEntry(java.util.Hashtable newAtts)
public DXEntry(javax.naming.NamingEnumeration newAtts)
public DXEntry(DXEntry copyMe)
| Method Detail |
public javax.naming.directory.Attribute put(javax.naming.directory.Attribute attr)
put in interface javax.naming.directory.Attributesput in class DXAttributesattr - the attribute to add
public void setStatus(int entryStatus)
entryStatus - The status of the entry as a constant
(one of {NORMAL, NEW, NEW_WRITTEN} ).public int getStatus()
public java.lang.String getStringStatus()
public boolean isNewEntry()
public void putDN(DN dn)
dn - the distinguished name to add.public void setDN(DN dn)
public DN getDN()
public java.lang.String toString()
toString in class DXAttributespublic java.lang.String getString(java.lang.String id)
id - the attribute name
public RDN getRDN()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||