留言板

How to obtain Liferay 7 Control Pannel properties

David Kirvan,修改在6 年前。

How to obtain Liferay 7 Control Pannel properties

New Member 帖子: 10 加入日期: 15-6-4 最近的帖子
I am trying to obtain the Control Pannel / System Settings / Foundation / LDAP Servers / User search filter property programmatically. I have tried using the PropsUtil without success.
In 6.2 the portlet was using the following to obtain the property needed.
PrefsPropsUtil.getString(companyId, PropsKeys.LDAP_IMPORT_USER_SEARCH_FILTER + "." + existingLDAPServerIds[0])

I can always put the value in the portal-ext.properties file but we would really like to use the property from the control panel.

Thanks for any direction you can provide.