|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractLdapBean
org.ldaptive.LdapEntry
public class LdapEntry
Simple bean representing an ldap entry. Contains a DN and ldap attributes.
| Constructor Summary | |
|---|---|
LdapEntry()
Default constructor. |
|
LdapEntry(SortBehavior sb)
Creates a new ldap entry. |
|
LdapEntry(String dn)
Creates a new ldap entry. |
|
LdapEntry(String dn,
Collection<LdapAttribute> attrs)
Creates a new ldap entry. |
|
LdapEntry(String dn,
LdapAttribute... attr)
Creates a new ldap entry. |
|
| Method Summary | |
|---|---|
void |
addAttribute(LdapAttribute... attr)
Adds an attribute to this ldap attributes. |
void |
addAttributes(Collection<LdapAttribute> attrs)
Adds attribute(s) to this ldap attributes. |
void |
clear()
Removes all the attributes in this ldap attributes. |
static AttributeModification[] |
computeModifications(LdapEntry source,
LdapEntry target)
Returns the list of attribute modifications needed to change the supplied target entry into the supplied source entry. |
LdapAttribute |
getAttribute()
Returns a single attribute of this attributes. |
LdapAttribute |
getAttribute(String name)
Returns the attribute with the supplied name. |
String[] |
getAttributeNames()
Returns the attribute names in this entry. |
Collection<LdapAttribute> |
getAttributes()
Returns a collection of ldap attribute. |
String |
getDn()
Returns the DN. |
int |
hashCode()
|
void |
removeAttribute(LdapAttribute... attr)
Removes an attribute from this ldap attributes. |
void |
removeAttribute(String name)
Removes the attribute of the supplied name from this ldap attributes. |
void |
removeAttributes(Collection<LdapAttribute> attrs)
Removes the attribute(s) from this ldap attributes. |
void |
setDn(String dn)
Sets the DN. |
int |
size()
Returns the number of attributes in this ldap attributes. |
String |
toString()
|
| Methods inherited from class org.ldaptive.AbstractLdapBean |
|---|
equals, getSortBehavior |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapEntry()
public LdapEntry(SortBehavior sb)
sb - sort behaviorpublic LdapEntry(String dn)
dn - dn for this entry
public LdapEntry(String dn,
LdapAttribute... attr)
dn - dn for this entryattr - ldap attribute for this entry
public LdapEntry(String dn,
Collection<LdapAttribute> attrs)
dn - dn for this entryattrs - collection of attributes to add| Method Detail |
|---|
public String getDn()
public void setDn(String dn)
dn - dn to setpublic Collection<LdapAttribute> getAttributes()
public LdapAttribute getAttribute()
public LdapAttribute getAttribute(String name)
name - of the attribute to return
public String[] getAttributeNames()
public void addAttribute(LdapAttribute... attr)
attr - attribute to addpublic void addAttributes(Collection<LdapAttribute> attrs)
attrs - collection of attributes to addpublic void removeAttribute(LdapAttribute... attr)
attr - attribute to removepublic void removeAttribute(String name)
name - of attribute to removepublic void removeAttributes(Collection<LdapAttribute> attrs)
attrs - collection of ldap attributes to removepublic int size()
public void clear()
public int hashCode()
hashCode in class AbstractLdapBeanpublic String toString()
toString in class Object
public static AttributeModification[] computeModifications(LdapEntry source,
LdapEntry target)
source - ldap entry containing new datatarget - ldap entry containing existing data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||