Examples of PortletContextWrapper


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

Examples of com.liferay.portal.servlet.PortletContextWrapper

    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

Examples of com.liferay.portal.servlet.PortletContextWrapper

    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

Examples of com.liferay.portal.servlet.PortletContextWrapper

  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

Examples of com.liferay.portal.servlet.PortletContextWrapper

          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

Examples of com.liferay.portal.servlet.PortletContextWrapper

          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

Examples of org.apache.empire.struts2.web.portlet.PortletContextWrapper

            if (portletContext.getAttribute( WebApplication.APPLICATION_NAME )==null)
            {
                Object app = createObject( appClassName );
                if (app instanceof WebApplication)
                {
                    ((WebApplication)app).init( new PortletContextWrapper(portletContext) );
                }
                else
                    log.warn("Application object does not implement IWebApplication!");
                // Store it
                portletContext.setAttribute( WebApplication.APPLICATION_NAME, app);
View Full Code Here

Examples of org.apache.empire.struts2.web.portlet.PortletContextWrapper

            if (portletContext.getAttribute( WebApplication.APPLICATION_NAME )==null)
            {
                Object app = createObject( appClassName );
                if (app instanceof WebApplication)
                {
                    ((WebApplication)app).init( new PortletContextWrapper(portletContext) );
                }
                else
                    log.warn("Application object does not implement IWebApplication!");
                // Store it
                portletContext.setAttribute( WebApplication.APPLICATION_NAME, app);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.webapp.wrappers.PortletContextWrapper

    private PortletContext _getPortletContext()
    {
      if(_context == null)
      {
        _context = new PortletContextWrapper((PortletContext)_ec.getContext());
      }
      return _context;
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.webapp.wrappers.PortletContextWrapper

    {
      if(_context == null)
      {
        if(request instanceof PortletRequestWrapper)
        {
          _context = new PortletContextWrapper((PortletContext)getExternalContext().getContext());
        }
      }
     
      super.setRequest(request);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.