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-2/components/registry/src/java/org/apache/jetspeed/components/portletregistry PortletRegistryComponentImpl.java PersistenceBrokerPortletRegistry.java
Date Wed, 03 Nov 2004 17:52:21 GMT
taylor      2004/11/03 09:52:21

  Modified:    components/registry/src/java/org/apache/jetspeed/components/portletregistry
                        PortletRegistryComponentImpl.java
                        PersistenceBrokerPortletRegistry.java
  Log:
  changed Registry API from List to Collection
  
  Revision  Changes    Path
  1.18      +4 -6      jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletregistry/PortletRegistryComponentImpl.java
  
  Index: PortletRegistryComponentImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletregistry/PortletRegistryComponentImpl.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- PortletRegistryComponentImpl.java	29 Oct 2004 14:04:35 -0000	1.17
  +++ PortletRegistryComponentImpl.java	3 Nov 2004 17:52:21 -0000	1.18
  @@ -15,10 +15,8 @@
    */
   package org.apache.jetspeed.components.portletregistry;
   
  -import java.util.ArrayList;
   import java.util.Collection;
   import java.util.Iterator;
  -import java.util.List;
   import java.util.Locale;
   import java.util.prefs.BackingStoreException;
   import java.util.prefs.Preferences;
  @@ -144,7 +142,7 @@
        * @see org.apache.jetspeed.registry.PortletRegistryComponentImpl#getAllPortletDefinitions()
        * @return
        */
  -    public List getAllPortletDefinitions()
  +    public Collection getAllPortletDefinitions()
       {
           PersistenceStore store = getPersistenceStore();
           prepareTransaction(store);
  @@ -160,7 +158,7 @@
               {
               }
           }
  -        return new ArrayList(pds);
  +        return pds;
       }
   
       public PersistenceStore getPersistenceStore()
  @@ -241,7 +239,7 @@
        * @see org.apache.jetspeed.registry.PortletRegistryComponentImpl#getPortletApplications()
        * @return
        */
  -    public List getPortletApplications()
  +    public Collection getPortletApplications()
       {
           PersistenceStore store = getPersistenceStore();
           prepareTransaction(store);
  @@ -257,7 +255,7 @@
               {
               }
           }
  -        return new ArrayList(pas);
  +        return pas;
       }
   
       /**
  
  
  
  1.2       +7 -9      jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletregistry/PersistenceBrokerPortletRegistry.java
  
  Index: PersistenceBrokerPortletRegistry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletregistry/PersistenceBrokerPortletRegistry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PersistenceBrokerPortletRegistry.java	29 Oct 2004 14:04:35 -0000	1.1
  +++ PersistenceBrokerPortletRegistry.java	3 Nov 2004 17:52:21 -0000	1.2
  @@ -15,10 +15,8 @@
    */
   package org.apache.jetspeed.components.portletregistry;
   
  -import java.util.ArrayList;
   import java.util.Collection;
   import java.util.Iterator;
  -import java.util.List;
   import java.util.Locale;
   import java.util.prefs.BackingStoreException;
   import java.util.prefs.Preferences;
  @@ -81,11 +79,11 @@
           }
       }
   
  -    public List getAllPortletDefinitions()
  +    public Collection getAllPortletDefinitions()
       {
           Criteria c = new Criteria();
  -        List list = new ArrayList(getPersistenceBrokerTemplate().getCollectionByQuery(
  -                QueryFactory.newQuery(PortletDefinitionImpl.class, c)));
  +        Collection list = getPersistenceBrokerTemplate().getCollectionByQuery(
  +                QueryFactory.newQuery(PortletDefinitionImpl.class, c));
           postLoadColl(list);
           return list;
       }
  @@ -120,11 +118,11 @@
           return app;
       }
   
  -    public List getPortletApplications()
  +    public Collection getPortletApplications()
       {
           Criteria c = new Criteria();
  -        List list = new ArrayList(getPersistenceBrokerTemplate().getCollectionByQuery(
  -                QueryFactory.newQuery(PortletApplicationDefinitionImpl.class, c)));
  +        Collection list = getPersistenceBrokerTemplate().getCollectionByQuery(
  +                QueryFactory.newQuery(PortletApplicationDefinitionImpl.class, c));
           postLoadColl(list);
           return list;
       }
  
  
  

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