public final class LdapEntry
extends java.lang.Object
Constructor and Description |
---|
LdapEntry(java.lang.String dn,
javax.naming.directory.Attributes attrs)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
getAllAttributeNames()
Gets all the attribute names in the LdapEntry
|
java.util.Enumeration |
getAllAttributeValues(java.lang.String attrName)
Gets all the values of an attribute for a given attribute name
|
javax.naming.directory.Attribute |
getAttribute(java.lang.String attrName)
Gets the Attribute for the attribute name
|
javax.naming.directory.Attributes |
getAttributes()
Gets all the Attributes
|
java.lang.String |
getDN()
Gets the DN of the LdapEntry
|
void |
setDN(java.lang.String dn)
Sets the DN of the LdapEntry
|
public LdapEntry(java.lang.String dn, javax.naming.directory.Attributes attrs)
dn
- - DN of the LdapEntryattrs
- - Attributes of the LdapEntrypublic void setDN(java.lang.String dn)
dn
- - DN of the LdapEntrypublic java.lang.String getDN()
public javax.naming.directory.Attributes getAttributes()
public javax.naming.directory.Attribute getAttribute(java.lang.String attrName)
attrName
- - Attribute namepublic java.util.Enumeration getAllAttributeNames()
public java.util.Enumeration getAllAttributeValues(java.lang.String attrName) throws javax.naming.NamingException
attrName
- - Attribute namejavax.naming.NamingException