Package org.apache.pluto.internal.impl

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


        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

  @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

        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

        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

        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

        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

        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

TOP

Related Classes of org.apache.pluto.internal.impl.PortletContextImpl

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.