cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/portal/samples sitemap.xmap
Date Thu, 12 Feb 2004 09:32:10 GMT
cziegeler    2004/02/12 01:32:10

  Modified:    src/blocks/portal/samples sitemap.xmap
  Log:
  New samples
  
  Revision  Changes    Path
  1.22      +307 -295  cocoon-2.1/src/blocks/portal/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/portal/samples/sitemap.xmap,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- sitemap.xmap	22 Jan 2004 14:01:22 -0000	1.21
  +++ sitemap.xmap	12 Feb 2004 09:32:10 -0000	1.22
  @@ -1,295 +1,307 @@
  -<?xml version="1.0"?>
  -
  -<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  -
  - <map:components>
  -  <map:generators default="file">
  -    <map:generator name="portal" src="org.apache.cocoon.portal.generation.PortalGenerator"/>
  -  </map:generators>
  -  <map:transformers default="xslt">
  -    <map:transformer name="htmlroot" src="org.apache.cocoon.portal.transformation.HTMLRootTransformer"
logger="sitemap.transformer.htmlroot" />
  -    <map:transformer name="rss" src="org.apache.cocoon.portal.transformation.RSSTransformer"
logger="sitemap.transformer.rss" />
  -  </map:transformers>
  -  <map:readers default="resource"/>
  -  <map:serializers default="html">
  -    <map:serializer name="html-include"
  -                    logger="sitemap.serializer.html" 
  -                    mime-type="text/html"  
  -                    pool-grow="4" pool-max="32" pool-min="4" 
  -                    src="org.apache.cocoon.portal.serialization.IncludingHTMLSerializer">
  -      <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
  -      <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
  -    </map:serializer>
  -  </map:serializers>
  -  <map:matchers default="wildcard"/>
  -  <map:selectors default="browser"/>
  -  <map:actions>  
  -    <map:action src="org.apache.cocoon.portal.acting.BookmarkAction" name="portal-bookmark">
  -        <parameter name="src" value="resources/bookmarks.xml"/>
  -    </map:action>
  -  </map:actions>
  - </map:components>
  - 
  -<!-- =========================== Views =================================== -->
  -
  - <map:views>
  -  <map:view name="content" from-label="content">
  -   <map:serialize type="xml"/>
  -  </map:view>
  - </map:views>
  -
  -
  -<!-- =========================== Pipelines ================================= -->
  -
  - <map:pipelines>
  - 
  -  <map:component-configurations>
  -	<authentication-manager>
  -		<handlers>
  -			<handler name="portalhandler">
  -				<redirect-to uri="cocoon:/login"/>
  -				<authentication uri="cocoon:raw:/sunrise-authuser"/>
  -				<applications>
  -					<application loadondemand="true" name="portal">
  -                		<configuration name="portal">
  -                			<profiles>
  -                				<copletbasedata-load uri="cocoon:raw:/load-global-profile?profile=copletbasedata"/>
  -	                			<copletdata-global-load uri="cocoon:raw:/load-global-profile?profile=copletdata"/>
  -    	            			<copletdata-role-load uri="cocoon:raw:/load-role-profile?profile=copletdata"/>
  -        	        			<copletdata-user-load uri="cocoon:raw:/load-user-profile?profile=copletdata"/>
  -            	    			<copletinstancedata-global-load uri="cocoon:raw:/load-global-profile?profile=copletinstancedata"/>
  -                				<copletinstancedata-role-load uri="cocoon:raw:/load-role-profile?profile=copletinstancedata"/>
  -                				<copletinstancedata-user-load uri="cocoon:raw:/load-user-profile?profile=copletinstancedata"/>
  -                				<copletinstancedata-user-save uri="cocoon:raw:/save-user-profile?profile=copletinstancedata"/>
  -                				<layout-global-load uri="cocoon:raw:/load-global-profile?profile=layout"/>
  -	                			<layout-role-load uri="cocoon:raw:/load-role-profile?profile=layout"/>
  -    	            			<layout-user-load uri="cocoon:raw:/load-user-profile?profile=layout"/>
  -        	        			<layout-user-save uri="cocoon:raw:/save-user-profile?profile=layout"/>
  -            	    		</profiles>
  -	            	    </configuration>
  -	            	</application>
  -	            </applications>
  -	        </handler>
  -		</handlers>
  -    </authentication-manager>
  -
  -	<!-- select skin to use -->
  -	  <map:global-variables>
  -		<skin>skins/common/</skin>
  -	  </map:global-variables>
  -
  -  </map:component-configurations>
  -  
  -  <!-- The internal pipelines for loading and saving -->
  -  <map:pipeline internal-only="true">
  -    <map:match pattern="sunrise-authuser">
  -      <map:generate src="resources/sunrise-user.xml"/>
  -      <map:transform src="styles/authenticate.xsl">
  -        <map:parameter name="use-request-parameters" value="true"/>
  -      </map:transform>
  -      <map:serialize type="xml"/>
  -    </map:match>
  -
  -    <map:match pattern="load-global-profile">
  -    	<map:generate src="profiles/{request-param:profile}/{request-param:portal}.xml"/>
  -    	<map:serialize type="xml"/>
  -    </map:match>
  -
  -    <map:match pattern="load-role-profile">
  -    	<map:generate src="profiles/{request-param:profile}/{request-param:portal}-role-{request-param:role}.xml"/>
  -    	<map:serialize type="xml"/>
  -    </map:match>
  -
  -    <map:match pattern="load-user-profile">
  -    	<map:generate src="profiles/{request-param:profile}/{request-param:portal}-user-{request-param:user}.xml"/>
  -    	<map:serialize type="xml"/>
  -    </map:match>
  -
  -    <map:match pattern="save-user-profile">
  -    	<map:generate src="resources/save-user-profile.xml"/>
  -        <map:transform type="session"/>
  -        <map:transform type="write-source"/>
  -    	<map:serialize type="xml"/>
  -    </map:match>
  -  </map:pipeline>
  -
  -  <!-- Now the accessible pipelines -->
  -  <map:pipeline>
  -
  -    <!-- images -->
  -	<map:match pattern="images/*.gif">
  -		<map:read mime-type="image/gif" src="{global:skin}images/{1}.gif"/>
  -	</map:match>
  -	<map:match pattern="images/*.jpg">
  -    	<map:read mime-type="image/jpg" src="{global:skin}images/{1}.jpg"/>
  -   	</map:match>
  -    
  -	<!-- Cascading Stylesheets -->
  -	<map:match pattern="css/*.css">
  -         <map:read mime-type="text/css" src="{global:skin}css/{1}.css"/>
  -   	</map:match>
  -
  -    <map:match pattern="">
  -         <map:redirect-to uri="portal"/>
  -    </map:match>
  -
  -   <map:match pattern="coplets/**">
  -      <map:mount check-reload="yes" src="coplets/" uri-prefix="coplets"/>
  -    </map:match>
  -
  -    <!-- Do an auto login as anonymous -->
  -    <map:act type="auth-loggedIn">
  -        <map:parameter name="handler" value="portalhandler"/> 
  -        <map:parameter name="application" value="portal"/> 
  -        <map:parameter name="negate-result" value="true"/>
  -
  -        <map:act type="auth-login">
  -            <map:parameter name="handler" value="portalhandler"/>
  -            <map:parameter name="application" value="portal"/> 
  -    
  -            <map:parameter name="parameter_name" value="anonymous"/>
  -            <map:parameter name="parameter_password" value="anonymous"/>
  -         
  -        </map:act>
  -    </map:act>
  -
  -    <!-- Test pipeline for layout engine -->
  -    <map:match pattern="portal">
  -        <map:act type="auth-protect">
  -            <map:parameter name="handler" value="portalhandler"/> 
  -            <map:parameter name="application" value="portal"/> 
  -
  -            <map:generate type="portal" label="content">
  -        	    <map:parameter name="portal-name" value="portal" />
  -            </map:generate>
  -            <map:transform src="{global:skin}styles/portal-page.xsl">
  -                <map:parameter name="user" value="{ID}"/>
  -            </map:transform>
  -            <map:transform type="cinclude"/> 
  -            <map:transform type="encodeURL"/>
  -<!--
  -            <map:transform type="htmlroot" />
  --->          
  -            <!-- If you don't need JSR-168 support, you can use the html serializer
