Author: julien_viet
Date: 2010-09-14 17:28:47 -0400 (Tue, 14 Sep 2010)
New Revision: 4196
Modified:
portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/router.xml
Log:
move the /foo alias example to the right place
Modified:
portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/router.xml
===================================================================
---
portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/router.xml 2010-09-14
21:08:10 UTC (rev 4195)
+++
portal/branches/navcontroller/web/portal/src/main/webapp/WEB-INF/conf/router.xml 2010-09-14
21:28:47 UTC (rev 4196)
@@ -4,16 +4,32 @@
xmlns="http://www.gatein.org/xml/ns/gatein_router_1_0">
<route path="/">
+
+ <!-- Use the portal handler -->
<param name="{gtn}handler" value="portal"/>
+
+ <!-- Webui parameters -->
<request-param name="{gtn}componentid"
matchName="portal:componentId" required="false"/>
<request-param name="{gtn}action" matchName="portal:action"
required="false"/>
<request-param name="{gtn}objectid" matchName="objectId"
required="false"/>
+
+ <!-- Map the sitemap navigation on the /foo path -->
+ <route path="/foo">
+ <param name="{gtn}access" value="public"/>
+ <param name="{gtn}sitename" value="classic"/>
+ <param name="{gtn}path" value="/sitemap"/>
+ </route>
+
+ <!-- The public access -->
<route path="/public/{{gtn}sitename}{{gtn}path:.*}">
<param name="{gtn}access" value="public"/>
</route>
+
+ <!-- The private access -->
<route path="/private/{{gtn}sitename}{{gtn}path:.*}">
<param name="{gtn}access" value="private"/>
</route>
+
</route>
<route path="/upload">
@@ -24,11 +40,4 @@
<param name="{gtn}handler" value="download"/>
</route>
- <!-- Map the sitemap navigation on the /foo path -->
- <route path="/foo">
- <param name="{gtn}sitename" value="classic"/>
- <param name="{gtn}path" value="/sitemap"/>
- <param name="{gtn}handler" value="portal"/>
- </route>
-
</router>
\ No newline at end of file