Thanks everyone for discussions. (OFBIZ-10398) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836874 13f79535-47bb-0310-9956-ffa450edef68
101 lines
5.4 KiB
XML
101 lines
5.4 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.
|
|
-->
|
|
|
|
<simple-map-processors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
|
<!-- ContactMech map procs -->
|
|
<simple-map-processor name="deleteContactMech">
|
|
<process field="contactMechId"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyContactMechIdMissing"/></not-empty></process>
|
|
<process field="partyId"><copy/></process>
|
|
</simple-map-processor>
|
|
|
|
<simple-map-processor name="postalAddress">
|
|
<process field="partyId"><copy/></process>
|
|
<process field="toName"><copy/></process>
|
|
<process field="attnName"><copy/></process>
|
|
<process field="address1"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyAddressLine1Missing"/></not-empty></process>
|
|
<process field="address2"><copy/></process>
|
|
<process field="directions"><copy/></process>
|
|
<process field="city"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyCityMissing"/></not-empty></process>
|
|
<process field="stateProvinceGeoId"><copy/></process>
|
|
<process field="postalCode"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyPostalCodeMissing"/></not-empty></process>
|
|
<process field="postalCodeExt"><copy/></process>
|
|
<process field="countryGeoId"><copy/></process>
|
|
<process field="countyGeoId"><copy/></process>
|
|
<process field="postalCodeGeoId"><copy/></process>
|
|
<process field="geoPointId"><copy/></process>
|
|
<process field="allowSolicitation"><copy/></process>
|
|
</simple-map-processor>
|
|
|
|
<simple-map-processor name="telecomNumber">
|
|
<process field="partyId"><copy/></process>
|
|
<process field="countryCode"><copy/></process>
|
|
<process field="areaCode"><copy/></process>
|
|
<process field="contactNumber"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyContactNumberMissing"/></not-empty></process>
|
|
<process field="extension"><copy/></process>
|
|
<process field="allowSolicitation"><copy/></process>
|
|
</simple-map-processor>
|
|
|
|
<!-- PartyContactMechPurpose map procs -->
|
|
<simple-map-processor name="createPartyContactMechPurpose">
|
|
<process field="partyId"><copy/></process>
|
|
<process field="contactMechId"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyContactMechIdMissing"/></not-empty></process>
|
|
<process field="contactMechPurposeTypeId"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyPurposeTypeMissingCannotAdd"/></not-empty></process>
|
|
</simple-map-processor>
|
|
<simple-map-processor name="expirePartyContactMechPurpose">
|
|
<process field="partyId"><copy/></process>
|
|
<process field="contactMechId"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyContactMechIdMissing"/></not-empty></process>
|
|
<process field="contactMechPurposeTypeId"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyPurposeTypeMissingCannotRemove"/></not-empty></process>
|
|
<process field="fromDate">
|
|
<not-empty><fail-property resource="PartyUiLabels" property="CommonFromDateMissing"/></not-empty>
|
|
<convert type="Timestamp"><fail-property resource="PartyUiLabels" property="CommonFromDateNotValidDateTime"/></convert></process>
|
|
</simple-map-processor>
|
|
|
|
<simple-map-processor name="person">
|
|
<process field="firstName">
|
|
<copy/>
|
|
<not-empty>
|
|
<fail-property resource="PartyUiLabels" property="PartyFirstNameMissing"/>
|
|
</not-empty>
|
|
</process>
|
|
<process field="lastName">
|
|
<copy/>
|
|
<not-empty>
|
|
<fail-property resource="PartyUiLabels" property="PartyLastNameMissingError"/>
|
|
</not-empty>
|
|
</process>
|
|
</simple-map-processor>
|
|
|
|
<simple-map-processor name="emailAddress">
|
|
<process field="emailContactMechId">
|
|
<copy to-field="contactMechId" set-if-null="false"/>
|
|
</process>
|
|
<process field="emailAddress">
|
|
<not-empty>
|
|
<fail-property resource="PartyUiLabels" property="PartyEmailAddressMissingError"/>
|
|
</not-empty>
|
|
<validate-method method="isEmail">
|
|
<fail-property resource="PartyUiLabels" property="PartyEmailAddressNotFormattedCorrectly"/>
|
|
</validate-method>
|
|
<copy/>
|
|
</process>
|
|
</simple-map-processor>
|
|
</simple-map-processors>
|