instead -->
  -            <map:serialize type="html-include"/> 
  -        </map:act>
  -    </map:match>
  -        
  -    <!-- Test pipeline for bookmark -->
  -    <map:match pattern="bookmark">
  -        <map:act type="auth-protect">
  -            <map:parameter name="handler" value="portalhandler"/> 
  -            <map:parameter name="application" value="portal"/> 
  -
  -            <map:act type="portal-bookmark">
  -        	    <map:parameter name="portal-name" value="portal" />
  -        	    
  -        	    <map:redirect-to uri="portal?{uri}"/>
  -            </map:act>
  -        </map:act>
  -    </map:match>
  -
  -    <map:match pattern="portalxml">
  -        <map:act type="auth-protect">
  -            <map:parameter name="handler" value="portalhandler"/> 
  -            <map:parameter name="application" value="portal"/> 
  -
  -            <map:generate type="portal" label="content">
  -        	    <map:parameter name="portal-name" value="portal" />
  -            </map:generate>
  -            <map:serialize type="xml"/> 
  -        </map:act>
  -    </map:match>
  -
  -    <!-- Authenticate a user -->
  -    <map:match pattern="auth">
  -        <!-- Check if we are logged in:
  -             - if we are anonymous, then logout
  -             - if we are any other use, redirect to loggedin
  -        -->
  -        <map:act type="auth-loggedIn">
  -            <map:parameter name="handler" value="portalhandler"/> 
  -            
  -	        <map:act type="auth-protect">
  -	            <map:parameter name="handler" value="portalhandler"/> 
  -	            <map:parameter name="application" value="portal"/> 
  -
  -		    	<map:select type="parameter" >
  -		    		<map:parameter name="parameter-selector-test" value="{ID}"/>
  -		    		<map:when test="anonymous">
  -		    		    <map:act type="auth-logout">
  -	                        <map:parameter name="handler" value="portalhandler"/> 
  -		    		    </map:act>
  -		    		</map:when>
  -		    		<map:otherwise>
  -	                    <map:redirect-to uri="loggedin"/>
  -		    		</map:otherwise>
  -		    	</map:select>
  -	        </map:act>
  -        </map:act>
  -        
  -        <!-- Start the authentication process -->
  -        <map:act type="auth-login">
  -            <map:parameter name="handler" value="portalhandler"/>
  -            <map:parameter name="application" value="portal"/> 
  -            <map:parameter name="parameter_name" value="{request-param:name}"/>
  -            <map:parameter name="parameter_password" value="{request-param:password}"/>
  -
  -            <!-- Authentication succeeded -->
  -            <map:act type="portal-login">
  -        	    <map:parameter name="portal-name" value="portal"/>
  -            </map:act>
  -
  -            <map:redirect-to uri="{request-param:resource}"/>
  -
  -        </map:act>
  -        <!-- Authentication failed -->
  -        <map:generate src="resources/login-error.xml"/>
  -        <map:transform src="{global:skin}styles/portal-page.xsl">
  -            <map:parameter name="user" value="anonymous"/>
  -        </map:transform>
  -        <map:transform type="encodeURL"/>
  -        <map:serialize/>
  -    </map:match>
  -
  -    <map:match pattern="loggedin">
  -		<map:act type="auth-protect">
  -		  <map:parameter name="handler" value="portalhandler"/> 
  -          <map:parameter name="application" value="portal"/> 
  -		  
  -          <map:generate src="resources/logged-in.xml"/>
  -          <map:transform src="{global:skin}styles/portal-page.xsl"/>
  -          <map:transform type="encodeURL"/>
  -          <map:serialize/>
  -        </map:act>
  -        <map:redirect-to uri="login"/>
  -    </map:match>
  -
  -    <map:match pattern="logout">
  -		<map:act type="auth-protect">
  -		    <map:parameter name="handler" value="portalhandler"/> 
  -            <map:parameter name="application" value="portal"/> 
  -<!--
  -            <map:act type="portal-save-profile">
  -        	    <map:parameter name="portal-name" value="portal"/>
  -            </map:act>
  --->
  -            <map:act type="portal-logout">
  -        	    <map:parameter name="portal-name" value="portal"/>
  -            </map:act>
  -		    <map:act type="auth-logout"/>
  -        </map:act>
  -        <!-- TODO logout page -->
  -        <map:redirect-to uri="login"/>
  -    </map:match>
  -
  -    <!-- Everything else redirect to the portal -->
  -    <map:match pattern="**">
  -        <map:redirect-to uri="portal"/>
  -    </map:match>
  -  </map:pipeline>
  -
  - </map:pipelines>
  -</map:sitemap>
  -
  -<!-- end of file -->
  +<?xml version="1.0"?>
  +<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  + <map:components>
  +  <map:generators default="file">
  +    <map:generator name="portal" src="org.apache.cocoon.portal.generation.PortalGenerator"/>
  +  </map:generators>
  +  <map:transformers default="xslt">
  +    <map:transformer name="htmlroot" src="org.apache.cocoon.portal.transformation.HTMLRootTransformer"

  +                     logger="sitemap.transformer.htmlroot" />
  +    <map:transformer name="rss" src="org.apache.cocoon.portal.transformation.RSSTransformer"

  +                     logger="sitemap.transformer.rss" />
  +    <map:transformer name="portal-proxy" src="org.apache.cocoon.portal.transformation.ProxyTransformer"

  +                     logger="sitemap.transformer.portal.proxy">
  +        <parameter name="envelope-tag" value="div"/>
  +    </map:transformer>
  +    <map:transformer name="portal-new-eventlink" src="org.apache.cocoon.portal.transformation.NewEventLinkTransformer"

  +                     logger="sitemap.transformer.portal.eventlink" />
  +    <map:transformer name="portal-html-eventlink" src="org.apache.cocoon.portal.transformation.HTMLEventLinkTransformer"

  +                     logger="sitemap.transformer.portal.eventlink.html"/>
  +  </map:transformers>
  +  <map:readers default="resource">
  +    <map:reader name="portal-proxy" src="org.apache.cocoon.portal.reading.ProxyReader"

  +                logger="sitemap.reader.portal.proxy" />
  +  </map:readers>
  +  <map:serializers default="html">
  +    <map:serializer name="html-include"
  +                    logger="sitemap.serializer.html" 
  +                    mime-type="text/html"  
  +                    pool-grow="4" pool-max="32" pool-min="4" 
  +                    src="org.apache.cocoon.portal.serialization.IncludingHTMLSerializer">
  +      <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
  +      <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
  +    </map:serializer>
  +  </map:serializers>
  +  <map:matchers default="wildcard"/>
  +  <map:selectors default="browser"/>
  +  <map:actions>  
  +    <map:action src="org.apache.cocoon.portal.acting.BookmarkAction" name="portal-bookmark">
  +        <parameter name="src" value="resources/bookmarks.xml"/>
  +    </map:action>
  +  </map:actions>
  + </map:components>
  + 
  +<!-- =========================== Views =================================== -->
  +
  + <map:views>
  +  <map:view name="content" from-label="content">
  +   <map:serialize type="xml"/>
  +  </map:view>
  + </map:views>
  +
  +
  +<!-- =========================== Pipelines ================================= -->
  +
  + <map:pipelines>
  + 
  +  <map:component-configurations>
  +	<authentication-manager>
  +		<handlers>
  +			<handler name="portalhandler">
  +				<redirect-to uri="cocoon:/login"/>
  +				<authentication uri="cocoon:raw:/sunrise-authuser"/>
  +				<applications>
  +					<application loadondemand="true" name="portal">
  +                		<configuration name="portal">
  +                			<profiles>
  +                				<copletbasedata-load uri="cocoon:raw:/load-global-profile?profile=copletbasedata"/>
  +	                			<copletdata-global-load uri="cocoon:raw:/load-global-profile?profile=copletdata"/>
  +    	            			<copletdata-role-load uri="cocoon:raw:/load-role-profile?profile=copletdata"/>
  +        	        			<copletdata-user-load uri="cocoon:raw:/load-user-profile?profile=copletdata"/>
  +            	    			<copletinstancedata-global-load uri="cocoon:raw:/load-global-profile?profile=copletinstancedata"/>
  +                				<copletinstancedata-role-load uri="cocoon:raw:/load-role-profile?profile=copletinstancedata"/>
  +                				<copletinstancedata-user-load uri="cocoon:raw:/load-user-profile?profile=copletinstancedata"/>
  +                				<copletinstancedata-user-save uri="cocoon:raw:/save-user-profile?profile=copletinstancedata"/>
  +                				<layout-global-load uri="cocoon:raw:/load-global-profile?profile=layout"/>
  +	                			<layout-role-load uri="cocoon:raw:/load-role-profile?profile=layout"/>
  +    	            			<layout-user-load uri="cocoon:raw:/load-user-profile?profile=layout"/>
  +        	        			<layout-user-save uri="cocoon:raw:/save-user-profile?profile=layout"/>
  +            	    		</profiles>
  +	            	    </configuration>
  +	            	</application>
  +	            </applications>
  +	        </handler>
  +		</handlers>
  +    </authentication-manager>
  +
  +	<!-- select skin to use -->
  +	  <map:global-variables>
  +		<skin>skins/common/</skin>
  +	  </map:global-variables>
  +
  +  </map:component-configurations>
  +  
  +  <!-- The internal pipelines for loading and saving -->
  +  <map:pipeline internal-only="true">
  +    <map:match pattern="sunrise-authuser">
  +      <map:generate src="resources/sunrise-user.xml"/>
  +      <map:transform src="styles/authenticate.xsl">
  +        <map:parameter name="use-request-parameters" value="true"/>
  +      </map:transform>
  +      <map:serialize type="xml"/>
  +    </map:match>
  +
  +    <map:match pattern="load-global-profile">
  +    	<map:generate src="profiles/{request-param:profile}/{request-param:portal}.xml"/>
  +    	<map:serialize type="xml"/>
  +    </map:match>
  +
  +    <map:match pattern="load-role-profile">
  +    	<map:generate src="profiles/{request-param:profile}/{request-param:portal}-role-{request-param:role}.xml"/>
  +    	<map:serialize type="xml"/>
  +    </map:match>
  +
  +    <map:match pattern="load-user-profile">
  +    	<map:generate src="profiles/{request-param:profile}/{request-param:portal}-user-{request-param:user}.xml"/>
  +    	<map:serialize type="xml"/>
  +    </map:match>
  +
  +    <map:match pattern="save-user-profile">
  +    	<map:generate src="resources/save-user-profile.xml"/>
  +        <map:transform type="session"/>
  +        <map:transform type="write-source"/>
  +    	<map:serialize type="xml"/>
  +    </map:match>
  +  </map:pipeline>
  +
  +  <!-- Now the accessible pipelines -->
  +  <map:pipeline>
  +
  +    <!-- images -->
  +	<map:match pattern="images/*.gif">
  +		<map:read mime-type="image/gif" src="{global:skin}images/{1}.gif"/>
  +	</map:match>
  +	<map:match pattern="images/*.jpg">
  +    	<map:read mime-type="image/jpg" src="{global:skin}images/{1}.jpg"/>
  +   	</map:match>
  +    
  +	<!-- Cascading Stylesheets -->
  +	<map:match pattern="css/*.css">
  +         <map:read mime-type="text/css" src="{global:skin}css/{1}.css"/>
  +   	</map:match>
  +
  +    <map:match pattern="">
  +         <map:redirect-to uri="portal"/>
  +    </map:match>
  +
  +   <map:match pattern="coplets/**">
  +      <map:mount check-reload="yes" src="coplets/" uri-prefix="coplets"/>
  +    </map:match>
  +
  +    <!-- Do an auto login as anonymous -->
  +    <map:act type="auth-loggedIn">
  +        <map:parameter name="handler" value="portalhandler"/> 
  +        <map:parameter name="application" value="portal"/> 
  +        <map:parameter name="negate-result" value="true"/>
  +
  +        <map:act type="auth-login">
  +            <map:parameter name="handler" value="portalhandler"/>
  +            <map:parameter name="application" value="portal"/> 
  +    
  +            <map:parameter name="parameter_name" value="anonymous"/>
  +            <map:parameter name="parameter_password" value="anonymous"/>
  +         
  +        </map:act>
  +    </map:act>
  +
  +    <!-- Test pipeline for layout engine -->
  +    <map:match pattern="portal">
  +        <map:act type="auth-protect">
  +            <map:parameter name="handler" value="portalhandler"/> 
  +            <map:parameter name="application" value="portal"/> 
  +
  +            <map:generate type="portal" label="content">
  +        	    <map:parameter name="portal-name" value="portal" />
  +            </map:generate>
  +            <map:transform src="{global:skin}styles/portal-page.xsl">
  +                <map:parameter name="user" value="{ID}"/>
  +            </map:transform>
  +            <map:transform type="cinclude"/> 
  +            <map:transform type="portal-coplet"/>
  +            <map:transform type="encodeURL"/>
  +<!--
  +            <map:transform type="htmlroot" />
  +-->          
  +            <!-- If you don't need JSR-168 support, you can use the html serializer
