[gatein-commits] gatein SVN: r4947 - portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 4 11:47:00 EDT 2010


Author: julien_viet
Date: 2010-11-04 11:46:59 -0400 (Thu, 04 Nov 2010)
New Revision: 4947

Modified:
   portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/default-router.xml
Log:
change default router to be more friendly


Modified: portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/default-router.xml
===================================================================
--- portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/default-router.xml	2010-11-04 15:29:38 UTC (rev 4946)
+++ portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/default-router.xml	2010-11-04 15:46:59 UTC (rev 4947)
@@ -23,17 +23,33 @@
 -->
 
     <!-- The public access -->
-    <route path="/public/{gtn:sitetype}/{gtn:sitename}{gtn:path}">
+    <route path="/public/{gtn:sitename}{gtn:path}">
       <route-param name="gtn:access" value="public"/>
+      <route-param name="gtn:sitetype" value="portal"/>
       <path-param name="gtn:path" pattern=".*" encoding="preserve-path"/>
     </route>
 
     <!-- The private access -->
-    <route path="/private/{gtn:sitetype}/{gtn:sitename}{gtn:path}">
+    <route path="/private/{gtn:sitename}{gtn:path}">
       <route-param name="gtn:access" value="private"/>
+      <route-param name="gtn:sitetype" value="portal"/>
       <path-param name="gtn:path" pattern=".*" encoding="preserve-path"/>
     </route>
 
+    <!-- The group access -->
+    <route path="/groups/{gtn:sitename}{gtn:path}">
+      <route-param name="gtn:access" value="private"/>
+      <route-param name="gtn:sitetype" value="group"/>
+      <path-param name="gtn:path" pattern=".*" encoding="preserve-path"/>
+    </route>
+
+    <!-- The user access -->
+    <route path="/users/{gtn:sitename}{gtn:path}">
+      <route-param name="gtn:access" value="private"/>
+      <route-param name="gtn:sitetype" value="user"/>
+      <path-param name="gtn:path" pattern=".*" encoding="preserve-path"/>
+    </route>
+
   </route>
 
   <route path="/upload">



More information about the gatein-commits mailing list