portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r354124 - in /portals/jetspeed-2/trunk: components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java jetspeed-api/src/java/org/apache/jetspeed/administration/PortalAdministration.java
Date Mon, 05 Dec 2005 18:45:14 GMT
Author: taylor
Date: Mon Dec  5 10:45:10 2005
New Revision: 354124

URL: http://svn.apache.org/viewcvs?rev=354124&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-215

Final Patch from Chris Schaefer 
THis should pretty much close this issue for the 2.0 release

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/administration/PortalAdministration.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java?rev=354124&r1=354123&r2=354124&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java
Mon Dec  5 10:45:10 2005
@@ -437,4 +437,41 @@
         return adminUtil.concatenatePaths(jetspeedPath, response.encodeURL(path));
     }
         
+    
+    Map forgottenPasswordData = new HashMap();
+
+    /* (non-Javadoc)
+     * @see org.apache.jetspeed.administration.PortalAdministration#getNewLoginInfo(java.lang.String)
+     */
+    public Map getNewLoginInfo(String guid)
+    {
+        synchronized(forgottenPasswordData) {
+            return (Map) forgottenPasswordData.get(guid);
+        }
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.jetspeed.administration.PortalAdministration#setNewLoginInfo(java.lang.String,
org.apache.jetspeed.administration.PortalAdministration.ResetPasswordInfo)
+     */
+    public void putNewLoginInfo(String guid, Map info)
+    {
+        synchronized(forgottenPasswordData) {
+            forgottenPasswordData.put(guid,info);
+        }
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.jetspeed.administration.PortalAdministration#removeNewLoginInfo(java.lang.String)
+     */
+    public void removeNewLoginInfo(String guid)
+    {
+        synchronized(forgottenPasswordData) {
+            forgottenPasswordData.remove(guid);
+        }
+    }
+    
+    
+    
+    
+    
 }

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/administration/PortalAdministration.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/administration/PortalAdministration.java?rev=354124&r1=354123&r2=354124&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/administration/PortalAdministration.java
(original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/administration/PortalAdministration.java
Mon Dec  5 10:45:10 2005
@@ -120,5 +120,25 @@
      * @return the base Jetspeed portal URL plus the appended path parameter
      */
     String getPortalURL(PortletRequest request, PortletResponse response, String path);
+    
+    
+    /**
+     * @param guid    The ID which is passed throughte URL to the user
+     * @return
+     */
+    public Map getNewLoginInfo(String guid);
+    /**
+     * @param guid    the ID which is passed through the URL to the user.. 
+     * @param info    a Map, info from which will be used to reset the password
+     *                the password in this case is NOT encrypted, but this should probably
+     *                change if this information is stored on disk... ie a database
+     */
+    public void putNewLoginInfo(String guid, Map info);
+    
+    /**
+     * @param guid    the ID which will be removed from the storage when the info is no longer
valid
+     */
+    public void removeNewLoginInfo(String guid);
+    
 }
 



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