Update of 
/var/cvs/contributions/CMSContainer/cmsc/portal/src/java/com/finalist/pluto
In directory 
james.mmbase.org:/tmp/cvs-serv1180/cmsc/portal/src/java/com/finalist/pluto

Modified Files:
        PortletContainerImpl.java 
Log Message:
CMSC-749 Newsletter: PDA version of the newsletter


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/portal/src/java/com/finalist/pluto
See also: http://www.mmbase.org/jira/browse/CMSC-749


Index: PortletContainerImpl.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/portal/src/java/com/finalist/pluto/PortletContainerImpl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- PortletContainerImpl.java   21 Apr 2008 10:11:51 -0000      1.6
+++ PortletContainerImpl.java   9 May 2008 10:06:57 -0000       1.7
@@ -31,9 +31,6 @@
 import org.apache.pluto.factory.PortletObjectAccess;
 import org.apache.pluto.invoker.PortletInvoker;
 import org.apache.pluto.invoker.PortletInvokerAccess;
-import org.apache.pluto.om.common.ObjectID;
-import org.apache.pluto.om.portlet.PortletApplicationDefinition;
-import org.apache.pluto.om.portlet.PortletDefinition;
 import org.apache.pluto.om.window.PortletWindow;
 import org.apache.pluto.services.PortletContainerEnvironment;
 
@@ -42,9 +39,9 @@
 import com.finalist.cmsc.portalImpl.PortalConstants;
 import com.finalist.cmsc.services.sitemanagement.SiteManagement;
 import com.finalist.cmsc.services.sitemanagement.SiteManagementAdmin;
-import com.finalist.pluto.portalImpl.aggregation.*;
+import com.finalist.pluto.portalImpl.aggregation.EmptyFragment;
+import com.finalist.pluto.portalImpl.aggregation.PortletFragment;
 import com.finalist.pluto.portalImpl.core.CmscPortletMode;
-import 
com.finalist.pluto.portalImpl.om.servlet.impl.WebApplicationDefinitionImpl;
 
 /**
  * Implements the Pluto Container.
@@ -55,25 +52,11 @@
    private static Log log = LogFactory.getLog(PortletContainerImpl.class);
 
    private String uniqueContainerName;
-   private static String CONTAINER_SUPPORTS_BUFFERING = 
"portletcontainer.supportsBuffering";
-   private boolean supportsBuffering;
-
 
    public void init(String uniqueContainerName, ServletConfig servletConfig, 
PortletContainerEnvironment environment,
          Properties properties) throws PortletContainerException {
 
       this.uniqueContainerName = uniqueContainerName;
-
-      Boolean b = (Boolean) properties.get(CONTAINER_SUPPORTS_BUFFERING);
-      if (b == null) {
-         log.warn("org.apache.pluto.PortletContainerImpl#init(): " + "Couldn't 
retrieve parameter \""
-               + CONTAINER_SUPPORTS_BUFFERING + "\" from "
-               + "passed properties object. Falling back to default value 
\"FALSE\"");
-         supportsBuffering = false;
-      }
-      else {
-         supportsBuffering = b.booleanValue();
-      }
       super.init(uniqueContainerName, servletConfig, environment, properties);
    }
 
@@ -152,41 +135,4 @@
       }
    }
 
-
-   public void portletLoad(PortletWindow portletWindow, HttpServletRequest 
servletRequest,
-         HttpServletResponse servletResponse) throws PortletException {
-
-      PortletContainerServices.prepare(uniqueContainerName);
-      PortletInvoker invoker = null;
-
-      log.debug("PortletContainerImpl.portletLoad(" + portletWindow.getId() + 
") called.");
-
-      RenderRequest renderRequest = PortletObjectAccess
-            .getRenderRequest(portletWindow, servletRequest, servletResponse);
-
-      RenderResponse renderResponse = 
PortletObjectAccess.getRenderResponse(portletWindow, servletRequest,
-            servletResponse, supportsBuffering);
-
-      // FINALIST ADDED content path
-
-      PortletDefinition def = 
portletWindow.getPortletEntity().getPortletDefinition();
-      if (def == null) {
-         throw new PortletException("PortletDefinition not found for window " 
+ portletWindow.getId());
-      }
-      // store the context path in the webapp.
-      PortletApplicationDefinition app = def.getPortletApplicationDefinition();
-      WebApplicationDefinitionImpl wa = (WebApplicationDefinitionImpl) 
app.getWebApplicationDefinition();
-      wa.setContextRoot(servletRequest.getContextPath());
-
-      // FINALIST ADDED context path
-
-      invoker = PortletInvokerAccess.getPortletInvoker(def);
-      try {
-         invoker.load(renderRequest, renderResponse);
-      }
-      finally {
-         PortletInvokerAccess.releasePortletInvoker(invoker);
-         PortletContainerServices.release();
-      }
-   }
 }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to