weaver 2003/08/01 13:08:31 Modified: portal/src/java/org/apache/jetspeed/aggregator PortletWindowFactory.java Log: Now uses PortletEntityService to retreive the PortletEntity Revision Changes Path 1.3 +4 -2 jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/PortletWindowFactory.java Index: PortletWindowFactory.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/aggregator/PortletWindowFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PortletWindowFactory.java 30 Jul 2003 18:33:42 -0000 1.2 +++ PortletWindowFactory.java 1 Aug 2003 20:08:31 -0000 1.3 @@ -53,8 +53,10 @@ */ package org.apache.jetspeed.aggregator; +import org.apache.jetspeed.Jetspeed; import org.apache.jetspeed.om.common.entity.PortletEntityImpl; import org.apache.jetspeed.om.common.window.PortletWindowImpl; +import org.apache.jetspeed.services.entity.PortletEntityAccess; import org.apache.pluto.om.entity.PortletEntity; import org.apache.pluto.om.portlet.PortletDefinition; import org.apache.pluto.om.window.PortletWindow; @@ -74,7 +76,7 @@ { // TODO: 1. use a factory entity from config file to create PortletEntities // TODO: 2. cache portlet windows and entities, don't create everytime - PortletEntity entity = new PortletEntityImpl(portletDefinition, portletName); + PortletEntity entity = PortletEntityAccess.getEntity(Jetspeed.getCurrentRequestContext(), portletDefinition, portletName); PortletWindow portletWindow = new PortletWindowImpl(entity.getId()); ((PortletWindowCtrl)portletWindow).setPortletEntity(entity); PortletWindowList windowList = entity.getPortletWindowList();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]