Author: ajaquith
Date: Thu May 22 21:25:11 2008
New Revision: 659417

URL: http://svn.apache.org/viewvc?rev=659417&view=rev
Log:
Checked in three new features for UserProfile and the UserDatabase classes. 
First, profiles can now store arbitrary Serializable objects via a new method 
in UserProfile, getAttributes, that returns a Map<Serializable,Serializable> 
that can be directly manipulated. Arbitrary attributes such as user preferences 
can be added to the profile and be guaranteed to be persisted on save. Second, 
the UserProfile now has two methods setLockExpiry(Date)/getLockExpiry that 
allow callers to disable user profiles. These are NOT enforced in 
AuthenticationManager yet. Third, user profile now have a 'uid' field that 
stores a long value for uniquely identifying users. Existing profiles without 
UIDs are automatically upgraded when they are loaded by a findBy___() method. 
The default XML/JDBC UserDatabase implementations have been enhanced to support 
all of these new features. If you have custom UserDatabase implementations, you 
should take a look at the new code.

Modified:
    incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/Serializer.java

Modified: incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/Serializer.java
URL: 
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/Serializer.java?rev=659417&r1=659416&r2=659417&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/Serializer.java 
(original)
+++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/Serializer.java Thu May 
22 21:25:11 2008
@@ -1,7 +1,6 @@
 package com.ecyrd.jspwiki.util;
 
 import java.io.*;
-import java.sql.SQLException;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -14,8 +13,8 @@
      * Deserializes a Base64-encoded String into a HashMap. Both the keys and 
values
      * must implement [EMAIL PROTECTED] java.io.Serializable}.
      * @param rawString the String contents containing the map to be 
deserialized
-     * @return the attributes, parsed into a Properties object
-     * @throws SQLException if the contents cannot be parsed for any reason
+     * @return the attributes, parsed into a Map
+     * @throws IOException if the contents cannot be parsed for any reason
      */
     @SuppressWarnings("unchecked")
     public static Map<? extends Serializable,? extends Serializable> 
deserializeFromBase64( String rawString ) throws IOException


Reply via email to