List of usage examples for com.liferay.portal.kernel.portlet PortletPreferencesFactoryUtil getPortletSetup
public static PortletPreferences getPortletSetup(PortletRequest portletRequest, String portletId) throws PortalException
From source file:com.liferay.exportimport.web.internal.portlet.action.ActionUtil.java
License:Open Source License
protected static PortletPreferences getPortletSetup(HttpServletRequest request, PortletPreferences portletConfigPortletSetup, PortletPreferences portletSetup) throws PortalException { String portletResource = ParamUtil.getString(request, "portletResource"); if (Validator.isNull(portletResource)) { return portletConfigPortletSetup; }//from w ww . j av a 2 s .co m if (portletSetup != null) { return portletSetup; } return PortletPreferencesFactoryUtil.getPortletSetup(request, portletResource); }