portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/portaltoolkit JetspeedPortalToolkitService.java
Date Thu, 09 May 2002 23:10:22 GMT
taylor      02/05/09 16:10:22

  Modified:    src/java/org/apache/jetspeed/services/portaltoolkit
                        JetspeedPortalToolkitService.java
  Log:
  fixed bug in toolkit to correctly set and lookup portletsSets by name
  
  Revision  Changes    Path
  1.19      +8 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/services/portaltoolkit/JetspeedPortalToolkitService.java
  
  Index: JetspeedPortalToolkitService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/portaltoolkit/JetspeedPortalToolkitService.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- JetspeedPortalToolkitService.java	4 Apr 2002 18:39:49 -0000	1.18
  +++ JetspeedPortalToolkitService.java	9 May 2002 23:10:22 -0000	1.19
  @@ -88,7 +88,7 @@
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
    * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
    *
  - * @version $Id: JetspeedPortalToolkitService.java,v 1.18 2002/04/04 18:39:49 taylor Exp
$
  + * @version $Id: JetspeedPortalToolkitService.java,v 1.19 2002/05/09 23:10:22 taylor Exp
$
    */
   public class JetspeedPortalToolkitService extends TurbineBaseService
       implements PortalToolkitService
  @@ -377,7 +377,13 @@
           BasePortletSet set = new BasePortletSet();
           PortletController controller = getController( portlets.getController() );
           set.setController( controller );
  -        set.setName(String.valueOf(theCount.getValue()));
  +        String name = portlets.getName();
  +        if (name != null)
  +        {
  +            set.setName(name);
  +        }
  +        else
  +            set.setName(String.valueOf(theCount.getValue()));
              
           set.setID(portlets.getId());
                       
  
  
  

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