edu.vt.middleware.ldap.bean
Interface LdapAttributes

All Known Implementing Classes:
AbstractLdapAttributes, OrderedLdapBeanFactory.OrderedLdapAttributes, SortedLdapBeanFactory.SortedLdapAttributes, UnorderedLdapBeanFactory.UnorderedLdapAttributes

public interface LdapAttributes

LdapAttributes represents a collection of ldap attribute.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Method Summary
 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.
 

Method Detail

getAttributes

Collection<LdapAttribute> getAttributes()
This returns a Collection of LdapAttribute for this LdapAttributes.

Returns:
List

getAttribute

LdapAttribute getAttribute(String name)
This returns the LdapAttribute for this LdapAttributes with the supplied name.

Parameters:
name - String
Returns:
LdapAttribute

getAttributeNames

String[] getAttributeNames()
This returns an array of all the attribute names for this LdapAttributes.

Returns:
String[]

addAttribute

void addAttribute(LdapAttribute a)
This adds a new attribute to this LdapAttributes.

Parameters:
a - LdapAttribute

addAttribute

void addAttribute(String name,
                  Object value)
This adds a new attribute to this LdapAttributes with the supplied name and value.

Parameters:
name - String
value - Object

addAttribute

void addAttribute(String name,
                  List<?> values)
This adds a new attribute to this LdapAttributes with the supplied name and values.

Parameters:
name - String
values - List

addAttributes

void addAttributes(Collection<LdapAttribute> c)
This adds a Collection of attributes to this LdapAttributes. The collection should contain LdapAttribute objects.

Parameters:
c - Collection

addAttributes

void addAttributes(Attributes a)
                   throws NamingException
This adds the attributes in the supplied Attributes to this LdapAttributes.

Parameters:
a - Attributes
Throws:
NamingException - if the attributes cannot be read

removeAttribute

void removeAttribute(LdapAttribute a)
This removes an attribute from this LdapAttributes.

Parameters:
a - LdapAttribute

removeAttribute

void removeAttribute(String name)
This removes the attribute with the supplied name.

Parameters:
name - String

removeAttributes

void removeAttributes(Collection<LdapAttribute> c)
This removes a Collection of attributes from this LdapAttributes. The collection should contain LdapAttribute objects.

Parameters:
c - Collection

removeAttributes

void removeAttributes(Attributes a)
                      throws NamingException
This removes the attributes in the supplied Attributes from this LdapAttributes.

Parameters:
a - Attributes
Throws:
NamingException - if the attributes cannot be read

size

int size()
This returns the number of attributes in this attributes.

Returns:
int

clear

void clear()
This removes all attributes from this LdapAttributes.


toAttributes

Attributes toAttributes()
This returns an Attributes that represents this entry.

Returns:
Attributes


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.