You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/05/24 16:57:44 UTC
svn commit: r178178 -
/lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap
Author: andreas
Date: Tue May 24 07:57:42 2005
New Revision: 178178
URL: http://svn.apache.org/viewcvs?rev=178178&view=rev
Log:
ported BXE to usecase framework
Modified:
lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap
Modified: lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap?rev=178178&r1=178177&r2=178178&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap Tue May 24 07:57:42 2005
@@ -71,20 +71,6 @@
<map:pipeline type="noncaching">
- <!--
- This reads the data that BXE posts when the user saves changes,
- applies a transformation and provides the data as XML
- TODO: document why the special transformation is needed, either here
- or in the change-object-path-back.xsl stylesheet.
- -->
- <map:match pattern="request2document">
- <map:generate type="stream"/>
- <map:transform src="../../xslt/bxe/change-object-path-back.xsl">
- <map:parameter name="documentid" value="{page-envelope:document-id}"/>
- </map:transform>
- <map:serialize type="xml"/>
- </map:match>
-
<map:match type="usecase" pattern="bxe">
<map:match type="step" pattern="open">
@@ -246,7 +232,7 @@
<!-- The document is checked in when we exit from bx (in case of save&exit and in case of exit), so we use the usecase
for the checkin while we redirect to the document
-->
- <map:parameter name="BX_exitdestination" value="{request:requestURI}?lenya.usecase=checkin&lenya.step=checkin&backup=true"/>
+ <map:parameter name="BX_exitdestination" value="{request:requestURI}?lenya.usecase=edit.bxe&lenya.continuation={request-param:lenya.continuation}&submit=Submit"/>
<map:parameter name="contextmenufile" value="../../resources/misc/bxe/contextmenu.xml"/>
</map:transform>
<map:transform type="cinclude"/>
@@ -266,27 +252,23 @@
+-->
<map:select type="request-method">
+ <!--
+ This reads the data that BXE posts when the user saves changes,
+ applies a transformation and provides the data as XML
+ TODO: document why the special transformation is needed, either here
+ or in the change-object-path-back.xsl stylesheet.
+ -->
<map:when test="PUT">
-
- <!--+
- | before we save, we must be sure that the document is well checked out
- +-->
-
- <map:act type="reserved-checkout-test">
- <map:generate type="serverpages" src="../../content/rc/{exception}.xsp">
- <map:parameter name="user" value="{user}"/>
- <map:parameter name="filename" value="{filename}"/>
- <map:parameter name="date" value="{date}"/>
- </map:generate>
- <map:transform src="../../xslt/rc/rco-exception.xsl"/>
- <map:call resource="style-cms-page"/>
- </map:act>
-
- <map:call function="editDocument">
- <map:parameter name="lenya.usecase" value="publication.edit"/>
- <map:parameter name="sourceUri" value="cocoon:/request2document"/>
- <map:parameter name="noCheckin" value="true"/>
- </map:call>
+ <map:generate type="stream"/>
+ <map:transform src="../../xslt/bxe/change-object-path-back.xsl">
+ <map:parameter name="documentid" value="{page-envelope:document-id}"/>
+ </map:transform>
+ <map:transform src="../../usecases/edit/bxe/addSourceTags.xsl">
+ <map:parameter name="source" value="context://lenya/pubs/{page-envelope:publication-id}/work/bxe/content/{page-envelope:area}/{page-envelope:document-path}.tmp"/>
+ </map:transform>
+ <map:transform type="write-source"/>
+ <map:transform src="../../usecases/edit/bxe/removeSourceTags.xsl"/>
+ <map:serialize type="xml" status-code="204"/>
</map:when>
<map:otherwise> <!-- GET -->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org
Re: svn commit: r178178 - /lenya/trunk/src/webapp/lenya/pubs/default/usecase-bxe.xmap
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
andreas@apache.org wrote:
> - <map:act type="reserved-checkout-test">
> - <map:generate type="serverpages" src="../../content/rc/{exception}.xsp">
> - <map:parameter name="user" value="{user}"/>
> - <map:parameter name="filename" value="{filename}"/>
> - <map:parameter name="date" value="{date}"/>
> - </map:generate>
> - <map:transform src="../../xslt/rc/rco-exception.xsl"/>
> - <map:call resource="style-cms-page"/>
> - </map:act>
excellent. there are now only 2 uses of the rc actions left as far as i
can see:
* xopus usecase
* kupu usecase
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org