portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util/template ContentTemplateLink.java JetspeedTemplateLink.java JetspeedTool.java
Date Tue, 03 Apr 2001 00:27:38 GMT
raphael     01/04/02 17:27:38

  Modified:    src/java/org/apache/jetspeed/util/template
                        ContentTemplateLink.java JetspeedTemplateLink.java
                        JetspeedTool.java
  Log:
  - update Turbine dependency to TDKa13
  
  Revision  Changes    Path
  1.3       +37 -2     jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/ContentTemplateLink.java
  
  Index: ContentTemplateLink.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/ContentTemplateLink.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContentTemplateLink.java	2001/03/07 06:50:34	1.2
  +++ ContentTemplateLink.java	2001/04/03 00:27:32	1.3
  @@ -57,17 +57,18 @@
   import java.lang.reflect.Method;
   import org.apache.turbine.util.RunData;
   import org.apache.turbine.util.DynamicURI;
  +import org.apache.turbine.services.pull.ApplicationTool;
   
  -
   /**
    * A customized version of the DynamicURI for linking to non-servlet
    * webapp resources.
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: ContentTemplateLink.java,v 1.2 2001/03/07 06:50:34 taylor Exp $
  + * @version $Id: ContentTemplateLink.java,v 1.3 2001/04/03 00:27:32 raphael Exp $
    */
   public class ContentTemplateLink
       extends DynamicURI
  +    implements ApplicationTool
   {
           
       /** the servlet 2.2+ webapp context */
  @@ -80,11 +81,37 @@
       absolute URIs */
       private boolean useExternalForm = false;
       
  +    /** Empty Constructor for introspection */
  +    public ContentTemplateLink ()
  +    {
  +    }
  +
       /** Constructor */
       public ContentTemplateLink (RunData data)
       {
           super(data);
  +        initContextPath(data);
  +    }
  +
  +    /**
  +     * This will initialise a ContentTemplateLink object that was
  +     * constructed with the default constructor (ApplicationTool
  +     * method).
  +     *
  +     * @param data assumed to be a RunData object
  +     */
  +    public void init(Object data)
  +    {
  +        super.init((RunData)data);
  +        initContextPath(data);
  +    }
   
  +    /** Inits the contextPath for this object 
  +     *
  +     * @params data the RunData to use 
  +     */
  +    protected void initContextPath(Object data)
  +    {
           try
           {
               Class runDataClass = RunData.class;
  @@ -100,6 +127,14 @@
                */
               contextPath = "";
           }
  +    }
  +
  +    /**
  +     * Refresh method - does nothing
  +     */
  +    public void refresh()
  +    {
  +        // empty
       }
   
       /**
  
  
  
  1.3       +9 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedTemplateLink.java
  
  Index: JetspeedTemplateLink.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedTemplateLink.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JetspeedTemplateLink.java	2001/03/07 06:50:35	1.2
  +++ JetspeedTemplateLink.java	2001/04/03 00:27:34	1.3
  @@ -57,6 +57,7 @@
   import org.apache.turbine.util.RunData;
   import org.apache.turbine.util.DynamicURI;
   import org.apache.turbine.util.template.TemplateLink;
  +import org.apache.turbine.services.pull.ApplicationTool;
   
   /**
    * A customized version of the TemplateLink which can handle portlet
  @@ -64,7 +65,7 @@
    * It is inserted into the template context by the JetspeedVelocityPage.
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: JetspeedTemplateLink.java,v 1.2 2001/03/07 06:50:35 taylor Exp $
  + * @version $Id: JetspeedTemplateLink.java,v 1.3 2001/04/03 00:27:34 raphael Exp $
    */
   public class JetspeedTemplateLink
       extends TemplateLink
  @@ -79,6 +80,13 @@
       private static final String SCREEN_KEY = "screen";
       private static final String TEMPLATE_KEY = "template";
           
  +    /**
  +     * Empty constructor.for introspection
  +     */
  +    public JetspeedTemplateLink()
  +    {
  +    }
  +
       /**
        * Constructor.
        *
  
  
  
  1.3       +29 -2     jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedTool.java
  
  Index: JetspeedTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedTool.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JetspeedTool.java	2001/03/07 06:50:36	1.2
  +++ JetspeedTool.java	2001/04/03 00:27:35	1.3
  @@ -57,6 +57,7 @@
   import org.apache.ecs.ConcreteElement;
   import org.apache.turbine.util.RunData;
   import org.apache.turbine.util.Log;
  +import org.apache.turbine.services.pull.ApplicationTool;
   import org.apache.jetspeed.services.profiler.ProfileManager;
   import org.apache.jetspeed.services.resources.JetspeedResources;
   import org.apache.jetspeed.om.profile.*;
  @@ -73,13 +74,19 @@
    * shared between threads and/or requests</strong>
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: JetspeedTool.java,v 1.2 2001/03/07 06:50:36 taylor Exp $
  + * @version $Id: JetspeedTool.java,v 1.3 2001/04/03 00:27:35 raphael Exp $
    */
  -public class JetspeedTool
  +public class JetspeedTool implements ApplicationTool
   {
       /** RunData object for this request */
       private RunData rundata = null;
       
  +    /** Empty constructor used by introspection
  +     */
  +    public JetspeedTool()
  +    {
  +    }
  +
       /** The Tool constructor
        *
        * @param data the RunData object for the current request
  @@ -89,6 +96,26 @@
           this.rundata = data;
       }
       
  +    /**
  +     * This will initialise a JetspeedTool object that was
  +     * constructed with the default constructor (ApplicationTool
  +     * method).
  +     *
  +     * @param data assumed to be a RunData object
  +     */
  +    public void init(Object data)
  +    {
  +        this.rundata = (RunData)data;
  +    }
  +
  +    /**
  +     * Refresh method - does nothing
  +     */
  +    public void refresh()
  +    {
  +        // empty
  +    }
  +
       /** 
        * Returns the portlet content customized for the current user.
        * Currently, the layout engine does not handle panes, so the 
  
  
  

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