Montag, 20. Juni 2016

Write preferences globally so you can read anywhere

ServiceContext serviceContext = ServiceContextFactory.getInstance(renderRequest);
PortletPreferences portletPreferences = PrefsPropsUtil.getPreferences(
serviceContext.getCompanyId());
portletPreferences.setValue("key","Value");
portletPreferences.store();

and then read like PropsUtil.get("key");

Keine Kommentare:

Kommentar veröffentlichen