Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
1.0.0
-
None
Description
The lookup operation has the following available signatures :
- Entry lookup( Dn dn ) throws LdapException;
- Entry lookup( Dn dn, String... attributes ) throws LdapException;
- Entry lookup( Dn dn, Control[] controls, String... attributes ) throws LdapException;
- Entry lookup( String dn ) throws LdapException;
- Entry lookup( String dn, String... attributes ) throws LdapException;
- Entry lookup( String dn, Control[] controls, String... attributes ) throws LdapException;
This is convenient, as we can pass an array of controls to the operation. Although the lookup function internally resolves to a search, being able to pass a Control is a plus we should add to the other operations. For instance, the Modify operation signatures could be extended from :
- void modify( Dn dn, Modification... modifications ) throws LdapException;
- void modify( String dn, Modification... modifications ) throws LdapException;
- void modify( Entry entry, ModificationOperation modOp ) throws LdapException;
- ModifyResponse modify( ModifyRequest modRequest ) throws LdapException;
to
- void modify( Dn dn, Modification... modifications ) throws LdapException;
- void modify( Dn dn, Control[] controls, Modification... modifications ) throws LdapException;
- void modify( String dn, Modification... modifications ) throws LdapException;
- void modify( String dn, Control[] controls, Modification... modifications ) throws LdapException;
- void modify( Entry entry, ModificationOperation modOp ) throws LdapException;
- void modify( Entry entry, Control[] controls, ModificationOperation modOp ) throws LdapException;
- ModifyResponse modify( ModifyRequest modRequest ) throws LdapException;
- ModifyResponse modify( ModifyRequest modRequest, Control... controls ) throws LdapException;