portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r713063 - /portals/jetspeed-2/portal/trunk/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/PersistenceBrokerPortletPreferencesProvider.java
Date Tue, 11 Nov 2008 15:40:24 GMT
Author: vkumar
Date: Tue Nov 11 07:40:23 2008
New Revision: 713063

URL: http://svn.apache.org/viewvc?rev=713063&view=rev
Log:
Commenting specific section of portlet preferences section for now, This model will not be
valid in new Pluto 2.0 preferences solutions 

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/PersistenceBrokerPortletPreferencesProvider.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/PersistenceBrokerPortletPreferencesProvider.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/PersistenceBrokerPortletPreferencesProvider.java?rev=713063&r1=713062&r2=713063&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/PersistenceBrokerPortletPreferencesProvider.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-registry/src/main/java/org/apache/jetspeed/components/portletpreferences/PersistenceBrokerPortletPreferencesProvider.java
Tue Nov 11 07:40:23 2008
@@ -304,6 +304,7 @@
                 }
             }
         }
+        
         for (String name : current.getNames())
         {
             currentPref = current.get(name);
@@ -312,12 +313,14 @@
             c.addEqualTo("entityOid", entityOid);
             c.addEqualTo("userName", userName);
             getPersistenceBrokerTemplate().deleteByQuery(QueryFactory.newQuery(PreferenceValueImpl.class,
c));
-            
-            c = new Criteria();
-            c.addEqualTo("prefId", new Long(currentPref.getId()));
-            Criteria c2 = new Criteria();
-            c2.addNotExists(QueryFactory.newQuery(PreferenceValueImpl.class, c));
-            getPersistenceBrokerTemplate().deleteByQuery(QueryFactory.newQuery(PreferenceImpl.class,
c2));
+
+// Commenting out for now, This model will not be valid in new Pluto 2.0 preferences solutions
           
+//            c = new Criteria();
+//            c.addEqualTo("prefId", new Long(currentPref.getId()));
+//            Criteria c2 = new Criteria();
+//            c2.addEqualTo("id", new Long(currentPref.getId()));
+//            c2.addNotExists(QueryFactory.newQuery(PreferenceValueImpl.class, c));
+//            getPersistenceBrokerTemplate().deleteByQuery(QueryFactory.newQuery(PreferenceImpl.class,
c2));
         }
         String cacheKey = getPreferenceSetKey(applicationName, portletName, entityOid, userName);
         preferenceCache.remove(cacheKey);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message