directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <ayyagariki...@gmail.com>
Subject [Client API] Modify operation
Date Sun, 31 May 2009 10:23:36 GMT

hello guys,

     Here is my take on client-api starting with modify operation

     The proposed methods are

blocking operations :-

  * ModifyResponse modify( Entry entry, ModificationOperation modOp )
  * ModifyResponse modify( ModifyRequest modRequest )

  * ModifyResponse modify( Entry entry, ModificationOperation modOp, Control... controls )
  * ModifyResponse modify( ModifyRequest modRequest, Control... controls )

Non-blocking operations :-

  * ModifyResponse modify( Entry entry, ModificationOperation modOp, ModifyListener listener
)
  * ModifyResponse modify( ModifyRequest modRequest, ModifyListener listener )

  * ModifyResponse modify( Entry entry, ModificationOperation modOp, ModifyListener listener,
Control... controls )
  * ModifyResponse modify( ModifyRequest modRequest, ModifyListener listener, Control... controls
)


The ModifyRequest contains the following methods

* ModifyRequest( LdapDN dn ) - constructor

* void add( EntryAttribute attr )
* void add( String attributeName, String... attributeValue )
* void add( String attributeName, byte[]... attributeValue ) - this is a overloaded version
with byte[] values, same for
   replace and remove operations


      {same parameters are applied for all 'replace' and 'remove' methods, they were not mentioned
here for the sake of
       brevity }

requesting your comments

Kiran Ayyagari

Mime
View raw message