Examples of PortletContextImpl


Examples of com.liferay.portlet.PortletContextImpl

          PortletContextPool.get(portlet.getPortletId());

        ctx = pcw.getServletContext();
      }

      portletCtx = new PortletContextImpl(ctx);

      map.put(portlet.getPortletId(), portletCtx);
    }

    return portletCtx;
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletContextImpl

    // org.apache.pluto.factory.PortletContextFactory implementation ------------------------------
    public PortletContext getPortletContext(javax.servlet.ServletContext servletContext,
                                            PortletApplicationDefinition portletApplicationDefinition)
    {
        return new PortletContextImpl(servletContext, portletApplicationDefinition);
    }
View Full Code Here

Examples of org.apache.pluto.core.impl.PortletContextImpl

    // org.apache.pluto.factory.PortletContextFactory implementation ------------------------------
    public PortletContext getPortletContext(javax.servlet.ServletContext servletContext,
                                            PortletApplicationDefinition portletApplicationDefinition)
    {
        return new PortletContextImpl(servletContext, portletApplicationDefinition);
    }
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

    public InternalPortletContext getPortletContext(ServletContext servletContext)
    throws PortletContainerException {
        if (!portletContexts.containsKey(servletContext)) {
            PortletAppDD portletAppDD = PortletDescriptorRegistry.getRegistry()
                .getPortletAppDD(servletContext);
            PortletContext portletContext = new PortletContextImpl(
                servletContext, portletAppDD);
            portletContexts.put(servletContext, portletContext);
        }
        return (InternalPortletContext) portletContexts.get(servletContext);
    }
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

        if (!portletContexts.containsKey(servletContext)) {

            PortletAppDD portletAppDD = PortletDescriptorRegistry.getRegistry()
                .getPortletAppDD(servletContext);

            PortletContextImpl portletContext = new PortletContextImpl(
                applicationId,  servletContext, portletAppDD);

            if (portletContext.getApplicationId() == null) {
                throw new IllegalStateException("Unable to resolve unique identifier for portletContext.");
            }
            portletContexts.put(applicationId, portletContext);
            fireRegistered(portletContext);
        }
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

  @SuppressWarnings("unchecked")
  public List<PortletContextImpl> getPortletApplications() {
    final PortletRegistryService portletRegistryService = optionalContainerServices.getPortletRegistryService();
    List<PortletContextImpl> contexts = new ArrayList<PortletContextImpl>();
    for (Iterator iter = portletRegistryService.getRegisteredPortletApplications(); iter.hasNext();) {
      PortletContextImpl context = (PortletContextImpl) iter.next();
     
      final List<PortletDD> portlets = context.getPortletApplicationDefinition().getPortlets();
      Collections.sort(portlets, new ComparableExtractingComparator<PortletDD, String>(String.CASE_INSENSITIVE_ORDER) {
              @Override
              protected String getComparable(PortletDD o) {
                    final List<DisplayNameDD> displayNames = o.getDisplayNames();
                    if (displayNames != null && displayNames.size() > 0) {
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

        if (!portletContexts.containsKey(applicationId)) {

            PortletAppDD portletAppDD = PortletDescriptorRegistry.getRegistry()
                .getPortletAppDD(servletContext);

            PortletContextImpl portletContext = new PortletContextImpl(
                applicationId, servletContext, portletAppDD);

            if (portletContext.getApplicationId() == null) {
                throw new IllegalStateException("Unable to resolve unique identifier for portletContext.");
            }
            portletContexts.put(applicationId, portletContext);

            fireRegistered(portletContext);
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

        if (!portletContexts.containsKey(applicationId)) {

            PortletAppDD portletAppDD = PortletDescriptorRegistry.getRegistry()
                .getPortletAppDD(servletContext);

            PortletContextImpl portletContext = new PortletContextImpl(
                applicationId, servletContext, portletAppDD);

            if (portletContext.getApplicationId() == null) {
                throw new IllegalStateException("Unable to resolve unique identifier for portletContext.");
            }
            portletContexts.put(applicationId, portletContext);

            fireRegistered(portletContext);
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

        if (!portletContexts.containsKey(applicationId)) {

            PortletAppDD portletAppDD = PortletDescriptorRegistry.getRegistry()
                .getPortletAppDD(servletContext);

            PortletContextImpl portletContext = new PortletContextImpl(
                applicationId, servletContext, portletAppDD);

            if (portletContext.getApplicationId() == null) {
                throw new IllegalStateException("Unable to resolve unique identifier for portletContext.");
            }
            portletContexts.put(applicationId, portletContext);

            fireRegistered(portletContext);
View Full Code Here

Examples of org.apache.pluto.internal.impl.PortletContextImpl

        if (!portletContexts.containsKey(servletContext)) {

            PortletAppDD portletAppDD = PortletDescriptorRegistry.getRegistry()
                .getPortletAppDD(servletContext);

            PortletContextImpl portletContext = new PortletContextImpl(
                applicationId,  servletContext, portletAppDD);

            if (portletContext.getApplicationId() == null) {
                throw new IllegalStateException("Unable to resolve unique identifier for portletContext.");
            }
            portletContexts.put(applicationId, portletContext);

            fireRegistered(portletContext);
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.