After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any". This * Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default. * Replaces in services definition all allow-html="safe" by allow-html="any" * Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
262 lines
18 KiB
XML
262 lines
18 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
|
<description>Order Services: Quotes </description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- Quote -->
|
|
<service name="getNextQuoteId" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="getNextQuoteId">
|
|
<description>Get the Next Quote ID According to Settings on the PartyAcctgPreference Entity for the given Party</description>
|
|
<implements service="createQuote"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
|
|
<service name="quoteSequenceEnforced" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="quoteSequenceEnforced">
|
|
<implements service="getNextQuoteId" optional="true"/>
|
|
<attribute name="partyAcctgPreference" type="org.ofbiz.entity.GenericValue" mode="IN"/>
|
|
<override name="quoteId" type="Long" mode="OUT"/>
|
|
</service>
|
|
|
|
<service name="createQuote" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuote" auth="true">
|
|
<description>Create an Quote</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="updateQuote" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuote" auth="true">
|
|
<description>Update a Quote</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="copyQuote" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="copyQuote" auth="true">
|
|
<description>Copy a Quote</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="false"/>
|
|
<attribute name="copyQuoteRoles" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteAttributes" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteCoefficients" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteItems" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteAdjustments" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteTerms" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="checkUpdateQuoteStatus" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="checkUpdateQuoteStatus" auth="true">
|
|
<description>Set the Quote status to ordered.</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<!-- QuoteRole -->
|
|
<service name="createQuoteRole" default-entity-name="QuoteRole" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteRole" auth="true">
|
|
<description>Create a QuoteRole</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteRole" default-entity-name="QuoteRole" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteRole" auth="true">
|
|
<description>Remove a QuoteRole</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- QuoteItem -->
|
|
<service name="createQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteItem" auth="true">
|
|
<description>Create a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteItem" auth="true">
|
|
<description>Update a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteItem" auth="true">
|
|
<description>Remove a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="copyQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="copyQuoteItem" auth="true">
|
|
<description>Copy a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="quoteIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteItemSeqIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteAdjustments" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- QuoteAttribute -->
|
|
<service name="createQuoteAttribute" default-entity-name="QuoteAttribute" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteAttribute" auth="true">
|
|
<description>Create a QuoteAttribute</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateQuoteAttribute" default-entity-name="QuoteAttribute" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteAttribute" auth="true">
|
|
<description>Update a QuoteAttribute</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteAttribute" engine="simple" default-entity-name="QuoteAttribute"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteAttribute" auth="true">
|
|
<description>Remove a QuoteAttribute</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- QuoteCoefficient -->
|
|
<service name="createQuoteCoefficient" default-entity-name="QuoteCoefficient" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteCoefficient" auth="true">
|
|
<description>Create a QuoteCoefficient</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateQuoteCoefficient" default-entity-name="QuoteCoefficient" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteCoefficient" auth="true">
|
|
<description>Update a QuoteCoefficient</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteCoefficient" engine="simple" default-entity-name="QuoteCoefficient"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteCoefficient" auth="true">
|
|
<description>Remove a QuoteCoefficient</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- Specialized Quote services -->
|
|
<service name="createQuoteAndQuoteItemForRequest" engine="simple" default-entity-name="QuoteItem"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteAndQuoteItemForRequest" auth="true">
|
|
<description>Create a new Quote and Quote Item for a CustRequest</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="true"/>
|
|
<override name="custRequestId" optional="false"/>
|
|
</service>
|
|
<service name="autoUpdateQuotePrice" engine="simple" default-entity-name="QuoteItem"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="autoUpdateQuotePrice" auth="true">
|
|
<description>Update the QuoteItem price with the passed value (if present) or automatically from the averageCost</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<attribute name="manualQuoteUnitPrice" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="defaultQuoteUnitPrice" type="BigDecimal" mode="IN" optional="true"/>
|
|
<!--<attribute name="averageCost" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="costToPriceMult" type="BigDecimal" mode="IN" optional="true"/>-->
|
|
</service>
|
|
<service name="autoCreateQuoteAdjustments" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="autoCreateQuoteAdjustments">
|
|
<description>Remove all existing quote adjustments, recalc them and persist in QuoteAdjustment.</description>
|
|
<attribute name="quoteId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteAdjustment" default-entity-name="QuoteAdjustment" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteAdjustment">
|
|
<description>Creates a new quote adjustment record</description>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
<auto-attributes mode="OUT" include="pk" optional="false"/>
|
|
<override name="quoteAdjustmentTypeId" optional="false"/>
|
|
<override name="quoteId" optional="false"/>
|
|
</service>
|
|
<service name="updateQuoteAdjustment" default-entity-name="QuoteAdjustment" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteAdjustment" auth="true">
|
|
<description>Update a QuoteAdjustment</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteAdjustment" engine="simple" default-entity-name="QuoteAdjustment"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteAdjustment" auth="true">
|
|
<description>Remove a QuoteAdjustment</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="createQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteWorkEffort">
|
|
<description>Creates a new QuoteWorkEffort record and WorkEffort record</description>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
<auto-attributes mode="INOUT" include="pk" optional="true"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true" entity-name="WorkEffort"/>
|
|
<auto-attributes mode="INOUT" include="pk" optional="true" entity-name="WorkEffort"/>
|
|
<override name="quoteId" optional="false"/>
|
|
<override name="workEffortId" optional="false"/>
|
|
</service>
|
|
<service name="deleteQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="deleteQuoteWorkEffort">
|
|
<description>Creates a new QuoteWorkEffort record</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteFromCart" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteFromCart">
|
|
<description>Creates a new quote from a shopping cart</description>
|
|
<attribute name="cart" type="org.ofbiz.order.shoppingcart.ShoppingCart" mode="IN" optional="false"/>
|
|
<attribute name="applyStorePromotions" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteFromShoppingList" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteFromShoppingList">
|
|
<description>Creates a new quote from a shopping list</description>
|
|
<attribute name="shoppingListId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="applyStorePromotions" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteFromCustRequest" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteFromCustRequest">
|
|
<description>Creates a new quote from a customer request</description>
|
|
<attribute name="custRequestId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="quoteTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="sendQuoteReportMail" engine="java" require-new-transaction="true" max-retry="3"
|
|
location="org.ofbiz.order.quote.QuoteServices" invoke="sendQuoteReportMail">
|
|
<description>Send a quote report mail</description>
|
|
<attribute name="emailType" type="String" mode="INOUT" optional="false"/>
|
|
<attribute name="quoteId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="sendTo" type="String" mode="IN" optional="false"/>
|
|
<attribute name="sendCc" type="String" mode="IN" optional="true"/>
|
|
<attribute name="note" type="String" mode="IN" optional="true"/>
|
|
<attribute name="body" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="subject" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="messageWrapper" type="org.ofbiz.service.mail.MimeMessageWrapper" mode="OUT" optional="true"/>
|
|
<attribute name="communicationEventId" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="storeQuote" engine="java" default-entity-name="Quote" validate="true" auth="true"
|
|
location="org.ofbiz.order.quote.QuoteServices" invoke="storeQuote">
|
|
<description>Creates quote entities</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="quoteItems" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteAttributes" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteCoefficients" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteRoles" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteTerms" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteTermAttributes" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteWorkEfforts" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteAdjustments" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteNote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteNote" auth="true">
|
|
<description>Create a note item and associate with a quote</description>
|
|
<attribute name="quoteId" type="String" mode="IN"/>
|
|
<attribute name="noteInfo" type="String" mode="IN" allow-html="any"/>
|
|
<attribute name="noteName" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
</services>
|