IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.services.ldap.model
Class LDAPCreateRequest

java.lang.Object
  extended by com.ibm.btt.services.ldap.model.LDAPRequest
      extended by com.ibm.btt.services.ldap.model.LDAPCreateRequest

public class LDAPCreateRequest
extends LDAPRequest

This class supports the create request to the LDAP service.


Field Summary
 
Fields inherited from class com.ibm.btt.services.ldap.model.LDAPRequest
COMPID, requestType
 
Constructor Summary
LDAPCreateRequest()
          This constructor creates an LDAPCreateRequest object.
 
Method Summary
 void addAttributeToCreate(javax.naming.directory.Attribute attribute)
          Controls the attribute-to-create list.
 void addAttributeToCreate(java.lang.String key, java.lang.Object value)
          Performs equivalent functionality to calling addAttributeToCreate(Attribute), with the attribute object being constructed from the supplied arguments.
 javax.naming.directory.Attributes getAttributes()
          Returns a collection of the attributes to be associated with the newly created directory object.
 void mapFromContext(Context context)
          Supports externalization of an LDAP create request.
 void removeAttributeToCreate(java.lang.String key)
          Controls the attribute-to-create list.
 void setAttributes(javax.naming.directory.Attributes newAttributes)
          Sets the attributes to be associated with the newly created directory object.
 
Methods inherited from class com.ibm.btt.services.ldap.model.LDAPRequest
getBooleanValue, getIntValue, getName, getRequestType, getValue, setName, setRequestType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPCreateRequest

public LDAPCreateRequest()
This constructor creates an LDAPCreateRequest object.

Method Detail

addAttributeToCreate

public void addAttributeToCreate(java.lang.String key,
                                 java.lang.Object value)
Performs equivalent functionality to calling addAttributeToCreate(Attribute), with the attribute object being constructed from the supplied arguments.

Parameters:
key - java.lang.String
value - java.lang.Object

addAttributeToCreate

public void addAttributeToCreate(javax.naming.directory.Attribute attribute)
Controls the attribute-to-create list. This method adds the specified attribute to this list.

Parameters:
attribute - javax.naming.directory.Attribute

getAttributes

public javax.naming.directory.Attributes getAttributes()
Returns a collection of the attributes to be associated with the newly created directory object.

Returns:
javax.naming.directory.Attributes

mapFromContext

public void mapFromContext(Context context)
                    throws DSEException
Supports externalization of an LDAP create request. It maps external data definitions from a context into the request model.

Overrides:
mapFromContext in class LDAPRequest
Parameters:
context - com.ibm.btt.base.Context
Throws:
DSEException

removeAttributeToCreate

public void removeAttributeToCreate(java.lang.String key)
Controls the attribute-to-create list. This utility method removes the attribute with the supplied name from this list.

Parameters:
key - java.lang.String

setAttributes

public void setAttributes(javax.naming.directory.Attributes newAttributes)
Sets the attributes to be associated with the newly created directory object.

Parameters:
newAttributes - javax.naming.directory.Attributes

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011