Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-306

Add a Control[] parameter in operations, like what we have for lookup()

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.0
    • Fix Version/s: 2.0.0.AM3
    • Labels:
      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;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel Lecharny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: