Systemmanic
Systemmanic

Reputation: 3130

Liferay Control panel programmatic access

I'm trying to fetch the setting value of the email reply address with:

PropsUtil.get(PropsKeys.ADMIN_EMAIL_FROM_ADDRESS)

But this returns the original value from the portal-ext.properties file, which has since been updated in the Control panel to a different value.

What *Service or *Util do I use to access settings in the Liferay control panel?

I've hunted through the source of Liferay but I can't seem to find a way.

Any ideas?

Upvotes: 0

Views: 66

Answers (1)

Pankaj Kathiriya
Pankaj Kathiriya

Reputation: 4210

Use PrefsPropsUtil instead of PropsUtil

Upvotes: 1

Related Questions