portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r629345 - /portals/jetspeed-2/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/profiler/impl/CreateUserTemplatePagesValveImpl.java
Date Wed, 20 Feb 2008 04:18:50 GMT
Author: woonsan
Date: Tue Feb 19 20:18:47 2008
New Revision: 629345

URL: http://svn.apache.org/viewvc?rev=629345&view=rev
Log:
[JS2-855] CreateUserTemplatePagesValve improve that title&short-title value has user Name
in folder.metadata.

Applied Jeseung Choi's patch.
With this improvement, site management portlet can display proper titles for user folders.
Thank you very much!

Modified:
    portals/jetspeed-2/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/profiler/impl/CreateUserTemplatePagesValveImpl.java

Modified: portals/jetspeed-2/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/profiler/impl/CreateUserTemplatePagesValveImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/profiler/impl/CreateUserTemplatePagesValveImpl.java?rev=629345&r1=629344&r2=629345&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/profiler/impl/CreateUserTemplatePagesValveImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/profiler/impl/CreateUserTemplatePagesValveImpl.java
Tue Feb 19 20:18:47 2008
@@ -156,6 +156,13 @@
                 
                 // copy the entire dir tree from the template folder
                 this.pageManager.deepCopyFolder(source, userFolder, userName);
+                
+                // The user folder will have titles named after the user name.
+                Folder destFolder = this.pageManager.getFolder(userFolder);
+                destFolder.setTitle(userName);
+                destFolder.setShortTitle(userName);   
+                this.pageManager.updateFolder(destFolder);
+                
                 created = true;
             }
             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