portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin GlobalAdminPortlet.java
Date Fri, 18 Jan 2002 21:53:34 GMT
paulsp      02/01/18 13:53:34

  Modified:    src/java/org/apache/jetspeed/portal/portlets/admin
                        GlobalAdminPortlet.java
  Log:
  o Cleaned up import statements.
  o Cleaned up some of the javadocs.
  o Localization is required!
  
  Revision  Changes    Path
  1.15      +25 -14    jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/GlobalAdminPortlet.java
  
  Index: GlobalAdminPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/portal/portlets/admin/GlobalAdminPortlet.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- GlobalAdminPortlet.java	4 Jun 2001 17:47:05 -0000	1.14
  +++ GlobalAdminPortlet.java	18 Jan 2002 21:53:34 -0000	1.15
  @@ -55,15 +55,17 @@
   package org.apache.jetspeed.portal.portlets.admin;
   
   //Element Construction Set
  -import org.apache.ecs.html.*;
  +import org.apache.ecs.html.B;
  +import org.apache.ecs.html.BR;
  +import org.apache.ecs.html.HR;
   import org.apache.ecs.ConcreteElement;
   import org.apache.ecs.ElementContainer;
   import org.apache.ecs.StringElement;
   
   //Jetspeed stuff
  -import org.apache.jetspeed.portal.*;
  -import org.apache.jetspeed.portal.portlets.*;
  -import org.apache.jetspeed.util.*;
  +import org.apache.jetspeed.portal.PortletException;
  +import org.apache.jetspeed.portal.portlets.AbstractPortlet;
  +import org.apache.jetspeed.services.portletcache.GlobalCache;
   import org.apache.jetspeed.services.Registry;
   import org.apache.jetspeed.services.threadpool.ThreadPoolService;
   import org.apache.jetspeed.services.threadpool.JetspeedThreadPoolService;
  @@ -75,21 +77,24 @@
   //turbine
   import org.apache.turbine.util.RunData;
   import org.apache.turbine.services.TurbineServices;
  -
  -//standard java stuff
  -import java.net.*;
  -import java.io.*;
  -import java.util.*;
  +import org.apache.turbine.services.cache.TurbineGlobalCacheService;
   
   /**
   Returns global information about Jetspeed.
   
   @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
  -@version $Id: GlobalAdminPortlet.java,v 1.14 2001/06/04 17:47:05 raphael Exp $ 
  +@version $Id: GlobalAdminPortlet.java,v 1.15 2002/01/18 21:53:34 paulsp Exp $ 
   */
   public class GlobalAdminPortlet extends AbstractPortlet {
   
       
  +    /**
  +     * Return general runtime information. This include memory,
  +     * thread, Registry, Resource, and caching data.
  +     *
  +     * @param rundata RunData object for the current request
  +     * @return ConcreteElement
  +     */    
       public ConcreteElement getContent( RunData rundata ) {
   
           
  @@ -135,8 +140,6 @@
           ec.addElement( this.getEntry( "URLs Loading/Refreshing", 
                                         URLFetcher.getRealtimeURLs().size() ) );
   
  -
  -                            
           return ec;
           
       }
  @@ -173,6 +176,9 @@
       }
       
       //requried info
  +    /**
  +     * @see AbstractPortlet#init
  +     */    
       
       public void init() throws PortletException {
   
  @@ -181,13 +187,18 @@
   
       }
   
  +    /**
  +     * @see AbstractPortlet#getAllowEdit
  +     */    
       public boolean getAllowEdit(RunData rundata) {
           return false;
       }
   
  +    /**
  +     * @see AbstractPortlet#getAllowMaximize
  +     */    
       public boolean getAllowMaximize(RunData rundata) {
           return false;
       }
  -    
  -    
  +
   }
  
  
  

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


Mime
View raw message