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/velocity JetspeedPowerTool.java
Date Fri, 03 Sep 2004 13:26:52 GMT
weaver      2004/09/03 06:26:52

  Modified:    portal/src/java/org/apache/jetspeed/velocity
                        JetspeedPowerTool.java
  Log:
  Use constant
  
  Revision  Changes    Path
  1.20      +9 -3      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java
  
  Index: JetspeedPowerTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/velocity/JetspeedPowerTool.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- JetspeedPowerTool.java	28 Jul 2004 13:30:44 -0000	1.19
  +++ JetspeedPowerTool.java	3 Sep 2004 13:26:51 -0000	1.20
  @@ -40,6 +40,7 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.jetspeed.Jetspeed;
  +import org.apache.jetspeed.PortalReservedParameters;
   import org.apache.jetspeed.aggregator.ContentDispatcher;
   import org.apache.jetspeed.aggregator.FailedToRenderFragmentException;
   import org.apache.jetspeed.capabilities.CapabilityMap;
  @@ -134,7 +135,7 @@
       protected static final String RENDER_REQUEST_ATTR = "renderRequest";
       public static final String DISPATCHER_ATTR = "dispatcher";
       private static final String COLUMNS_ATTR = "columns";
  -    public static final String PAGE_ATTR = "page";
  +  
       public static final String FRAGMENT_ATTR = "fragment";
       public static final String LAYOUT_ATTR = "layout";
       
  @@ -356,7 +357,7 @@
       public Page getPage()
       {
           checkState();
  -        return (Page) renderRequest.getAttribute(PAGE_ATTR);
  +        return (Page) renderRequest.getAttribute(PortalReservedParameters.PAGE_ATTRIBUTE_KEY);
       }
   
       /**
  @@ -929,6 +930,11 @@
           {
               return "Portlet Unavailable";
           }
  +    }
  +    
  +    public Object getComponent(String name)
  +    {
  +        return Jetspeed.getComponentManager().getComponent(name);
       }
       
   }
  
  
  

---------------------------------------------------------------------
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