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

As a developer I would like to support scoped configuration without needing to declare a metatype as a factory

    Details

      Description

      At present it is necessary to add @Meta.OCD("factory = true") and @ExtendedObjectClassDefinition(factoryInstanceLabelAttribute = "companyId", scope = ExtendedObjectClassDefinition.Scope.COMPANY) to any metatype representing configuration that can be set at company level. Other scopes are similar. Additionally, the developer needs to write code to retrieve configuration with companyId=X when handling request for company X. This seems excessive considering multi-tenancy features are fundamental to the Liferay Portal.

      This story will explore if configuration factories can be removed as an implementation detail for scopes, and if improved tooling could be made available.

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  Master