Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129732

Override OSGI configurations using Portal Properties

    Details

      Description

      Description

      LPS-126920 adds support for overriding OSGI configuration via Portal Properties. This story is to provide visual feedback for LPS-126920.

      Functional Requirements:

      1. OSGI configuration defined in Portal Properties via LPS-126920 is immutable through the UI. The UI shall show the user that they cannot change this value through System Settings.
      2. Provide a message/text indicating that the value cannot be changed because the configuration has been defined in Portal Properties.

      Implementation Details:

      1. The DDMFormFields of the autogenerated UI are created and configured in ConfigurationModelToDDMFormConverter.
      2. Make use of ConfigurationOverridePropertiesUtil#getOverrideProperties to retrieve a map of overridden properties for a particular pid. If no map is found, there are no overridden properties.
      3. If the field's name is found in that map, it is an overridden field and should be disabled in the UI.
      4. Since configuration-admin-web makes use of DDM fields, we can mark the field as readOnly using ddmFormField.setReadOnly(true).
      5. For messaging, we should update the field's tooltip using ddmFormField.setTip(...). Please be aware that the tip is often already set with the field's description, so be sure to preserve the existing description in the tooltip. We should append a message like so: "This field has been set by a portal property and cannot be changed here."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              koor.gai Koor Gai
              Reporter:
              leonard.bejosano Leonard Bejosano
              Engineering Assignee:
              Albert Lee
              Recent user:
              Eduardo Zoby
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master