Example usage for com.liferay.portal.kernel.model Theme getConfigurableSettings

List of usage examples for com.liferay.portal.kernel.model Theme getConfigurableSettings

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model Theme getConfigurableSettings.

Prototype

public Map<String, ThemeSetting> getConfigurableSettings();

Source Link

Usage

From source file:com.liferay.layout.admin.web.internal.portlet.action.ActionUtil.java

License:Open Source License

public UnicodeProperties updateThemeSettingsProperties(ActionRequest actionRequest, long companyId,
        UnicodeProperties typeSettingsProperties, String device, String deviceThemeId, boolean layout)
        throws Exception {

    Theme theme = _themeLocalService.getTheme(companyId, deviceThemeId);

    deleteThemeSettingsProperties(typeSettingsProperties, device);

    Map<String, ThemeSetting> themeSettings = theme.getConfigurableSettings();

    if (themeSettings.isEmpty()) {
        return typeSettingsProperties;
    }/* w w  w. ja va2 s .  c  o  m*/

    setThemeSettingProperties(actionRequest, typeSettingsProperties, themeSettings, device, layout);

    return typeSettingsProperties;
}