List of usage examples for com.liferay.portal.model.impl ThemeSettingImpl namespaceProperty
public static String namespaceProperty(String device)
From source file:com.liferay.layout.admin.web.internal.portlet.action.ActionUtil.java
License:Open Source License
public void deleteThemeSettingsProperties(UnicodeProperties typeSettingsProperties, String device) { String keyPrefix = ThemeSettingImpl.namespaceProperty(device); Set<String> keys = typeSettingsProperties.keySet(); Iterator<String> itr = keys.iterator(); while (itr.hasNext()) { String key = itr.next();//from ww w .j av a2s .com if (key.startsWith(keyPrefix)) { itr.remove(); } } }
From source file:com.liferay.portlet.layoutsadmin.action.EditLayoutsAction.java
License:Open Source License
protected void deleteThemeSettingsProperties(UnicodeProperties typeSettingsProperties, String device) { String keyPrefix = ThemeSettingImpl.namespaceProperty(device); Set<String> keys = typeSettingsProperties.keySet(); Iterator<String> itr = keys.iterator(); while (itr.hasNext()) { String key = itr.next();//from ww w. ja v a 2 s.c o m if (key.startsWith(keyPrefix)) { itr.remove(); } } }