portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletregistry PortletRegistryComponentImpl.java
Date Tue, 18 May 2004 21:17:09 GMT
dlestrat    2004/05/18 14:17:09

  Modified:    components/registry/src/java/org/apache/jetspeed/components/portletregistry
                        PortletRegistryComponentImpl.java
  Log:
  In getPortletApplication(ObjectId) the id was not converted to long which was causing a
class cast exception with MySql in OJB.
  
  Revision  Changes    Path
  1.9       +9 -5      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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PortletRegistryComponentImpl.java	8 May 2004 17:55:25 -0000	1.8
  +++ PortletRegistryComponentImpl.java	18 May 2004 21:17:09 -0000	1.9
  @@ -20,8 +20,10 @@
   import java.util.Iterator;
   import java.util.List;
   import java.util.Locale;
  +
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  +
   import org.apache.jetspeed.components.persistence.store.Filter;
   import org.apache.jetspeed.components.persistence.store.PersistenceStore;
   import org.apache.jetspeed.components.persistence.store.PersistenceStoreContainer;
  @@ -34,10 +36,6 @@
   import org.apache.jetspeed.om.portlet.impl.PortletApplicationDefinitionImpl;
   import org.apache.jetspeed.om.portlet.impl.PortletDefinitionImpl;
   import org.apache.jetspeed.om.portlet.impl.StoreablePortletDefinitionDelegate;
  -import org.apache.pluto.om.common.Language;
  -import org.apache.pluto.om.common.ObjectID;
  -import org.apache.pluto.om.portlet.PortletApplicationDefinition;
  -
   import org.apache.jetspeed.om.impl.PortletDisplayNameImpl;
   import org.apache.jetspeed.om.portlet.impl.PortletDefinitionLocalizedFieldImpl;
   import org.apache.jetspeed.om.portlet.impl.ContentTypeImpl;
  @@ -45,6 +43,12 @@
   import org.apache.jetspeed.om.preference.impl.DefaultPreferenceImpl;
   import org.apache.jetspeed.om.impl.SecurityRoleRefImpl;
   import org.apache.jetspeed.om.impl.PortletDescriptionImpl;
  +import org.apache.jetspeed.util.JetspeedObjectID;
  +
  +import org.apache.pluto.om.common.Language;
  +import org.apache.pluto.om.common.ObjectID;
  +import org.apache.pluto.om.portlet.PortletApplicationDefinition;
  +
   
   /**
    * <p>
  @@ -172,7 +176,7 @@
           PersistenceStore store = getPersistenceStore();
           prepareTransaction(store);
           Filter filter = store.newFilter();
  -        filter.addEqualTo("id", id);
  +        filter.addEqualTo("id", new Long(id.toString()));
           Object query = store.newQuery(portletAppClass, filter);
           return (MutablePortletApplication) store.getObjectByQuery(query);
       }
  
  
  

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