edu.vt.middleware.ldap.bean
public interface LdapAttributes
LdapAttributes represents a collection of ldap attribute.| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(LdapAttribute a)
This adds a new attribute to this
LdapAttributes. |
void |
addAttribute(java.lang.String name,
java.util.List<?> values)
This adds a new attribute to this
LdapAttributes with the
supplied name and values. |
void |
addAttribute(java.lang.String name,
java.lang.Object value)
This adds a new attribute to this
LdapAttributes with the
supplied name and value. |
void |
addAttributes(javax.naming.directory.Attributes a)
This adds the attributes in the supplied
Attributes to this
LdapAttributes. |
void |
addAttributes(java.util.Collection<LdapAttribute> c)
This adds a
Collection of attributes to this
LdapAttributes. |
void |
clear()
This removes all attributes from this
LdapAttributes. |
LdapAttribute |
getAttribute(java.lang.String name)
This returns the
LdapAttribute for this
LdapAttributes with the supplied name. |
java.lang.String[] |
getAttributeNames()
This returns an array of all the attribute names for this
LdapAttributes. |
java.util.Collection<LdapAttribute> |
getAttributes()
This returns a
Collection of LdapAttribute for
this LdapAttributes. |
void |
removeAttribute(LdapAttribute a)
This removes an attribute from this
LdapAttributes. |
void |
removeAttribute(java.lang.String name)
This removes the attribute with the supplied name.
|
void |
removeAttributes(javax.naming.directory.Attributes a)
This removes the attributes in the supplied
Attributes from
this LdapAttributes. |
void |
removeAttributes(java.util.Collection<LdapAttribute> c)
This removes a
Collection of attributes from this
LdapAttributes. |
int |
size()
This returns the number of attributes in this attributes.
|
javax.naming.directory.Attributes |
toAttributes()
This returns an
Attributes that represents this entry. |
java.util.Collection<LdapAttribute> getAttributes()
Collection of LdapAttribute for
this LdapAttributes.ListLdapAttribute getAttribute(java.lang.String name)
LdapAttribute for this
LdapAttributes with the supplied name.name - StringLdapAttributejava.lang.String[] getAttributeNames()
LdapAttributes.String[]void addAttribute(LdapAttribute a)
LdapAttributes.a - LdapAttributevoid addAttribute(java.lang.String name,
java.lang.Object value)
LdapAttributes with the
supplied name and value.name - Stringvalue - Objectvoid addAttribute(java.lang.String name,
java.util.List<?> values)
LdapAttributes with the
supplied name and values.name - Stringvalues - Listvoid addAttributes(java.util.Collection<LdapAttribute> c)
Collection of attributes to this
LdapAttributes. The collection should contain
LdapAttribute objects.c - Collectionvoid addAttributes(javax.naming.directory.Attributes a)
throws javax.naming.NamingException
Attributes to this
LdapAttributes.a - Attributesjavax.naming.NamingException - if the attributes cannot be readvoid removeAttribute(LdapAttribute a)
LdapAttributes.a - LdapAttributevoid removeAttribute(java.lang.String name)
name - Stringvoid removeAttributes(java.util.Collection<LdapAttribute> c)
Collection of attributes from this
LdapAttributes. The collection should contain
LdapAttribute objects.c - Collectionvoid removeAttributes(javax.naming.directory.Attributes a)
throws javax.naming.NamingException
Attributes from
this LdapAttributes.a - Attributesjavax.naming.NamingException - if the attributes cannot be readint size()
intvoid clear()
LdapAttributes.javax.naming.directory.Attributes toAttributes()
Attributes that represents this entry.AttributesCopyright © 2014. All Rights Reserved.