Example usage for com.liferay.portal.kernel.model Portlet isRequiresNamespacedParameters

List of usage examples for com.liferay.portal.kernel.model Portlet isRequiresNamespacedParameters

Introduction

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

Prototype

public boolean isRequiresNamespacedParameters();

Source Link

Document

Returns true if the portlet will only process namespaced parameters.

Usage

From source file:com.liferay.faces.bridge.ext.context.internal.PortalContextBridgeLiferayImpl.java

License:Open Source License

private boolean isLiferayNamespacingParameters(PortletRequest portletRequest) {

    boolean liferayNamespacingParameters = false;
    String portletId = (String) portletRequest.getAttribute(WebKeys.PORTLET_ID);

    try {/*from  w w  w .j a  v  a2  s .c om*/

        ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY);
        Portlet portlet = PortletLocalServiceUtil.getPortletById(themeDisplay.getCompanyId(), portletId);
        liferayNamespacingParameters = portlet.isRequiresNamespacedParameters();
    } catch (SystemException e) {
        logger.error(e);
    }

    return liferayNamespacingParameters;
}