List of usage examples for com.liferay.portal.kernel.portlet PortletPreferencesFactoryUtil getExistingPortletSetup
public static PortletPreferences getExistingPortletSetup(PortletRequest portletRequest) throws PortalException
From source file:com.liferay.blogs.web.internal.portlet.action.TrackbackMVCActionCommand.java
License:Open Source License
protected boolean isCommentsEnabled(ActionRequest actionRequest) throws Exception { PortletPreferences portletPreferences = PortletPreferencesFactoryUtil .getExistingPortletSetup(actionRequest); if (portletPreferences == null) { portletPreferences = actionRequest.getPreferences(); }//from w ww .j av a 2 s . c o m return GetterUtil.getBoolean(portletPreferences.getValue("enableComments", null), true); }