blob: 49d693a525e74423e403f8efca50a3ef01650f4c [file] [log] [blame]
<?xml version="1.0"?>
<!-- CVS: $Id: sitemap.xmap,v 1.4 2002/07/04 23:25:21 michicms Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:generators default="file">
<map:generator name="request" src="org.apache.cocoon.generation.RequestGenerator"/>
</map:generators>
<map:transformers default="xslt"/>
<map:readers default="resource"/>
<map:serializers default="html"/>
<map:matchers default="wildcard">
<map:matcher name="wildcard" logger="sitemap.matcher.wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcher"/>
</map:matchers>
<map:actions>
<map:action name="authorizer" src="org.wyona.cms.cocoon.acting.PMLAuthorizerAction" logger="sitemap.action.pml-authorizer">
<authenticator type="forum"/>
<policies>forum/policies/</policies>
<public>login-screen|do-login|switch-user|logout|.*[.]css|.*[.]jpg|.*[.]gif</public>
</map:action>
<map:action name="authenticator" src="org.wyona.cms.cocoon.acting.IMLAuthenticatorAction" logger="sitemap.action.iml-authenticator">
<type>forum</type>
<passwd>forum/passwd/</passwd>
</map:action>
</map:actions>
</map:components>
<map:resources>
<map:resource name="login">
<map:generate type="serverpages" src="../../docs/cms/access-control/identify.xsp"/>
<map:transform src="../../stylesheets/cms/Page/Login/main.xsl">
<map:parameter name="publication_name" value="Wyona News and Comments"/>
<map:parameter name="publication_id" value="forum"/>
</map:transform>
<map:serialize type="html"/>
</map:resource>
</map:resources>
<map:pipelines>
<map:pipeline>
<map:match pattern="authoring/introduction.html">
<map:redirect-to uri="../introduction.html"/>
</map:match>
<map:match pattern="introduction.html">
<map:read src="resources/publication/html/index.html" mime-type="text/html"/>
</map:match>
<map:match pattern="authoring/customizing.html">
<map:redirect-to uri="../customizing.html"/>
</map:match>
<map:match pattern="customizing.html">
<map:read src="resources/publication/html/customizing.html" mime-type="text/html"/>
</map:match>
<map:match pattern="authoring/submitStory.html">
<map:redirect-to uri="../submitStory.html"/>
</map:match>
<map:match pattern="submitStory.html">
<map:read src="resources/publication/html/submitStory.html" mime-type="text/html"/>
</map:match>
<map:match pattern="authoring/gettingStarted.html">
<map:redirect-to uri="../gettingStarted.html"/>
</map:match>
<map:match pattern="gettingStarted.html">
<map:read src="resources/publication/html/gettingStarted.html" mime-type="text/html"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="live/**">
<map:mount uri-prefix="" src="live-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
<!-- The authoring area -->
<!--
<map:match pattern="authoring/**">
<map:mount uri-prefix="authoring" src="authoring-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
-->
<!-- Xopus Interface -->
<map:match pattern="xopus/**">
<map:mount uri-prefix="xopus" src="xopus.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
<map:match pattern="passwd/*.iml">
<map:generate src="docs/publication/access-control/passwd/{1}.iml"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="policies/**">
<map:mount uri-prefix="policies" src="policies-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
<map:match pattern="**">
<map:act type="authorizer">
<map:match pattern="login-screen">
<map:call resource="login"/>
</map:match>
<map:match pattern="do-login">
<map:act type="authenticator">
<map:redirect-to uri="{protected_destination}" session="true"/>
</map:act>
<map:redirect-to uri="login-screen?status=failed" session="true"/>
</map:match>
<map:match pattern="switch-user">
<map:generate type="serverpages" src="docs/wyona/cms/ac/switch-user.xsp"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="logout">
<map:generate type="serverpages" src="../../docs/cms/access-control/invalidate.xsp"/>
<map:transform src="../../stylesheets/cms/Page/Logout/main.xsl">
<map:parameter name="publication_name" value="Wyona News and Comments"/>
</map:transform>
<map:serialize/>
</map:match>
<!-- ####################################################################### -->
<!-- Everything below is "protected" by policies-sitemap.xmap -->
<!-- ####################################################################### -->
<!-- Identities requested by IMLAuthenticator -->
<!--
<map:match pattern="passwd/*.iml">
<map:generate src="docs/wyona/cms/ac/passwd/{1}.iml"/>
<map:serialize type="xml"/>
</map:match>
-->
<!-- Policies requested by PMLAuthorizer -->
<!--
<map:match pattern="policies/**">
<map:mount uri-prefix="" src="policies-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
-->
<!-- The authoring area -->
<map:match pattern="authoring/**">
<map:mount uri-prefix="authoring" src="authoring-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
<map:match pattern="**">
<map:mount uri-prefix="" src="live-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
</map:act>
<map:call resource="login"/>
</map:match>
<!--
<map:match pattern="**">
<map:mount uri-prefix="" src="live-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
-->
<map:handle-errors>
<map:transform src="context://stylesheets/system/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
</map:sitemap>