Files
ofbiz-framework/applications/product/servicedef/services_feature.xml
T
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00

281 lines
20 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>Product Component Services</description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Product Feature Services -->
<service name="createProductFeatureCategory" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureCategory" auth="true">
<description>Create a ProductFeatureCategory record</description>
<attribute name="parentCategoryId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureCategoryId" type="String" mode="OUT" optional="false"/>
</service>
<service name="updateProductFeatureCategory" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureCategory" auth="true">
<description>Update a ProductFeatureCategory record</description>
<attribute name="productFeatureCategoryId" type="String" mode="IN" optional="false"/>
<attribute name="parentCategoryId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="false"/>
</service>
<service name="createProductFeature" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeature" auth="true">
<description>Create a ProductFeature record</description>
<attribute name="productFeatureTypeId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureCategoryId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="false"/>
<attribute name="uomId" type="String" mode="IN" optional="true"/>
<attribute name="numberSpecified" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="defaultAmount" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="true"/>
<attribute name="productFeatureId" type="String" mode="OUT" optional="false"/>
<attribute name="defaultSequenceNum" type="Long" mode="IN" optional="true"/>
<attribute name="idCode" type="String" mode="IN" optional="true"/>
<attribute name="abbrev" type="String" mode="IN" optional="true"/>
</service>
<service name="updateProductFeature" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeature" auth="true">
<description>Update a ProductFeature record</description>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureTypeId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureCategoryId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="false"/>
<attribute name="uomId" type="String" mode="IN" optional="true"/>
<attribute name="numberSpecified" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="defaultAmount" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="defaultSequenceNum" type="Long" mode="IN" optional="true"/>
<attribute name="idCode" type="String" mode="IN" optional="true"/>
<attribute name="abbrev" type="String" mode="IN" optional="true"/>
</service>
<service name="applyFeatureToProduct" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="applyFeatureToProduct" auth="true">
<description>Apply a ProductFeature to a Product; a fromDate can be used
to specify when the feature will be applied, if no fromDate is specified,
it will be applied now.</description>
<attribute name="productId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureApplTypeId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="thruDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="sequenceNum" type="Long" mode="IN" optional="true"/>
<attribute name="amount" type="BigDecimal" mode="IN" optional="true"/>
</service>
<service name="updateFeatureToProductApplication" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateFeatureToProductApplication" auth="true">
<description>Update a ProductFeature to Product Application</description>
<attribute name="productId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureApplTypeId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="false"/>
<attribute name="thruDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="sequenceNum" type="Long" mode="IN" optional="true"/>
<attribute name="amount" type="BigDecimal" mode="IN" optional="true"/>
</service>
<service name="removeFeatureFromProduct" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeFeatureFromProduct" auth="true">
<description>Remove a ProductFeature from a Product; a thruDate can be used
to specify when the feature will be removed, if no thruDate is specified,
it will be removed now.</description>
<attribute name="productId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="false"/>
<attribute name="thruDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
</service>
<service name="applyFeatureToProductFromTypeAndCode" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="applyFeatureToProductFromTypeAndCode" auth="true">
<description>Apply a ProductFeature to a Product</description>
<attribute name="productId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureTypeId" type="String" mode="IN" optional="false"/>
<attribute name="idCode" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureApplTypeId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="thruDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="sequenceNum" type="Long" mode="IN" optional="true"/>
</service>
<!-- ProductFeatureCategoryAppl Services -->
<service name="createProductFeatureCategoryAppl" default-entity-name="ProductFeatureCategoryAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureCategoryAppl" auth="true">
<description>Create a ProductFeatureCategory to ProductCategory Application</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateProductFeatureCategoryAppl" default-entity-name="ProductFeatureCategoryAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureCategoryAppl" auth="true">
<description>Update a ProductFeatureCategory to ProductCategory Application</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeProductFeatureCategoryAppl" default-entity-name="ProductFeatureCategoryAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeProductFeatureCategoryAppl" auth="true">
<description>Remove a ProductFeatureCategory to ProductCategory Application</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- ProductFeatureCatGrpAppl Services -->
<service name="createProductFeatureCatGrpAppl" default-entity-name="ProductFeatureCatGrpAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureCatGrpAppl" auth="true">
<description>Create a ProductFeatureGroup to ProductCategory Application</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateProductFeatureCatGrpAppl" default-entity-name="ProductFeatureCatGrpAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureCatGrpAppl" auth="true">
<description>Update a ProductFeatureGroup to ProductCategory Application</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeProductFeatureCatGrpAppl" default-entity-name="ProductFeatureCatGrpAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeProductFeatureCatGrpAppl" auth="true">
<description>Remove a ProductFeatureGroup to ProductCategory Application</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- ProductFeatureGroup Services -->
<service name="createProductFeatureGroup" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureGroup" auth="true">
<description>Create a ProductFeatureGroup</description>
<attribute name="description" type="String" mode="IN" optional="true"/>
<attribute name="productFeatureGroupId" type="String" mode="OUT" optional="false"/>
</service>
<service name="updateProductFeatureGroup" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureGroup" auth="true">
<description>Create a ProductFeatureGroup</description>
<attribute name="productFeatureGroupId" type="String" mode="IN" optional="false"/>
<attribute name="description" type="String" mode="IN" optional="true"/>
</service>
<service name="createProductFeatureGroupAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureGroupAppl" auth="true">
<description>Create a ProductFeatureGroup to ProductFeature Application</description>
<attribute name="productFeatureGroupId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="thruDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="sequenceNum" type="Long" mode="IN" optional="true"/>
</service>
<service name="updateProductFeatureGroupAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureGroupAppl" auth="true">
<description>Update a ProductFeatureGroup to ProductFeature Application</description>
<attribute name="productFeatureGroupId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="false"/>
<attribute name="thruDate" type="java.sql.Timestamp" mode="IN" optional="true"/>
<attribute name="sequenceNum" type="Long" mode="IN" optional="true"/>
</service>
<service name="removeProductFeatureGroupAppl" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeProductFeatureGroupAppl" auth="true">
<description>Remove a ProductFeatureGroup to ProductFeature Application</description>
<attribute name="productFeatureGroupId" type="String" mode="IN" optional="false"/>
<attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="java.sql.Timestamp" mode="IN" optional="false"/>
</service>
<!-- ProductFeatureIactn Services -->
<service name="createProductFeatureIactn" default-entity-name="ProductFeatureIactn" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureIactn" auth="true">
<description>Create a ProductFeatureIactn</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="productFeatureIactnTypeId" mode="IN" optional="false"/>
</service>
<service name="removeProductFeatureIactn" default-entity-name="ProductFeatureIactn" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeProductFeatureIactn" auth="true">
<description>Remove a ProductFeatureIactn</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- ProductFeatureType Services -->
<service name="createProductFeatureType" default-entity-name="ProductFeatureType" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureType" auth="true">
<description>Create a ProductFeatureType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateProductFeatureType" default-entity-name="ProductFeatureType" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureType" auth="true">
<description>Update a ProductFeatureType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeProductFeatureType" default-entity-name="ProductFeatureType" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeProductFeatureType" auth="true">
<description>Remove a ProductFeatureType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- ProductFeatureApplAttr -->
<service name="createProductFeatureApplAttr" default-entity-name="ProductFeatureApplAttr" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createProductFeatureApplAttr" auth="true">
<description>Create a ProductFeatureApplAttr</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateProductFeatureApplAttr" default-entity-name="ProductFeatureApplAttr" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateProductFeatureApplAttr" auth="true">
<description>Update a ProductFeatureApplAttr</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeProductFeatureApplAttr" default-entity-name="ProductFeatureApplAttr" engine="simple"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="removeProductFeatureApplAttr" auth="true">
<description>Remove a ProductFeatureApplAttr</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<!-- Feature Price Service -->
<service name="createFeaturePrice" engine="simple" default-entity-name="ProductFeaturePrice"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="createFeaturePrice" auth="true">
<description>Create a Feature Price</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
<override name="productFeatureId" mode="IN" optional="true"/>
<override name="fromDate" mode="INOUT" optional="true"/>
<override name="price" optional="false"/>
</service>
<service name="updateFeaturePrice" engine="simple" default-entity-name="ProductFeaturePrice"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="updateFeaturePrice" auth="true">
<description>Update a Feature Price</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true">
<exclude field-name="createdDate"/>
<exclude field-name="createdByUserLogin"/>
<exclude field-name="lastModifiedDate"/>
<exclude field-name="lastModifiedByUserLogin"/>
</auto-attributes>
<override name="price" optional="false"/>
</service>
<service name="deleteFeaturePrice" engine="simple" default-entity-name="ProductFeaturePrice"
location="component://product/script/org/ofbiz/product/feature/ProductFeatureServices.xml" invoke="deleteFeaturePrice" auth="true">
<description>Delete a Feature Price</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
</services>