Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4710

Web Console: Display templated name hint for factory configuration entries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-4.2.2
    • webconsole-4.2.6
    • Web Console
    • None

    Description

      currently for each factory configuration entry in the web console only a very cryptic name is displayed, consisting of the factory PID and a GUID. this is very inconvenient esp. if there are a lot of entries and the user want to edit a specific one:

      proposal: the author of the OSGi service with factory configuration should be able to provide a "nameHint" template to display a nice human-readable name, and display the pid+gui only as tooltip:

      attached is a patch with draft implementation of this based on an optional service property webconsole.configurationFactory.nameHint which can be set on the service which can reference other property names with placeholders. the web console then displays this name hint with the configured values replaced.

      example (using SCR annotation):

      @Property(name = "webconsole.configurationFactory.nameHint", value = "{serviceName}: {ribbonHosts}")
      

      this will help on a lot of services, e.g. factory configurations for log configuration an others.

      Attachments

        1. factoryconfig.gif
          10 kB
          Stefan Seifert
        2. factoryconfig_namehint.gif
          8 kB
          Stefan Seifert
        3. 150120_FELIX-4710_site_update.patch
          3 kB
          Stefan Seifert
        4. 150119_FELIX-4710_webconsole_namehint_update.patch
          7 kB
          Stefan Seifert
        5. 141126_FELIX-4710_webconsole_namehint.patch
          8 kB
          Stefan Seifert

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              sseifert Stefan Seifert
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: