Package com.liferay.portal.servlet

Examples of com.liferay.portal.servlet.PortletContextWrapper


      map.remove(portlet.getPortletId());
    }

    if (portlet.isWARFile()) {
      PortletContextWrapper pcw =
        (PortletContextWrapper)PortletContextPool.get(
          portlet.getPortletId());

      pcw.removePortletInstance();
    }

    destroyPortletConfig(portlet);
    destroyPortletContext(portlet);
  }
View Full Code Here


    PortletContext portletCtx =
      (PortletContext)map.get(portlet.getPortletId());

    if (portletCtx == null) {
      if (portlet.isWARFile()) {
        PortletContextWrapper pcw =
          PortletContextPool.get(portlet.getPortletId());

        ctx = pcw.getServletContext();
      }

      portletCtx = new PortletContextImpl(ctx);

      map.put(portlet.getPortletId(), portletCtx);
View Full Code Here

    if (portletInstance == null) {
      PortletConfig portletConfig = getPortletConfig(portlet, ctx);

      if (portlet.isWARFile()) {
        PortletContextWrapper pcw =
          PortletContextPool.get(portlet.getPortletId());

        portletInstance = portlet.init(
          portletConfig, pcw.getPortletInstance());
      }
      else {
        portletInstance = portlet.init(portletConfig);
      }
View Full Code Here

  public static PreferencesValidator getPreferencesValidator(
    Portlet portlet) {

    if (portlet.isWARFile()) {
      PortletContextWrapper pcw =
        PortletContextPool.get(portlet.getPortletId());

      return pcw.getPreferencesValidator();
    }
    else {
      PreferencesValidator prefsValidator = null;

      if (Validator.isNotNull(portlet.getPreferencesValidator())) {
View Full Code Here

          bundle = StrutsResourceBundle.getBundle(
            _portletId, companyId, locale);
        }
        else {
          PortletContextWrapper pcw =
            PortletContextPool.get(_portletId);

          bundle = pcw.getResourceBundle(locale);
        }

        bundle = new PortletResourceBundle(bundle, _portletInfo);

        _bundlePool.put(poolId, bundle);
View Full Code Here

          CustomUserAttributes cua =
            (CustomUserAttributes)cuaInstances.get(attrCustomClass);

          if (cua == null) {
            if (_portlet.isWARFile()) {
              PortletContextWrapper pcw =
                (PortletContextWrapper)PortletContextPool.get(
                  _portlet.getPortletId());

              cua =
                (CustomUserAttributes)
                  pcw.getCustomUserAttributes().get(
                    attrCustomClass);

              cua = (CustomUserAttributes)cua.clone();
            }
            else {
View Full Code Here

TOP

Related Classes of com.liferay.portal.servlet.PortletContextWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.