com.sas.edir
Interface EnterpriseDirectoryAttributes


public interface EnterpriseDirectoryAttributes

An interface to abstract a set of attributes from the directory service

Version:
1.0
Author:
SAS

Method Summary
 EnterpriseDirectoryAttribute get(java.lang.String attrName)
          Return an attribute with the given name.
 java.util.Enumeration getAll()
          Get all of the attributes in this set.
 java.util.Enumeration getNames()
          Get all of the attribute names.
 EnterpriseDirectoryAttribute put(EnterpriseDirectoryAttribute attr)
          Put a new attribute into the set.
 EnterpriseDirectoryAttribute put(java.lang.String attrName, java.lang.Object val)
          Put a new attribute into the set.
 EnterpriseDirectoryAttribute remove(java.lang.String attrName)
          Remove an attribute from the set.
 int size()
          Returns the number of attributes in this attribute set.
 

Method Detail

get

public EnterpriseDirectoryAttribute get(java.lang.String attrName)
Return an attribute with the given name.
Parameters:
attrID - The attribute to return;
Returns:
The attribute, if found, or NULL.

getAll

public java.util.Enumeration getAll()
Get all of the attributes in this set.

Returns:
An enumeration of all the attributes in this set.

getNames

public java.util.Enumeration getNames()
Get all of the attribute names.

Returns:
An enumeration of all the attribute names in this set.

put

public EnterpriseDirectoryAttribute put(EnterpriseDirectoryAttribute attr)
Put a new attribute into the set.

Parameters:
attr - Attribute to add to the set.
Returns:
The original value of the attribute, if it existed, or NULL.

put

public EnterpriseDirectoryAttribute put(java.lang.String attrName,
                                        java.lang.Object val)
Put a new attribute into the set.

Parameters:
attrName - The name of the attribute being added.
val - The value of the attribute.
Returns:
The old value of the attribute if it existed, or NULL.

remove

public EnterpriseDirectoryAttribute remove(java.lang.String attrName)
Remove an attribute from the set.

Parameters:
attrName - The name of the attribute to remove.
Returns:
The attribute, if found, or NULL.

size

public int size()
Returns the number of attributes in this attribute set.