cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r125516 - /cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java
Date Tue, 18 Jan 2005 16:41:28 GMT
Author: cziegeler
Date: Tue Jan 18 08:41:26 2005
New Revision: 125516

URL: http://svn.apache.org/viewcvs?view=rev&rev=125516
Log:

Modified:
   cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java

Modified: cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java
Url: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java?view=diff&rev=125516&p1=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java&r1=125515&p2=cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java&r2=125516
==============================================================================
--- cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java
(original)
+++ cocoon/trunk/src/blocks/portal/java/org/apache/cocoon/portal/profile/impl/AuthenticationProfileManager.java
Tue Jan 18 08:41:26 2005
@@ -185,6 +185,9 @@
         }
     }
 
+    /* (non-Javadoc)
+     * @see org.apache.cocoon.portal.profile.ProfileManager#saveUserLayout(java.lang.String)
+     */
     public void saveUserLayout(String layoutKey) {
         ProfileLS adapter = null;
         PortalService service = null;
@@ -200,24 +203,26 @@
 
             HashMap parameters = new HashMap();
             parameters.put("type", "user");
-            parameters.put("config",
-                state.getApplicationConfiguration().getConfiguration("portal").getChild("profiles"));
+            parameters.put("config", state.getApplicationConfiguration().getConfiguration("portal").getChild("profiles"));
             parameters.put("handler", handler);
+            parameters.put("profiletype", "copletinstancedata");
 
             Map key = this.buildKey(service, parameters, layoutKey, false);
+    
+            // save coplet instance data
+            CopletInstanceDataManager profileManager = ((CopletInstanceDataManager)service.getAttribute("CopletInstanceData:"
+ layoutKey));
+            adapter.saveProfile(key, parameters, profileManager);
 
             // save layout data
             parameters.put("profiletype", "layout");
             key = this.buildKey(service, parameters, layoutKey, false);
-            Layout layout = (Layout) service.getAttribute("Layout:" + layoutKey);
+            Layout layout = (Layout)service.getAttribute("Layout:" + layoutKey);
             adapter.saveProfile(key, parameters, layout);
-
-        }
-        catch (Exception e) {
+            
+        } catch (Exception e) {
             // TODO
             throw new CascadingRuntimeException("Exception during save profile", e);
-        }
-        finally {
+        } finally {
             this.manager.release(adapter);
             this.manager.release(service);
         }

Mime
View raw message