You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2015/09/21 09:54:18 UTC
svn commit: r1704227 - in /ofbiz/trunk:
applications/order/webapp/ordermgr/WEB-INF/controller.xml
specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
Author: jleroux
Date: Mon Sep 21 07:54:13 2015
New Revision: 1704227
URL: http://svn.apache.org/viewvc?rev=1704227&view=rev
Log:
A patch from Pierre Smits for "Replace bsf event type and handler with groovy" https://issues.apache.org/jira/browse/OFBIZ-6598
jleroux: I did the same in order controller (was only in ecommerce) even if only a commented out example was used there
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml?rev=1704227&r1=1704226&r2=1704227&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml Mon Sep 21 07:54:13 2015
@@ -27,7 +27,7 @@ under the License.
<!-- event handlers -->
<handler name="service-multi" type="request" class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
- <handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler"/>
+ <handler name="groovy" type="request" class="org.ofbiz.webapp.event.GroovyEventHandler"/>
<!-- Events to run on every request before security (chains exempt) -->
<!--
<preprocessor>
@@ -1903,11 +1903,11 @@ under the License.
<handler name="jasperreportspdf" type="view" class="org.ofbiz.webapp.view.JasperReportsPdfViewHandler"/>
to the handler section of this file and uncomment the following lines:
<request-map uri="orderreportjasper.pdf"><security https="true" auth="true"/>
- <event type="bsf" path="/reports/" invoke="OrderReportPrepare.groovy"/>
+ <event type="groovy" path="/reports/" invoke="OrderReportPrepare.groovy"/>
<response name="success" type="view" value="orderreportjasper"/>
</request-map>
<request-map uri="orderitemreportjasper.pdf"><security https="true" auth="true"/>
- <event type="bsf" path="/reports/" invoke="OrderReportPrepare.groovy"/>
+ <event type="groovy" path="/reports/" invoke="OrderReportPrepare.groovy"/>
<response name="success" type="view" value="orderitemreportjasper"/>
</request-map>
<request-map uri="orderreportlist">
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1704227&r1=1704226&r2=1704227&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Mon Sep 21 07:54:13 2015
@@ -24,7 +24,7 @@ under the License.
<errorpage>/error/error.jsp</errorpage>
<handler name="java" type="request" class="org.ofbiz.webapp.event.JavaEventHandler"/>
- <handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler"/>
+ <handler name="groovy" type="request" class="org.ofbiz.webapp.event.GroovyEventHandler"/>
<handler name="soap" type="request" class="org.ofbiz.webapp.event.SOAPEventHandler"/>
<handler name="service" type="request" class="org.ofbiz.webapp.event.ServiceEventHandler"/>
<handler name="service-multi" type="request" class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
@@ -81,7 +81,7 @@ under the License.
<description>Verify a user is logged in.</description>
<security https="true" auth="false"/>
<event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="storeCheckLogin"/>
- <response name="success" type="view-last"/>
+ <response name="success" type="view-last" value="main"/>
<response name="error" type="view" value="login"/>
</request-map>
<request-map uri="login">
@@ -121,7 +121,7 @@ under the License.
<!-- <response name="success" type="view" value="main"/> -->
<!-- </request-map> -->
- <request-map uri="main"><security https="false" auth="false"/><response name="success" type="view" value="main" save-current-view="true"/></request-map>
+ <request-map uri="main"><security https="false" auth="false"/><response name="success" type="view" value="main"/></request-map>
<request-map uri="policies"><security https="false" auth="false"/><response name="success" type="view" value="policies"/></request-map>
<!-- TO BE REMOVED
@@ -437,7 +437,7 @@ under the License.
<request-map uri="processPaymentSettings">
<security https="true" auth="false"/>
- <event type="bsf" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
+ <event type="groovy" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
<response name="success" type="request" value="reviewOrder"/>
<response name="error" type="view" value="paymentinformation"/>
</request-map>
@@ -523,7 +523,7 @@ under the License.
<request-map uri="quickAnonAddCreditCardToCart">
<security https="true" auth="false"/>
- <event type="bsf" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
+ <event type="groovy" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
<response name="success" type="view" value="quickAnonCcInfo"/>
<response name="error" type="view" value="quickAnonCcInfo"/>
</request-map>
@@ -537,21 +537,21 @@ under the License.
<request-map uri="quickAnonAddEftAccountToCart">
<security https="true" auth="false"/>
- <event type="bsf" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
+ <event type="groovy" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
<response name="success" type="view" value="quickAnonEftInfo"/>
<response name="error" type="view" value="quickAnonEftInfo"/>
</request-map>
<request-map uri="quickAnonEnterExtOffline">
<security https="true" auth="false"/>
- <event type="bsf" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
+ <event type="groovy" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
<response name="success" type="view" value="quickAnonOrderReview"/>
<response name="error" type="view" value="quickAnonOrderReview"/>
</request-map>
<request-map uri="quickAnonAddGiftCardToCart">
<security https="true" auth="false"/>
- <event type="bsf" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
+ <event type="groovy" invoke="component://ecommerce/script/org/ofbiz/ecommerce/order/ProcessPaymentSettings.groovy"/>
<response name="success" type="request" value="quickAnonGcInfo"/>
<response name="error" type="view" value="quickAnonGcInfo"/>
</request-map>