portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r771632 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedFilterManagerService.java
Date Tue, 05 May 2009 09:08:06 GMT
Author: woonsan
Date: Tue May  5 09:08:06 2009
New Revision: 771632

URL: http://svn.apache.org/viewvc?rev=771632&view=rev
Log:
Changes on FilterManagerService implementation according to PLUTO-558 change.
(Because pluto's changes are already committed and j2-admin depends on the pluto api, I have
to do this right now.)

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedFilterManagerService.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedFilterManagerService.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedFilterManagerService.java?rev=771632&r1=771631&r2=771632&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedFilterManagerService.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/container/services/JetspeedFilterManagerService.java
Tue May  5 09:08:06 2009
@@ -16,11 +16,11 @@
  */
 package org.apache.jetspeed.container.services;
 
-import org.apache.jetspeed.factory.PortletFactory;
-import org.apache.jetspeed.om.portlet.PortletApplication;
 import org.apache.jetspeed.container.FilterManager;
+import org.apache.jetspeed.factory.PortletFactory;
+import org.apache.jetspeed.om.portlet.PortletDefinition;
 import org.apache.pluto.container.FilterManagerService;
-import org.apache.pluto.container.om.portlet.PortletApplicationDefinition;
+import org.apache.pluto.container.PortletWindow;
 
 public class JetspeedFilterManagerService implements FilterManagerService
 {
@@ -32,8 +32,10 @@
         this.portletFactory = portletFactory;
     }
     
-    public FilterManager getFilterManager(PortletApplicationDefinition portletAppDD, String
portletName, String lifeCycle)
+    public FilterManager getFilterManager(PortletWindow window, String lifeCycle)
     {
-        return new JetspeedFilterManager(this.portletFactory, (PortletApplication) portletAppDD,
portletName, lifeCycle);
+        PortletDefinition def = ((org.apache.jetspeed.container.PortletWindow) window).getPortletDefinition();
+        return new JetspeedFilterManager(this.portletFactory, def.getApplication(), def.getPortletName(),
lifeCycle);
     }
+    
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message