RE: Configuring a Liferay built-in OSGi Configuration object

Christopher Virtucio, modified 5 Years ago. Junior Member Posts: 33 Join Date: 9/26/17 Recent Posts
Hi,

We need to configure the JournalGroupServiceConfiguration object (see: https://github.com/liferay/liferay-portal/blob/4072a7e5766d6a5258832d16da9a8811c8f50edd/modules/apps/journal/journal-api/src/main/java/com/liferay/journal/configuration/JournalGroupServiceConfiguration.java ). The documentation (see: https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/making-your-applications-configurable ) explains how to make something similar, but not how to create the properties that get injected into such an object.

How do we inject the JournalGroupServiceConfiguration object with our own configuration properties?

Thanks,

CJ
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Christopher Virtucio:

How do we inject the JournalGroupServiceConfiguration object with our own configuration properties?
If I understand you right: Easiest by finding the configuration in question in the configuration UI, configuring there and then export the values. The resulting file that you download can be inspected, changed and deployed to any Liferay instance. You'll just have to keep the name, as it's the key for this configuration
Christopher Virtucio, modified 5 Years ago. Junior Member Posts: 33 Join Date: 9/26/17 Recent Posts
Hi Olaf,

Thanks for the response. That's what I saw in the documentation as well, but that seems to only be available for System Settings. The configuration we're trying to customize (see attached) is called email-article-added-enabled, which can be found under Side Navigation > Site's Name > Content > Web Content > Configuration. There's no Export Settings button for this page. 

CJ