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()

Attach filesAttach ScreenshotWatch issueCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.0.0
    • 2.0.0.AM3
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            elecharny Emmanuel L├ęcharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment