portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r349078 - /portals/jetspeed-2/trunk/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
Date Sat, 26 Nov 2005 05:08:05 GMT
Author: taylor
Date: Fri Nov 25 21:08:02 2005
New Revision: 349078

URL: http://svn.apache.org/viewcvs?rev=349078&view=rev
Log:
might need to revive the SQL query, just putting in a reminder here

It appears that the User Manager does NOT update the PREFS_NODE_PROPERTY_KEY table 
Actually, its the preference impl that fails, which User Manager calls
This has broken the lookupPreference call on the PersistenceBrokerPreferencesProvider, which
uses 
OJB to do the lookup, and the OJB mapping REQUIRES using the PREFS_NODE_PROPERTY_KEY table
in the lookup
even though the prefs API does not write to the PREFS_NODE_PROPERTY_KEY table
Thus...I am NOT finding user info attributes stored by the prefs api (and the user manager)

DLS: could you please review this.
Im really not sure what the PREFS_NODE_PROPERTY_KEY is used for, but currently its very broken

Modified:
    portals/jetspeed-2/trunk/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java

Modified: portals/jetspeed-2/trunk/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java?rev=349078&r1=349077&r2=349078&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
(original)
+++ portals/jetspeed-2/trunk/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
Fri Nov 25 21:08:02 2005
@@ -344,7 +344,8 @@
 //            "FROM `prefs_node` p, prefs_property_key k, prefs_property_value v " +
 //            "WHERE p.NODE_NAME = 'userinfo' and v.node_id = p.node_id " + 
 //            "AND v.property_key_id = k.property_key_id " +
-//            "AND k.property_name = '";
+//            "AND k.property_name = ? " +
+//            "AND v.text_value = ?"    
 
         Criteria c = new Criteria();
         if (nodeName != null)



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