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(String name,
List<?> values)
This adds a new attribute to this
LdapAttributes with the
supplied name and values. |
void |
addAttribute(String name,
Object value)
This adds a new attribute to this
LdapAttributes with the
supplied name and value. |
void |
addAttributes(Attributes a)
This adds the attributes in the supplied
Attributes to this
LdapAttributes . |
void |
addAttributes(Collection<LdapAttribute> c)
This adds a
Collection of attributes to this
LdapAttributes . |
void |
clear()
This removes all attributes from this
LdapAttributes . |
LdapAttribute |
getAttribute(String name)
This returns the
LdapAttribute for this
LdapAttributes with the supplied name. |
String[] |
getAttributeNames()
This returns an array of all the attribute names for this
LdapAttributes . |
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(String name)
This removes the attribute with the supplied name.
|
void |
removeAttributes(Attributes a)
This removes the attributes in the supplied
Attributes from
this LdapAttributes . |
void |
removeAttributes(Collection<LdapAttribute> c)
This removes a
Collection of attributes from this
LdapAttributes . |
int |
size()
This returns the number of attributes in this attributes.
|
Attributes |
toAttributes()
This returns an
Attributes that represents this entry. |
Collection<LdapAttribute> getAttributes()
Collection
of LdapAttribute
for
this LdapAttributes
.List
LdapAttribute getAttribute(String name)
LdapAttribute
for this
LdapAttributes
with the supplied name.name
- String
LdapAttribute
String[] getAttributeNames()
LdapAttributes
.String[]
void addAttribute(LdapAttribute a)
LdapAttributes
.a
- LdapAttribute
void addAttribute(String name, Object value)
LdapAttributes
with the
supplied name and value.name
- String
value
- Object
void addAttribute(String name, List<?> values)
LdapAttributes
with the
supplied name and values.name
- String
values
- List
void addAttributes(Collection<LdapAttribute> c)
Collection
of attributes to this
LdapAttributes
. The collection should contain
LdapAttribute
objects.c
- Collection
void addAttributes(Attributes a) throws NamingException
Attributes
to this
LdapAttributes
.a
- Attributes
NamingException
- if the attributes cannot be readvoid removeAttribute(LdapAttribute a)
LdapAttributes
.a
- LdapAttribute
void removeAttribute(String name)
name
- String
void removeAttributes(Collection<LdapAttribute> c)
Collection
of attributes from this
LdapAttributes
. The collection should contain
LdapAttribute
objects.c
- Collection
void removeAttributes(Attributes a) throws NamingException
Attributes
from
this LdapAttributes
.a
- Attributes
NamingException
- if the attributes cannot be readint size()
int
void clear()
LdapAttributes
.Attributes toAttributes()
Attributes
that represents this entry.Attributes
Copyright © 2014. All rights reserved.