instead -->
  +            <map:serialize type="html-include"/> 
  +        </map:act>
  +    </map:match>
  +        
  +    <!-- Test pipeline for bookmark -->
  +    <map:match pattern="bookmark">
  +        <map:act type="auth-protect">
  +            <map:parameter name="handler" value="portalhandler"/> 
  +            <map:parameter name="application" value="portal"/> 
  +
  +            <map:act type="portal-bookmark">
  +        	    <map:parameter name="portal-name" value="portal" />
  +        	    
  +        	    <map:redirect-to uri="portal?{uri}"/>
  +            </map:act>
  +        </map:act>
  +    </map:match>
  +
  +    <map:match pattern="portalxml">
  +        <map:act type="auth-protect">
  +            <map:parameter name="handler" value="portalhandler"/> 
  +            <map:parameter name="application" value="portal"/> 
  +
  +            <map:generate type="portal" label="content">
  +        	    <map:parameter name="portal-name" value="portal" />
  +            </map:generate>
  +            <map:serialize type="xml"/> 
  +        </map:act>
  +    </map:match>
  +
  +    <!-- Authenticate a user -->
  +    <map:match pattern="auth">
  +        <!-- Check if we are logged in:
  +             - if we are anonymous, then logout
  +             - if we are any other use, redirect to loggedin
  +        -->
  +        <map:act type="auth-loggedIn">
  +            <map:parameter name="handler" value="portalhandler"/> 
  +            
  +	        <map:act type="auth-protect">
  +	            <map:parameter name="handler" value="portalhandler"/> 
  +	            <map:parameter name="application" value="portal"/> 
  +
  +		    	<map:select type="parameter" >
  +		    		<map:parameter name="parameter-selector-test" value="{ID}"/>
  +		    		<map:when test="anonymous">
  +		    		    <map:act type="auth-logout">
  +	                        <map:parameter name="handler" value="portalhandler"/> 
  +		    		    </map:act>
  +		    		</map:when>
  +		    		<map:otherwise>
  +	                    <map:redirect-to uri="loggedin"/>
  +		    		</map:otherwise>
  +		    	</map:select>
  +	        </map:act>
  +        </map:act>
  +        
  +        <!-- Start the authentication process -->
  +        <map:act type="auth-login">
  +            <map:parameter name="handler" value="portalhandler"/>
  +            <map:parameter name="application" value="portal"/> 
  +            <map:parameter name="parameter_name" value="{request-param:name}"/>
  +            <map:parameter name="parameter_password" value="{request-param:password}"/>
  +
  +            <!-- Authentication succeeded -->
  +            <map:act type="portal-login">
  +        	    <map:parameter name="portal-name" value="portal"/>
  +            </map:act>
  +
  +            <map:redirect-to uri="{request-param:resource}"/>
  +
  +        </map:act>
  +        <!-- Authentication failed -->
  +        <map:generate src="resources/login-error.xml"/>
  +        <map:transform src="{global:skin}styles/portal-page.xsl">
  +            <map:parameter name="user" value="anonymous"/>
  +        </map:transform>
  +        <map:transform type="encodeURL"/>
  +        <map:serialize/>
  +    </map:match>
  +
  +    <map:match pattern="loggedin">
  +		<map:act type="auth-protect">
  +		  <map:parameter name="handler" value="portalhandler"/> 
  +          <map:parameter name="application" value="portal"/> 
  +		  
  +          <map:generate src="resources/logged-in.xml"/>
  +          <map:transform src="{global:skin}styles/portal-page.xsl"/>
  +          <map:transform type="encodeURL"/>
  +          <map:serialize/>
  +        </map:act>
  +        <map:redirect-to uri="login"/>
  +    </map:match>
  +
  +    <map:match pattern="logout">
  +		<map:act type="auth-protect">
  +		    <map:parameter name="handler" value="portalhandler"/> 
  +            <map:parameter name="application" value="portal"/> 
  +<!--
  +            <map:act type="portal-save-profile">
  +        	    <map:parameter name="portal-name" value="portal"/>
  +            </map:act>
  +-->
  +            <map:act type="portal-logout">
  +        	    <map:parameter name="portal-name" value="portal"/>
  +            </map:act>
  +		    <map:act type="auth-logout"/>
  +        </map:act>
  +        <!-- TODO logout page -->
  +        <map:redirect-to uri="login"/>
  +    </map:match>
  +
  +    <!-- Everything else redirect to the portal -->
  +    <map:match pattern="**">
  +        <map:redirect-to uri="portal"/>
  +    </map:match>
  +  </map:pipeline>
  +
  + </map:pipelines>
  +</map:sitemap>
  +
  +<!-- end of file -->
  
  
  

Mime
View raw message