List of usage examples for com.liferay.portal.kernel.model Portlet getTemplateHandlerClass
public String getTemplateHandlerClass();
From source file:com.liferay.portlet.display.template.exportimport.portlet.preferences.processor.PortletDisplayTemplateExportCapability.java
License:Open Source License
protected String getDisplayStyle(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) { try {/*from w w w . jav a 2 s . co m*/ Portlet portlet = _portletLocalService.getPortletById(portletDataContext.getCompanyId(), portletId); if (Validator.isNotNull(portlet.getTemplateHandlerClass())) { return portletPreferences.getValue("displayStyle", null); } } catch (Exception e) { } return null; }
From source file:com.liferay.portlet.display.template.exportimport.portlet.preferences.processor.PortletDisplayTemplateExportCapability.java
License:Open Source License
protected long getDisplayStyleGroupId(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) { try {/*from w ww . j av a2 s .c o m*/ Portlet portlet = _portletLocalService.getPortletById(portletDataContext.getCompanyId(), portletId); if (Validator.isNotNull(portlet.getTemplateHandlerClass())) { return GetterUtil.getLong(portletPreferences.getValue("displayStyleGroupId", null)); } } catch (Exception e) { } return 0; }