portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r605771 - /portals/jetspeed-2/branches/JETSPEED-2.1.3/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
Date Thu, 20 Dec 2007 01:13:33 GMT
Author: taylor
Date: Wed Dec 19 17:13:32 2007
New Revision: 605771

URL: http://svn.apache.org/viewvc?rev=605771&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-829
patch from Ethan Adams

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

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java?rev=605771&r1=605770&r2=605771&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
(original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PersistenceBrokerPreferencesProvider.java
Wed Dec 19 17:13:32 2007
@@ -388,10 +388,26 @@
 	    	while (it.hasNext())
 	    	{
 	    		String s = (String) it.next();
-	    		NodeCache hit =getNode(s);
+	    		NodeCache hit = getNode(s);
 	    		if (hit != null)
+                {
 	    			v.add(hit.getNode());
-	    	}
+                }
+                else
+                {
+                    int index = s.lastIndexOf("-");
+                    if (index > 0)
+                    {
+                        String fullPath = s.substring(0, index);
+                        int type = Integer.parseInt(s.substring(index + 1));
+                        Node node = getNode(fullPath, type);
+                        if (node != null)
+                        {
+                            v.add(node);
+                        }
+                    }
+                }
++	    	}
 	    	return v;
     	}
     	catch (Exception e)



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