Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-358

Connections View can have an extension point for initial values

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.2.0
    • Fix Version/s: 1.3.0
    • Component/s: studio-connection
    • Labels:
      None

      Description

      We are trying to extend the Directory Studio for our commercial product. One of the requirements for us is that the Connections view should list a default connection to our server. Currently there are no ways to add it. An extension for that would be preferable.

      This can be even used by the Directory Studio itself. Connections for Apache Directory, OpenLDAP, etc can be added using default values like localhost, 10389, etc, so that user can start right away by clicking the connection.

      1. patch.txt
        11 kB
        Prakash G.R.

        Activity

        Hide
        Stefan Seelmann added a comment -

        Yes, good idea. If you have such a requirement, what about implementing and contributing it?

        I think there is also a workaround: You could create a proper connections.xml in
        ~/.ApacheDirectoryStudio/.metadata/.plugins/org.apache.directory.studio.connection.core/ with the default connection.

        Show
        Stefan Seelmann added a comment - Yes, good idea. If you have such a requirement, what about implementing and contributing it? I think there is also a workaround: You could create a proper connections.xml in ~/.ApacheDirectoryStudio/.metadata/.plugins/org.apache.directory.studio.connection.core/ with the default connection.
        Hide
        Prakash G.R. added a comment -

        I'm attaching the patch for this issue. The patch contains:

        The required extension point and its implementation
        An extension to provides Apache Directory by default.

        The initializers will be called only when the connections.xml is not present. The file will be created only when the default set is modified (either the default connections are changed/deleted or when a new connection is created). It works fine when new workspace is selected. Let me know whether the patch is fine.

        Show
        Prakash G.R. added a comment - I'm attaching the patch for this issue. The patch contains: The required extension point and its implementation An extension to provides Apache Directory by default. The initializers will be called only when the connections.xml is not present. The file will be created only when the default set is modified (either the default connections are changed/deleted or when a new connection is created). It works fine when new workspace is selected. Let me know whether the patch is fine.
        Hide
        Stefan Seelmann added a comment -

        Thanks Prakash for the patch.

        I applied the new extension point and the implementation. I haven't applied the example extension for ApacheDS, but it is good to know that it is easy now to add such an initial connection. Thanks again for the patch.

        Fixed with commit:
        http://svn.apache.org/viewvc?rev=686742&view=rev

        Show
        Stefan Seelmann added a comment - Thanks Prakash for the patch. I applied the new extension point and the implementation. I haven't applied the example extension for ApacheDS, but it is good to know that it is easy now to add such an initial connection. Thanks again for the patch. Fixed with commit: http://svn.apache.org/viewvc?rev=686742&view=rev

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Prakash G.R.
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development