This is an automated email from the ASF dual-hosted git repository.
nmalin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new ad84551d05 Improved: Use auto-attribute element instead list all
attributes for getPartyPostalAddress
ad84551d05 is described below
commit ad84551d05a12462882bec5586ab398a91eca326
Author: Nicolas Malin <[email protected]>
AuthorDate: Fri Oct 4 14:55:36 2024 +0200
Improved: Use auto-attribute element instead list all attributes for
getPartyPostalAddress
Simple improvement to replace all OUT attribute for the
getPartyPostalAddress service definition by auto-attributes on entity
PostalAddress who contains all.
---
applications/party/servicedef/services.xml | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/applications/party/servicedef/services.xml
b/applications/party/servicedef/services.xml
index dbc3b163a3..de039b501e 100644
--- a/applications/party/servicedef/services.xml
+++ b/applications/party/servicedef/services.xml
@@ -1114,6 +1114,7 @@ under the License.
<service name="getPartyPostalAddress" engine="groovy"
location="component://party/src/main/groovy/org/apache/ofbiz/party/party/PartyServicesScript.groovy"
invoke="getPartyPostalAddress" auth="false">
<description>Get the party postal address</description>
+ <auto-attributes entity-name="PostalAddress" mode="OUT"
optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="false">
<type-validate>
<fail-property resource="PartyErrorUiLabels"
property="PartyRequiredFieldMissingPartyId"/>
@@ -1121,14 +1122,6 @@ under the License.
</attribute>
<attribute name="contactMechPurposeTypeId" type="String" mode="INOUT"
optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT"
optional="true"/>
- <attribute name="address1" type="String" mode="OUT" optional="true"/>
- <attribute name="address2" type="String" mode="OUT" optional="true"/>
- <attribute name="directions" type="String" mode="OUT" optional="true"/>
- <attribute name="city" type="String" mode="OUT" optional="true"/>
- <attribute name="postalCode" type="String" mode="OUT" optional="true"/>
- <attribute name="stateProvinceGeoId" type="String" mode="OUT"
optional="true"/>
- <attribute name="countyGeoId" type="String" mode="OUT"
optional="true"/>
- <attribute name="countryGeoId" type="String" mode="OUT"
optional="true"/>
</service>
<service name="createPartyCarrierAccount"
default-entity-name="PartyCarrierAccount" engine="entity-auto" invoke="create"
auth="true">