Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

oracle.mail.ldap
Class ESDSAddData

java.lang.Object
  |
  +--oracle.mail.ldap.ESDSAddData

public final class ESDSAddData
extends java.lang.Object

This class helps the caller set the attribute names and values for the entry to be added to the directory. To avoid Classcastexception, binary data is stored in a diff hash.


Constructor Summary
ESDSAddData()
Constructor default
ESDSAddData(java.lang.String DN)
Constructor, sets the DN for the new entry

Method Summary
void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
This method will add an attribute and it's value for the new entry.
void addAttribute(java.lang.String attributeName, java.util.Vector values)
This method will add an attribute and it's values for the new entry.
void addBinaryAttribute(java.lang.String attributeName, byte[] value)
This method will add a binary value for an attribute.
void changeAttributeValue(java.lang.String attributeName, java.util.Vector values)
java.util.Vector getAttribute(java.lang.String attribName)
This method returns the value of an attribute that has been set.
byte[] getBinaryAttribute(java.lang.String attribName)
This method returns the value of a binary attribute that has been set.
java.lang.String getDN()
This method will get the value of the DN.
java.util.Hashtable getESDSAddEntryData()
This method returns the hashtable of attribute name and values, used internally
void setDN(java.lang.String DN)
This method will set the value of the DN.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ESDSAddData

public ESDSAddData(java.lang.String DN)
Constructor, sets the DN for the new entry

ESDSAddData

public ESDSAddData()
Constructor default

Method Detail

setDN

public void setDN(java.lang.String DN)
This method will set the value of the DN.
Parameters:
DN - The DN of the new entry
Returns:
void

getDN

public java.lang.String getDN()
This method will get the value of the DN.
Returns:
DN

addAttribute

public void addAttribute(java.lang.String attributeName,
                         java.lang.String attributeValue)
This method will add an attribute and it's value for the new entry. This method can be called multiple times to set multiple values for an attribute. If the user wants to add multiple values to the attribute in a single call, can use the overloaded method
Parameters:
attributeName - The name of the attribute
attributeValue - Value of the attribute
Returns:
void

addAttribute

public void addAttribute(java.lang.String attributeName,
                         java.util.Vector values)
This method will add an attribute and it's values for the new entry.
Parameters:
attributeName - The name of the attribute
values - Values of the attribute
Returns:
void

addBinaryAttribute

public void addBinaryAttribute(java.lang.String attributeName,
                               byte[] value)
This method will add a binary value for an attribute. In case the attribute exists, the value gets overwritten.
Parameters:
attributeName - The name of the attribute
attributeValue - Value of the attribute byte[]
Returns:
void

getESDSAddEntryData

public java.util.Hashtable getESDSAddEntryData()
This method returns the hashtable of attribute name and values, used internally

getAttribute

public java.util.Vector getAttribute(java.lang.String attribName)
This method returns the value of an attribute that has been set. This will work only if attribute value is ascii, in case of binary attr value, the getBinaryAttribute API should be used.
Parameters:
attribName - name of attribute
Returns:
value of attr, a Vector of Strings

changeAttributeValue

public void changeAttributeValue(java.lang.String attributeName,
                                 java.util.Vector values)

getBinaryAttribute

public byte[] getBinaryAttribute(java.lang.String attribName)
This method returns the value of a binary attribute that has been set.
Parameters:
attribName - name of attribute
Returns:
value of attr, a byte[]

Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

Copyright © 1988, 2005, Oracle. All rights reserved.