Example usage for com.liferay.portal.tools.deploy PortletDeployer JSF_STANDARD

List of usage examples for com.liferay.portal.tools.deploy PortletDeployer JSF_STANDARD

Introduction

In this page you can find the example usage for com.liferay.portal.tools.deploy PortletDeployer JSF_STANDARD.

Prototype

String JSF_STANDARD

To view the source code for com.liferay.portal.tools.deploy PortletDeployer JSF_STANDARD.

Click Source Link

Usage

From source file:com.liferay.portlet.InvokerPortletImpl.java

License:Open Source License

public void prepare(com.liferay.portal.model.Portlet portletModel, Portlet portlet,
        PortletContext portletContext) throws PortletException {

    _portletModel = portletModel;// w  w w.  j a va2 s.c  om
    _portletId = _portletModel.getPortletId();
    _portlet = portlet;
    _portletContextImpl = (PortletContextImpl) portletContext;

    if (_log.isDebugEnabled()) {
        _log.debug("Create root cache wrapper for " + _portletContextImpl.getPortlet().getPortletId());
    }

    Map<String, String> initParams = portletModel.getInitParams();

    _checkAuthToken = GetterUtil.getBoolean(initParams.get("check-auth-token"), true);

    if (ClassUtil.isSubclass(_portlet.getClass(), PortletDeployer.JSF_MYFACES)
            || ClassUtil.isSubclass(_portlet.getClass(), PortletDeployer.JSF_STANDARD)
            || ClassUtil.isSubclass(_portlet.getClass(), PortletDeployer.JSF_SUN)) {

        _facesPortlet = true;
    }

    _strutsPortlet = ClassUtil.isSubclass(portlet.getClass(), StrutsPortlet.class);
    _strutsBridgePortlet = ClassUtil.isSubclass(portlet.getClass(),
            "org.apache.portals.bridges.struts.StrutsPortlet");
    _expCache = portletModel.getExpCache();
    setPortletFilters();
}