portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/core PortalControlParameter.java
Date Mon, 23 Feb 2004 13:14:55 GMT
weaver      2004/02/23 05:14:55

  Modified:    portal/src/java/org/apache/jetspeed/engine/core
                        PortalControlParameter.java
  Log:
  now uses registry component
  
  Revision  Changes    Path
  1.9       +6 -4      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/core/PortalControlParameter.java
  
  Index: PortalControlParameter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/core/PortalControlParameter.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PortalControlParameter.java	20 Feb 2004 04:26:51 -0000	1.8
  +++ PortalControlParameter.java	23 Feb 2004 13:14:54 -0000	1.9
  @@ -62,9 +62,10 @@
   import javax.portlet.PortletMode;
   import javax.portlet.WindowState;
   
  +import org.apache.jetspeed.Jetspeed;
   import org.apache.jetspeed.aggregator.PortletWindowFactory;
  +import org.apache.jetspeed.components.portletregsitry.PortletRegistryComponent;
   import org.apache.jetspeed.exception.JetspeedException;
  -import org.apache.jetspeed.registry.JetspeedPortletRegistry;
   import org.apache.pluto.om.portlet.PortletDefinition;
   import org.apache.pluto.om.window.PortletWindow;
   import org.apache.pluto.util.StringUtils;
  @@ -272,8 +273,9 @@
                   String portletName = idTokenizer.nextToken();
                   String sequence = idTokenizer.nextToken();
                   String entityName = idTokenizer.nextToken();
  -
  -                PortletDefinition portletDefinition = JetspeedPortletRegistry.getPortletDefinitionByUniqueName(entityName
+ "::" + portletName);
  +                PortletRegistryComponent regsitry =
  +                    (PortletRegistryComponent) Jetspeed.getComponentManager().getComponent(PortletRegistryComponent.class);
  +                PortletDefinition portletDefinition = regsitry.getPortletDefinitionByUniqueName(entityName
+ "::" + portletName);
                   if (portletDefinition == null)
                   {
                       throw new JetspeedException("Failed to load: " + portletName + " from
registry");
  
  
  

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


Mime
View raw message