public class LDAPEntry extends Object implements Serializable, Map<String,Object>
Modifier and Type | Field and Description |
---|---|
static String |
MAP_DN_KEY |
Constructor and Description |
---|
LDAPEntry() |
LDAPEntry(Map<String,Object> entry) |
LDAPEntry(String dn) |
LDAPEntry(String dn,
Map<String,?> attributes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(LDAPEntryAttribute attribute) |
void |
addAttribute(String attributeName,
Object attributeValue) |
Iterator<LDAPEntryAttribute> |
attributes() |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object obj) |
Object |
get(Object key) |
LDAPEntryAttribute |
getAttribute(String name) |
int |
getAttributeCount() |
LDAPEntryAttributes |
getAttributes() |
String |
getDn() |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> map) |
Object |
remove(Object key) |
void |
resetAttributes() |
void |
setAttributes(LDAPEntryAttributes attributes) |
void |
setDn(String dn) |
int |
size() |
String |
toLDIFString() |
String |
toString() |
Collection<Object> |
values() |
public static final String MAP_DN_KEY
public LDAPEntry()
public LDAPEntry(String dn)
dn
- Distinguished Namepublic LDAPEntry(Map<String,Object> entry) throws LDAPException
entry
- List of objectsLDAPException
public String getDn()
public void setDn(String dn)
dn
- The dn to set.public void addAttribute(LDAPEntryAttribute attribute)
attribute
- Attributepublic void addAttribute(String attributeName, Object attributeValue)
attributeName
- Attribute NameattributeValue
- Attribute Valuepublic LDAPEntryAttribute getAttribute(String name)
name
- Namepublic void resetAttributes()
public int getAttributeCount()
public Iterator<LDAPEntryAttribute> attributes()
public String toLDIFString()
public String toString()
toString
in class Object
Object.toString()
public LDAPEntryAttributes getAttributes()
public void setAttributes(LDAPEntryAttributes attributes)
attributes
- The attributes to set.public boolean equals(Object obj)
public int hashCode()
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
Copyright © 2010–2016. All rights reserved.