services.xml
96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
<?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>Party Component Services</description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- AddressMatchMap services -->
<service name="createAddressMatchMap" engine="simple" default-entity-name="AddressMatchMap" auth="true"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createAddressMatchMap">
<description>Create an AddressMatchMap record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="importAddressMatchMapCsv" engine="java" auth="true"
location="org.ofbiz.party.party.PartyServices" invoke="importAddressMatchMapCsv">
<description>Import a CSV (name,value) of AddressMatchMap records</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<attribute name="uploadedFile" type="java.nio.ByteBuffer" mode="IN" optional="false"/>
<attribute name="_uploadedFile_fileName" type="String" mode="IN" optional="false"/>
<attribute name="_uploadedFile_contentType" type="String" mode="IN" optional="false"/>
</service>
<service name="removeAddressMatchMap" engine="simple" default-entity-name="AddressMatchMap" auth="true"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deleteAddressMatchMap">
<description>Delete an AddressMatchMap record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<service name="clearAddressMatchMap" engine="simple" default-entity-name="AddressMatchMap" auth="true"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="clearAddressMatchMap">
<description>Delete an AddressMatchMap record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
</service>
<!-- Party services -->
<service name="deleteParty" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="deleteParty" auth="true">
<description>Delete a Party</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
</service>
<service name="setPartyStatus" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="setPartyStatus" auth="true">
<description>Set the party status. Requires PARTYMGR_UPDATE or PARTYMGR_STS_UPDATE permission. The change to statusId must be defined in StatusValidChange, otherwise
this service will fail. The result is the original statusId, so that ECA conditions can check if a status has actually changed.</description>
<permission-service service-name="partyStatusPermissionCheck" main-action="UPDATE"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="statusDate" type="Timestamp" mode="IN" optional="true"/>
<attribute name="oldStatusId" type="String" mode="OUT" optional="false"/>
</service>
<service name="createPerson" engine="java" default-entity-name="Person"
location="org.ofbiz.party.party.PartyServices" invoke="createPerson" auth="false">
<description>Create a Person</description>
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="OUT" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="preferredCurrencyUomId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="true"/>
<attribute name="externalId" type="String" mode="IN" optional="true"/>
<attribute name="statusId" type="String" mode="IN" optional="true"/>
<!-- First and Last names are here optional. This allows to implement simple create user login screen where user is able create account
in system with username and password and then later populate rest of the account information. -->
<!-- <override name="firstName" optional="false"/>
<override name="lastName" optional="false"/>
--> </service>
<service name="createPersonAndUserLogin" engine="simple" require-new-transaction="true"
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml" invoke="createPersonAndUserLogin" auth="false">
<description>Create a Person and UserLogin</description>
<implements service="createUserLogin"/>
<auto-attributes entity-name="Person" mode="IN" include="nonpk" optional="true"/>
<auto-attributes entity-name="Party" mode="IN" include="nonpk" optional="true"/>
<attribute name="partyId" type="String" mode="INOUT" optional="true" entity-name="Person"/>
<attribute name="newUserLogin" type="Map" mode="OUT" optional="false"/>
</service>
<service name="updatePerson" engine="java" default-entity-name="Person"
location="org.ofbiz.party.party.PartyServices" invoke="updatePerson" auth="true">
<description>Update a Person</description>
<!-- <required-permissions join-type="AND">
<check-permission permission="update:party:${partyId}"/>
</required-permissions> -->
<permission-service service-name="partyGroupPermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="true"><!-- if no partyId specified will use userLogin.partyId --></auto-attributes>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="preferredCurrencyUomId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="true"/>
<attribute name="externalId" type="String" mode="IN" optional="true"/>
<attribute name="statusId" type="String" mode="IN" optional="true"/>
<override name="firstName" optional="false"/>
<override name="lastName" optional="false"/>
</service>
<service name="createPartyGroup" engine="java" default-entity-name="PartyGroup"
location="org.ofbiz.party.party.PartyServices" invoke="createPartyGroup" auth="false">
<description>Create a PartyGroup</description>
<auto-attributes mode="INOUT" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="partyTypeId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="true"/>
<attribute name="preferredCurrencyUomId" type="String" mode="IN" optional="true"/>
<attribute name="externalId" type="String" mode="IN" optional="true"/>
<attribute name="statusId" type="String" mode="IN" optional="true"/>
<override name="groupName" optional="false"/>
<override name="comments" allow-html="safe"/>
</service>
<service name="updatePartyGroup" engine="java" default-entity-name="PartyGroup"
location="org.ofbiz.party.party.PartyServices" invoke="updatePartyGroup" auth="true">
<description>Update a PartyGroup</description>
<permission-service service-name="partyGroupPermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="description" type="String" mode="IN" optional="true"/>
<attribute name="partyTypeId" type="String" mode="IN" optional="true"/>
<attribute name="preferredCurrencyUomId" type="String" mode="IN" optional="true"/>
<attribute name="externalId" type="String" mode="IN" optional="true"/>
<attribute name="statusId" type="String" mode="IN" optional="true"/>
<override name="comments" allow-html="safe"/>
</service>
<service name="savePartyNameChange" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="savePartyNameChange" auth="true">
<description>Save Party Name Change</description>
<attribute name="partyId" type="String" mode="IN" optional="true"><!-- if empty, will use userLogin.partyId to handle special case for updatePerson, etc --></attribute>
<attribute name="groupName" type="String" mode="IN" optional="true"/>
<attribute name="firstName" type="String" mode="IN" optional="true"/>
<attribute name="middleName" type="String" mode="IN" optional="true"/>
<attribute name="lastName" type="String" mode="IN" optional="true"/>
<attribute name="personalTitle" type="String" mode="IN" optional="true"/>
<attribute name="suffix" type="String" mode="IN" optional="true"/>
</service>
<service name="getPartyNameForDate" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="getPartyNameForDate" auth="true">
<description>Get Party Name For Date</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="compareDate" type="Timestamp" mode="IN" optional="true"><!-- defaults to now --></attribute>
<attribute name="lastNameFirst" type="String" mode="IN" optional="true"><!-- Y or N, defaults to N --></attribute>
<attribute name="groupName" type="String" mode="OUT" optional="true"/>
<attribute name="firstName" type="String" mode="OUT" optional="true"/>
<attribute name="middleName" type="String" mode="OUT" optional="true"/>
<attribute name="lastName" type="String" mode="OUT" optional="true"/>
<attribute name="personalTitle" type="String" mode="OUT" optional="true"/>
<attribute name="suffix" type="String" mode="OUT" optional="true"/>
<attribute name="fullName" type="String" mode="OUT" optional="true"/>
<attribute name="gender" type="String" mode="OUT" optional="true" />
</service>
<service name="createAffiliate" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="createAffiliate" auth="false">
<description>Create an Affiliate</description>
<attribute name="partyId" type="String" mode="INOUT"/>
<attribute name="affiliateName" type="String" mode="IN"/>
<attribute name="affiliateDescription" type="String" mode="IN" optional="true"/>
<attribute name="yearEstablished" type="String" mode="IN" optional="true"/>
<attribute name="siteType" type="String" mode="IN" optional="true"/>
<attribute name="sitePageViews" type="String" mode="IN" optional="true"/>
<attribute name="siteVisitors" type="String" mode="IN" optional="true"/>
</service>
<service name="updateAffiliate" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="updateAffiliate" auth="true">
<description>Update an Affiliate</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="affiliateName" type="String" mode="IN"/>
<attribute name="affiliateDescription" type="String" mode="IN" optional="true"/>
<attribute name="yearEstablished" type="String" mode="IN" optional="true"/>
<attribute name="siteType" type="String" mode="IN" optional="true"/>
<attribute name="sitePageViews" type="String" mode="IN" optional="true"/>
<attribute name="siteVisitors" type="String" mode="IN" optional="true"/>
</service>
<service name="createPartyNote" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="createPartyNote" auth="true">
<description>Create a note item and associate with a party. If a noteId is passed, creates an assoication to that note instead.</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="noteName" type="String" mode="IN" optional="true"/>
<attribute name="noteId" type="String" mode="INOUT" optional="true"/>
<attribute name="note" type="String" mode="IN" optional="true"/>
</service>
<service name="createRoleType" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="createRoleType" auth="true">
<description>Create a new role type</description>
<attribute name="roleTypeId" type="String" mode="IN"/>
<attribute name="parentTypeId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN"/>
<attribute name="roleType" type="org.ofbiz.entity.GenericValue" mode="OUT"/>
</service>
<service name="setPartyProfileDefaults" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="setPartyProfileDefaults" auth="true">
<description>Sets the party (customer) profile defaults</description>
<permission-service service-name="partyIdPermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" entity-name="PartyProfileDefault" include="all" optional="true"/>
<override name="productStoreId" optional="false"/>
</service>
<service name="createPartyAttribute" engine="simple" default-entity-name="PartyAttribute"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyAttribute" auth="true">
<description>create a party attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updatePartyAttribute" engine="simple" default-entity-name="PartyAttribute"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updatePartyAttribute" auth="true">
<description>updates a party attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removePartyAttribute" engine="simple" default-entity-name="PartyAttribute"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="removePartyAttribute" auth="true">
<description>removes a party attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="linkPartyRecord" engine="java" auth="true" use-transaction="false"
location="org.ofbiz.party.party.PartyServices" invoke="linkParty">
<description>Merges customer accounts and disabled the duplicate</description>
<attribute name="partyId" type="String" mode="INOUT" optional="false"/>
<attribute name="partyIdTo" type="String" mode="IN" optional="false"/>
</service>
<service name="lookupParty" engine="simple"
location="component://party/script/org/ofbiz/party/LookupServices.xml" invoke="lookupParty" auth="true">
<description>Performs a lookup for parties</description>
<attribute name="firstName" type="String" form-display="true" form-label="First name" mode="IN" optional="true"/>
<attribute name="lastName" type="String" form-display="true" form-label="Last name" mode="IN" optional="true"/>
<attribute name="lookupResult" type="List" mode="OUT" optional="false"/>
</service>
<service name="findPartiesById" engine="java" auth="true"
location="org.ofbiz.party.party.PartyServices" invoke="findPartyById">
<description>Find the partyId corresponding to a reference and a reference type</description>
<attribute type="String" mode="IN" name="idToFind" optional="false"/>
<attribute type="String" mode="IN" name="partyIdentificationTypeId" optional="true"/>
<attribute type="String" mode="IN" name="searchPartyFirst" optional="true"/>
<attribute type="String" mode="IN" name="searchAllId" optional="true"/>
<attribute type="org.ofbiz.entity.GenericValue" mode="OUT" name="party" optional="true"/>
<attribute type="List" mode="OUT" name="partiesFound" optional="true"/>
</service>
<!-- Party Role services -->
<service name="createPartyRole" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyRole" auth="true">
<description>Create a Party Role (add a Role to a Party). The logged in user must have PARTYMGR_CREATE or have
permission to change the role of this partyId</description>
<permission-service service-name="partyRolePermissionCheck" main-action="CREATE"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
</service>
<service name="deletePartyRole" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deletePartyRole" auth="true">
<description>Delete a Party Role (remove a Role from a Party). The logged in user must have PARTYMGR_DELETE or have
permission to change the role of this partyId</description>
<permission-service service-name="partyRolePermissionCheck" main-action="DELETE"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
</service>
<service name="ensurePartyRole" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml" invoke="ensureNaPartyRole" auth="false">
<description>Ensure that the party is in the specified role.</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="roleTypeId" type="String" mode="IN" optional="false"/>
</service>
<service name="ensureNaPartyRole" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml" invoke="ensureNaPartyRole" auth="false">
<description>Ensure that the party is in the _NA_ role.</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
</service>
<service name="ensureNaPartyRoleFrom" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml" invoke="ensureNaPartyRole" auth="true">
<description>Ensure that the party is in the _NA_ role.</description>
<attribute name="partyIdFrom" type="String" mode="IN" optional="false"/>
</service>
<service name="ensureNaPartyRoleTo" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml" invoke="ensureNaPartyRole" auth="true">
<description>Ensure that the party is in the _NA_ role.</description>
<attribute name="partyIdTo" type="String" mode="IN" optional="false"/>
</service>
<!-- Party Relationship services -->
<service name="createPartyRelationship" default-entity-name="PartyRelationship" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyRelationship" auth="true">
<description>
Create a Relationship between two Parties;
if partyIdFrom is not specified the partyId of the current userLogin will be used;
if roleTypeIds are not specified they will default to "_NA_".
If a partyIdFrom is passed in, it will be used if the userLogin has PARTYMGR_REL_CREATE permission.
</description>
<permission-service service-name="partyRelationshipPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="true"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="partyIdTo" optional="false"/>
</service>
<service name="updatePartyRelationship" default-entity-name="PartyRelationship" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updatePartyRelationship" auth="true">
<description>
Update a Relationship between two Parties;
if partyIdFrom is not specified the partyId of the current userLogin will be used;
if roleTypeIds are not specified they will default to "_NA_".
If a partyIdFrom is passed in, it will be used if the userLogin has PARTYMGR_REL_UPDATE permission.
</description>
<permission-service service-name="partyRelationshipPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="partyIdFrom" optional="true"/>
<override name="roleTypeIdFrom" optional="true"/>
<override name="roleTypeIdTo" optional="true"/>
</service>
<service name="deletePartyRelationship" default-entity-name="PartyRelationship" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deletePartyRelationship" auth="true">
<description>
Delete a Relationship between two Parties;
if partyIdFrom is not specified the partyId of the current userLogin will be used;
if roleTypeIds are not specified they will default to "_NA_".
</description>
<permission-service service-name="partyRelationshipPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<override name="partyIdFrom" optional="true"/>
<override name="roleTypeIdFrom" optional="true"/>
<override name="roleTypeIdTo" optional="true"/>
</service>
<service name="createPartyRelationshipAndRole" engine="group" auth="true">
<description>Create party's role and party's relationship</description>
<group>
<invoke name="createPartyRole" result-to-context="true"/>
<invoke name="createPartyRelationship" result-to-context="true"/>
</group>
</service>
<service name="createPartyRelationshipType" engine="java" default-entity-name="PartyRelationshipType"
location="org.ofbiz.party.party.PartyRelationshipServices" invoke="createPartyRelationshipType" auth="true">
<description>Create a new Party Relationship type</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="partyRelationshipName" optional="false"/>
</service>
<service name="createUpdatePartyRelationshipAndRoles" engine="java" default-entity-name="PartyRelationship"
location="org.ofbiz.party.party.PartyRelationshipServices" invoke="createUpdatePartyRelationshipAndRoles" auth="true">
<description>
Create or update both parties roles and parties relationship, partyRelationshipTypeId being mandatory.
The relationship is considered from one side or another (partyId is checked internally against partyIdFrom)
If a type of parties relationship exists PartyIdTo or PartyIdFrom are updated.
The history is maintained, allowing to track changes.
</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<override name="fromDate" optional="true"/>
</service>
<service name="createPartyRelationshipContactAccount" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyRelationshipContactAccount" auth="true">
<description>create a company/contact relationship and add the related roles</description>
<attribute name="accountPartyId" type="String" mode="IN"/>
<attribute name="contactPartyId" type="String" mode="IN"/>
<attribute name="comments" type="String" mode="IN" optional="true" allow-html="safe"/>
</service>
<!-- ContactMech services -->
<service name="createContactMech" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="createContactMech" auth="true">
<description>Create a ContactMech</description>
<auto-attributes entity-name="ContactMech" include="nonpk" mode="IN" optional="false"/>
<auto-attributes entity-name="ContactMech" include="pk" mode="INOUT" optional="true"/>
<override name="infoString" optional="true"/>
</service>
<service name="createPartyContactMech" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createPartyContactMech" auth="true">
<description>Create a PartyContactMech</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="ContactMech" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="true"/>
</service>
<service name="updateContactMech" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="updateContactMech" auth="true">
<description>Update a ContactMech</description>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
<attribute name="contactMechTypeId" type="String" mode="IN" optional="false"/>
<attribute name="infoString" type="String" mode="IN" optional="true"/>
</service>
<service name="updatePartyContactMech" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="updatePartyContactMech" auth="true">
<description>Update a PartyContactMech</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
<attribute name="contactMechTypeId" type="String" mode="IN" optional="false"/>
<attribute name="infoString" type="String" mode="IN" optional="true"/>
<attribute name="newContactMechId" type="String" mode="IN" optional="true"/>
</service>
<service name="deletePartyContactMech" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="deletePartyContactMech" auth="true">
<description>Delete a PartyContactMech</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="DELETE"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="IN" optional="false"/>
</service>
<service name="createPostalAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="createPostalAddress" auth="true">
<description>Create a Postal Address</description>
<auto-attributes entity-name="PostalAddress" include="all" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="false"/>
<override name="address1" optional="false"/>
<override name="city" optional="false"/>
<override name="postalCode" optional="false"/>
</service>
<!-- Party ContachMech reverse find -->
<service name="findPartyFromEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="findPartyFromEmailAddress" auth="true">
<description>Find the partyId/contactMechId for a specific email address, if not found do not return a value</description>
<attribute name="address" type="String" mode="IN" optional="false"/>
<attribute name="caseInsensitive" type="String" mode="IN" optional="true"/>
<attribute name="personal" type="String" mode="IN" optional="true"/><!-- field not used -->
<attribute name="fromDate" type="Timestamp" mode="IN" optional="true"/>
<attribute name="partyId" type="String" mode="OUT" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
</service>
<service name="findPartyFromTelephone" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="findPartyFromTelephone" auth="true">
<description>Find the partyId/contactMechId for a specific telephone number, if not found do not return a value</description>
<attribute name="telno" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="OUT" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
</service>
<service name="findPartyFromTelephoneComplete" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="findPartyFromTelephoneComplete" auth="true">
<description>
Find the partyId/contactMechId for a specific telephone number, if not found do not return a value.
Same than above but keep the number complete internally.
</description>
<attribute name="telno" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="OUT" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
</service>
<service name="createPartyPostalAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createPartyPostalAddress" auth="true">
<description>Create a Postal Address</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="PostalAddress" include="nonpk" mode="IN" optional="true"/>
<attribute name="paymentMethodId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="false"/>
<override name="address1" optional="false"/>
<override name="city" optional="false"/>
<override name="postalCode" optional="false"/>
</service>
<service name="updatePostalAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="updatePostalAddress" auth="true">
<description>Update a Postal Address</description>
<auto-attributes entity-name="PostalAddress" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/> <!-- the out paramater is the id of the new address -->
<attribute name="directions" type="String" mode="IN" optional="true"/> <!-- ?? -->
<attribute name="oldContactMechId" type="String" mode="OUT" optional="false"/> <!-- this is the id of the old address -->
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<override name="address1" optional="false"/>
<override name="city" optional="false"/>
<override name="postalCode" optional="false"/>
</service>
<service name="updatePartyPostalAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="updatePartyPostalAddress" auth="true">
<description>Update a Postal Address</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="PostalAddress" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
<attribute name="directions" type="String" mode="IN" optional="true"/> <!-- ?? -->
<override name="address1" optional="false"/>
<override name="city" optional="false"/>
<override name="postalCode" optional="false"/>
</service>
<service name="createTelecomNumber" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="createTelecomNumber" auth="true">
<description>Create a Telecommunications Number</description>
<auto-attributes entity-name="TelecomNumber" include="all" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="false"/>
</service>
<service name="createPartyTelecomNumber" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createPartyTelecomNumber" auth="true">
<description>Create a Telecommunications Number</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="false"/>
</service>
<service name="updateTelecomNumber" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="updateTelecomNumber" auth="true">
<description>Update a Telecommunications Number</description>
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
<attribute name="oldContactMechId" type="String" mode="OUT" optional="false"/>
</service>
<service name="updatePartyTelecomNumber" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="updatePartyTelecomNumber" auth="true">
<description>Update a Telecommunications Number</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
</service>
<service name="createEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="createEmailAddress" auth="true">
<description>Create an Email Address</description>
<auto-attributes entity-name="ContactMech" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="ContactMech" include="pk" mode="OUT" optional="false"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<override name="infoString" optional="true"/>
</service>
<service name="createPartyEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createPartyEmailAddress" auth="true">
<description>Create an Email Address</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="ContactMech" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="true"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
</service>
<service name="updateEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="updateEmailAddress" auth="true">
<description>Update an Email Address</description>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
</service>
<service name="updatePartyEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="updatePartyEmailAddress" auth="true">
<description>Update an Email Address</description>
<permission-service service-name="partyContactMechPermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="false"/> <!-- the out paramater is the id of the new address -->
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="oldContactMechId" type="String" mode="OUT" optional="false"/> <!-- this is the id of the old address -->
</service>
<service name="copyPartyContactMechs" engine="java"
location="org.ofbiz.party.contact.ContactMechServices" invoke="copyPartyContactMechs" auth="true">
<description>Copies all contact mechs from the partyIdFrom to the partyIdTo. Does not delete or overwrite any contact mechs.</description>
<attribute name="partyIdFrom" type="String" mode="IN" optional="false"/>
<attribute name="partyIdTo" type="String" mode="IN" optional="false"/>
</service>
<!-- contact mech attribute services -->
<service name="createContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="createContactMechAttribute" auth="true">
<description>create a contact mech attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="updateContactMechAttribute" auth="true">
<description>updates a contact mech attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="removeContactMechAttribute" auth="true">
<description>removes a contact mech attribute record</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- PartyContactMechPurpose services -->
<service name="createPartyContactMechPurpose" engine="java"
location="org.ofbiz.party.contact.ContactMechServices" invoke="createPartyContactMechPurpose" auth="true">
<description>Create a Party ContactMech Purpose</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="IN" optional="false"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="Timestamp" mode="INOUT" optional="true"/>
</service>
<service name="deletePartyContactMechPurpose" engine="java"
location="org.ofbiz.party.contact.ContactMechServices" invoke="deletePartyContactMechPurpose" auth="true">
<description>Delete a Party ContactMech Purpose</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="IN" optional="false"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="Timestamp" mode="IN" optional="false"/>
</service>
<service name="deletePartyContactMechPurposeIfExists" engine="java"
location="org.ofbiz.party.contact.ContactMechServices" invoke="deletePartyContactMechPurposeIfExists" auth="true">
<description>Delete a Party ContactMech Purpose</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="IN" optional="false"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="false"/>
</service>
<!-- ContactMechList services -->
<service name="createContactMechLink" default-entity-name="ContactMechLink" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="createContactMechLink" auth="true">
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="deleteContactMechLink" default-entity-name="ContactMechLink" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="deleteContactMechLink" auth="true">
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- PostalAddressBoundary -->
<service name="createPostalAddressBoundary" engine="simple" default-entity-name="PostalAddressBoundary"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPostalAddressBoundary">
<description>Create a Postal Address Boundary</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<service name="deletePostalAddressBoundary" engine="simple" default-entity-name="PostalAddressBoundary"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deletePostalAddressBoundary">
<description>Delete a Postal Address Boundary</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<!-- PartyClassification -->
<service name="createPartyClassification" engine="simple" default-entity-name="PartyClassification"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyClassification">
<description>create PartyClassification</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updatePartyClassification" engine="simple" default-entity-name="PartyClassification"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updatePartyClassification">
<description>update PartyClassification</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="deletePartyClassification" engine="simple" default-entity-name="PartyClassification"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deletePartyClassification">
<description>delete PartyClassification</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<service name="createPartyClassificationGroup" engine="simple" default-entity-name="PartyClassificationGroup"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyClassificationGroup">
<description>create PartyClassificationGroup</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes mode="OUT" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="updatePartyClassificationGroup" engine="simple" default-entity-name="PartyClassificationGroup"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updatePartyClassificationGroup">
<description>update PartyClassificationGroup</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="deletePartyClassificationGroup" engine="simple" default-entity-name="PartyClassificationGroup"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deletePartyClassificationGroup">
<description>delete PartyClassificationGroup</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<!-- PartyIdentification -->
<service name="createPartyIdentification" engine="entity-auto" default-entity-name="PartyIdentification" invoke="create">
<description>create PartyIdentification entity</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes mode="IN" include="pk"/>
<auto-attributes mode="IN" optional="true" include="nonpk"/>
</service>
<service name="updatePartyIdentification" engine="entity-auto" default-entity-name="PartyIdentification" invoke="update">
<description>update PartyIdentification entity</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk"/>
<auto-attributes mode="IN" optional="true" include="nonpk"/>
</service>
<service name="deletePartyIdentification" engine="entity-auto" default-entity-name="PartyIdentification" invoke="delete">
<description>delete PartyClassificationGroup</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes mode="IN" include="pk"/>
</service>
<service name="createPartyIdentifications" engine="simple" default-entity-name="PartyIdentification"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyIdentifications">
<description>create many identifications with format in map identifications : [partyType : TYPE, TYPE : value]</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<attribute name="partyId" mode="IN" type="String"/>
<attribute name="identifications" mode="IN" type="Map" />
</service>
<!-- Vendor -->
<service name="createVendor" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createVendor" auth="true">
<description>Create Vendor Information</description>
<permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="Vendor" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="Vendor" include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateVendor" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updateVendor" auth="true">
<description>Update Vendor Information</description>
<permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="Vendor" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="Vendor" include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteVendor" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="deleteVendor" auth="true">
<description>Remove Vendor Information</description>
<permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
<auto-attributes entity-name="Vendor" include="pk" mode="IN" optional="false"/>
</service>
<!-- PartyDataSource services -->
<service name="createPartyDataSource" engine="java"
location="org.ofbiz.party.party.PartyServices" invoke="createPartyDataSource" auth="true">
<description>Creates a relation between a Party and a DataSource using PartyDataSource. The userLogin must have PARTYMGR_SRC_CREATE permission.</description>
<permission-service service-name="partyDatasourcePermissionCheck" main-action="CREATE"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="dataSourceId" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="Timestamp" mode="IN" optional="true"/>
</service>
<!-- Communication Event Services -->
<service name="setCommunicationEventStatus" engine="simple" default-entity-name="CommunicationEvent"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="setCommunicationEventStatus" auth="true">
<description>Set the Communication event Status</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
<attribute name="setRoleStatusToComplete" mode="IN" type="String" default-value="N"/>
</service>
<service name="setCommunicationEventRoleStatus" engine="simple" default-entity-name="CommunicationEventRole"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="setCommunicationEventRoleStatus" auth="true">
<description>Set the Communication event Status for a specific role</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="createCommunicationEventInterface" engine="interface" location="" invoke="">
<description>Create a Communication Event with or w/o permission check</description>
<auto-attributes entity-name="CommunicationEvent" include="nonpk" mode="IN" optional="true"/>
<auto-attributes entity-name="CommunicationEvent" include="pk" mode="INOUT" optional="true"/>
<attribute name="productId" type="String" mode="IN" optional="true"/>
<attribute name="orderId" type="String" mode="IN" optional="true"/>
<attribute name="custRequestId" type="String" mode="IN" optional="true"/>
<attribute name="action" type="String" mode="IN" optional="true"/><!-- to indicate any special action like: REPLY, REPLYALL, FORWARD or empty for no special action-->
<override name="headerString" allow-html="any"/>
<override name="content" allow-html="safe"/>
<override name="messageId" allow-html="safe"/>
<override name="subject" allow-html="safe"/>
</service>
<service name="createCommunicationEvent" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventWithPermission" auth="true">
<description>Create a Communication Event with permission check</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="CREATE"/>
<implements service="createCommunicationEventInterface"/>
</service>
<service name="createCommunicationEventWithoutPermission" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventWithoutPermission" auth="true">
<description>Create a Communication Event without permission check</description>
<implements service="createCommunicationEventInterface"/>
</service>
<service name="updateCommunicationEvent" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="updateCommunicationEvent" auth="true">
<description>Update a Communication Event</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="CommunicationEvent" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="CommunicationEvent" include="nonpk" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeIdFrom" type="String" mode="IN" optional="true"><description>Set a specific purpose for the originator email</description></attribute>
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
<override name="messageId" allow-html="safe"/>
<override name="content" allow-html="safe"/>
<override name="subject" allow-html="safe"/>
</service>
<service name="deleteCommunicationEvent" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="deleteCommunicationEvent" auth="true">
<description>Delete a Communication Event, optionally delete the attached content and dataresource</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="DELETE"/>
<auto-attributes entity-name="CommunicationEvent" include="pk" mode="IN" optional="false"/>
<attribute name="delContentDataResource" type="String" mode="IN" optional="true"/>
</service>
<service name="deleteCommunicationEventWorkEffort" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="deleteCommunicationEventWorkEffort" auth="true">
<description>Delete a Communication Event, optionally delete the attached content and dataresource
and when this is the only communication event connected to a workeffort delete the workeffort too.</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="DELETE"/>
<auto-attributes entity-name="CommunicationEvent" include="pk" mode="IN" optional="false"/>
<attribute name="delContentDataResource" type="String" mode="IN" optional="true"/>
</service>
<service name="createCommunicationEventPurpose" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventPurpose" auth="true">
<description>Create a Communication Event Purpose</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="CommunicationEventPurpose" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="CommunicationEventPurpose" include="nonpk" mode="IN" optional="true"/>
</service>
<service name="createCustRequestCommEvent" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCustRequestCommEvent" auth="true">
<description>Create a CustRequestCommEvent</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="CREATE"/>
<auto-attributes entity-name="CustRequestCommEvent" include="pk" mode="IN" optional="false"/>
</service>
<service name="removeCommunicationEventPurpose" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="removeCommunicationEventPurpose" auth="true">
<description>Remove a Communication Event Purpose</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="DELETE"/>
<auto-attributes entity-name="CommunicationEventPurpose" include="pk" mode="IN" optional="false"/>
</service>
<service name="createCommunicationEventRoleInterface" engine="interface" location="" invoke="">
<description>Create a Communication Event Role with or w/o permission check</description>
<auto-attributes entity-name="CommunicationEventRole" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="CommunicationEventRole" include="nonpk" mode="IN" optional="true"/>
</service>
<service name="createCommunicationEventRole" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventRole" auth="true">
<description>Create a Communication Event Role with permission check</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="CREATE"/>
<implements service="createCommunicationEventRoleInterface"/>
</service>
<service name="createCommunicationEventRoleWithoutPermission" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventRole" auth="true">
<description>Create a Communication Event Role without permission check</description>
<implements service="createCommunicationEventRoleInterface"/>
</service>
<service name="updateCommunicationEventRole" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="updateCommunicationEventRole" auth="true">
<description>Update a Communication Event Role</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="UPDATE"/>
<auto-attributes entity-name="CommunicationEventRole" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="CommunicationEventRole" include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeCommunicationEventRole" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="removeCommunicationEventRole" auth="true">
<description>Remove a Communication Event Role</description>
<permission-service service-name="partyCommunicationEventPermissionCheck" main-action="DELETE"/>
<auto-attributes entity-name="CommunicationEventRole" include="pk" mode="IN" optional="false"/>
<attribute name="deleteCommEventIfLast" mode="IN" type="String" optional="true"/><!-- "Y" for true -->
<attribute name="delContentDataResource" type="String" mode="IN" optional="true"/>
</service>
<service name="createCommEventWorkEffort" engine="simple" location="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="makeCommunicationEventWorkEffort" auth="true" >
<description>Creates a WorkEffort entity and CommunicationEventWorkEff</description>
<auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffort"/>
<auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffort"/>
<auto-attributes include="pk" mode="INOUT" optional="true" entity-name="CommunicationEventWorkEff"/>
<auto-attributes include="nonpk" mode="IN" optional="true" entity-name="CommunicationEventWorkEff"/>
</service>
<service name="setCommEventRoleToRead" engine="simple" default-entity-name="CommunicationEventRole"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="setCommEventRoleToRead" auth="false">
<description>Marks a communication event as read</description>
<auto-attributes include="pk" mode="IN" optional="true"/>
<override name="communicationEventId" optional="false"/>
</service>
<service name="sendCommEventAsEmail" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="sendCommEventAsEmail" auth="true"
transaction-timeout="7200"> <!-- set transaction time out for 2 hours, since this sometimes may run as an async service to send emails to lots of people -->
<description>Sends a communication event as a single-part email using sendMail. All parameters come from CommunicationEvent, which must
be of type EMAIL_COMMUNICATION. Will look for a contactMechIdTo to send the emails</description>
<attribute name="communicationEventId" type="String" mode="IN" optional="false"/>
</service>
<!-- email to communication event ECA services -->
<service name="createCommEventFromEmail" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="createCommEventFromEmail" auth="true">
<description>
Creates a CommunicationEvent record based on information before running a sendMail service (to be used via ECA)
</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="subject" type="String" mode="IN" optional="false"/>
<attribute name="sendFrom" type="String" mode="IN" optional="false"/>
<attribute name="sendTo" type="String" mode="IN" optional="false"/>
<attribute name="contentType" type="String" mode="IN" optional="true"/>
<attribute name="statusId" type="String" mode="IN" optional="true"/>
<attribute name="orderId" type="String" mode="IN" optional="true"/>
<attribute name="communicationEventId" type="String" mode="OUT"/>
</service>
<service name="updateCommEventAfterEmail" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="updateCommEventAfterEmail" auth="true">
<description>
Updates a CommunicationEvent record after running a sendMail service (to be used via ECA)
</description>
<attribute name="communicationEventId" type="String" mode="IN" optional="false"/>
<attribute name="messageWrapper" type="org.ofbiz.service.mail.MimeMessageWrapper" mode="IN" optional="false"/>
</service>
<service name="storeIncomingEmail" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="storeIncomingEmail" auth="true">
<description>
Process incoming email. Try to determine partyIdFrom from the first SendFrom email address. datetimeStarted and datetimeEnded are the
sent and received dates respectively, partyIdTo is from the first SendTo email address or the delivered-to address. If the parties are not found,
the email addresses are stored in CommunicationEvent.note
If however it is detected as spam (external) or when the 'from' email address is missing, the service will not return a communicationEventId.
If the party cannot be found the status of the communicationEvent will be set to: COM_UNKNOWN_PARTY.
If the parties are found the status is set to COM_ENTERED
</description>
<attribute name="messageWrapper" type="org.ofbiz.service.mail.MimeMessageWrapper" mode="IN"/>
<attribute name="communicationEventId" type="String" mode="OUT" optional="true"/>
<attribute name="statusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="sendEmailToContactList" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="sendEmailToContactList" auth="true"
use-transaction="true" transaction-timeout="300" max-retry="3"> <!-- Individual emails will be wrapped in their own transactions -->
<description>Send emails to members of a contact list, wrapping each email in its own transaction and tagging each member
that has been sent, so if the whole effort is aborted, it can start over from the middle. The max-retry is important because if this service is
and some emails cannot sent, it will start again later and try again</description>
<attribute name="contactListId" type="String" mode="IN" optional="false"/>
<attribute name="communicationEventId" type="String" mode="IN" optional="false"/>
</service>
<service name="setCommEventComplete" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="setCommEventComplete" auth="true">
<description>Sets the status of a communication event to COM_COMPLETE using the updateCommunicationEvent service</description>
<attribute name="communicationEventId" type="String" mode="IN" optional="false"/>
</service>
<service name="sendEmailDated" engine="simple" use-transaction="false"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="sendEmailDated" auth="true">
<description>Checks for email communication events with the status COM_IN_PROGRESS and a startdate which is expired, then send the email</description>
</service>
<!-- party content services -->
<!-- old services
<service name="createPartyContent" engine="simple" default-entity-name="Content"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyContent" auth="false">
<description>Create Party Associated Content</description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="uploadedFile" type="java.nio.ByteBuffer" mode="IN" optional="true"/>
<attribute name="_uploadedFile_fileName" type="String" mode="IN" optional="true"/>
<attribute name="_uploadedFile_contentType" type="String" mode="IN" optional="false"/>
<attribute name="dataCategoryId" type="String" mode="IN" optional="true"/>
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="contentId" type="String" mode="OUT" optional="false"/>
<override name="contentTypeId" optional="false"/>
</service>
<service name="updatePartyContent" engine="simple" default-entity-name="Content"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updatePartyContent" auth="false">
<description>Update a Party Content</description>
<auto-attributes include="pk" mode="INOUT" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="uploadedFile" type="java.nio.ByteBuffer" mode="IN" optional="true"/>
<attribute name="_uploadedFile_fileName" type="String" mode="IN" optional="true"/>
<attribute name="_uploadedFile_contentType" type="String" mode="IN" optional="false"/>
<attribute mode="IN" name="partyId" optional="true" type="String"/>
<attribute mode="IN" name="dataCategoryId" optional="true" type="String"/>
</service>
-->
<service name="createPartyContent" engine="simple" default-entity-name="PartyContent"
location="component://party/script/org/ofbiz/party/content/PartyContentServices.xml" invoke="createPartyContent" auth="true">
<description>Create a PartyContent record</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updatePartyContent" engine="simple" default-entity-name="PartyContent"
location="component://party/script/org/ofbiz/party/content/PartyContentServices.xml" invoke="updatePartyContent" auth="true">
<description>Update a PartyContent record</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="removePartyContent" engine="simple" default-entity-name="PartyContent"
location="component://party/script/org/ofbiz/party/content/PartyContentServices.xml" invoke="removePartyContent" auth="true">
<description>Remove a PartyContent record</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<service name="createPartyTextContent" engine="group" transaction-timeout="300" auth="true">
<description>Creates a Text Document DataResource and Content Records</description>
<group>
<invoke name="createTextContent" result-to-context="true"/>
<invoke name="createPartyContent"/>
</group>
</service>
<service name="uploadPartyContentFile" engine="group" transaction-timeout="300">
<description>Upload and attach a file to a party</description>
<group>
<invoke name="createContentFromUploadedFile" result-to-context="true"/>
<invoke name="createPartyContent"/>
</group>
</service>
<service name="getPartyEmail" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="getPartyEmail" auth="false">
<description>Get the main party Email address</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="false" default-value="PRIMARY_EMAIL"/>
<attribute name="emailAddress" type="String" mode="OUT" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
</service>
<service name="getPartyTelephone" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="getPartyTelephone" auth="false">
<description>Get the party Email Telephone</description>
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="INOUT" optional="true"/>
<attribute name="countryCode" type="String" mode="OUT" optional="true"/>
<attribute name="areaCode" type="String" mode="OUT" optional="true"/>
<attribute name="contactNumber" type="String" mode="OUT" optional="true"/>
<attribute name="extension" type="String" mode="OUT" optional="true"/>
</service>
<service name="getPartyPostalAddress" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="getPartyPostalAddress" auth="false">
<description>Get the party postal address</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<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" engine="simple" default-entity-name="PartyCarrierAccount"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createPartyCarrierAccount" auth="true">
<description>Create a PartyCarrierAccount record</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<override type="Timestamp" mode="IN" name="fromDate" optional="true"/>
<override type="String" mode="IN" name="accountNumber" optional="false"/>
</service>
<service name="updatePartyCarrierAccount" engine="simple" default-entity-name="PartyCarrierAccount"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="updatePartyCarrierAccount" auth="true">
<description>Update a PartyCarrierAccount record</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="sendUpdatePersonalInfoEmailNotification" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="sendUpdatePersonalInfoEmailNotification" auth="false">
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="updatedUserLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="productStoreId" type="String" mode="IN" optional="true"/>
</service>
<service name="sendCreatePartyEmailNotification" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="sendCreatePartyEmailNotification" auth="false">
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="productStoreId" type="String" mode="IN" optional="false"/>
</service>
<!-- Email address verification services-->
<service name="createEmailAddressVerification" engine="java" default-entity-name="EmailAddressVerification"
location="org.ofbiz.party.contact.ContactMechServices" invoke="createEmailAddressVerification">
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="verifyHash" type="String" mode="OUT" optional="false"/>
<attribute name="expireDate" type="String" mode="IN" optional="true"/>
</service>
<service name="sendVerifyEmailAddressNotification" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="sendVerifyEmailAddressNotification">
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
</service>
<service name="verifyEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/ContactMechServices.xml" invoke="verifyEmailAddress">
<attribute name="verifyHash" type="String" mode="IN" optional="false"/>
</service>
<!-- Party Invitation Services -->
<service name="createPartyInvitation" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="createPartyInvitation">
<description>Create Party Invitation</description>
<auto-attributes entity-name="PartyInvitation" include="pk" mode="IN" optional="true"/>
<auto-attributes entity-name="PartyInvitation" include="nonpk" mode="IN" optional="true"/>
<override name="partyInvitationId" mode="OUT" optional="false"/>
</service>
<service name="updatePartyInvitation" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="updatePartyInvitation">
<description>Update Party Invitation</description>
<auto-attributes entity-name="PartyInvitation" include="pk" mode="IN" optional="false"/>
<auto-attributes entity-name="PartyInvitation" include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deletePartyInvitation" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="deletePartyInvitation">
<description>Remove Party Invitation</description>
<auto-attributes entity-name="PartyInvitation" include="pk" mode="IN" optional="false"/>
</service>
<service name="createPartyInvitationGroupAssoc" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="createPartyInvitationGroupAssoc">
<description>Create PartyInvitationGroupAssoc</description>
<auto-attributes entity-name="PartyInvitationGroupAssoc" include="pk" mode="IN" optional="false"/>
</service>
<service name="deletePartyInvitationGroupAssoc" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="deletePartyInvitationGroupAssoc">
<description>Remove PartyInvitationGroupAssoc</description>
<auto-attributes entity-name="PartyInvitationGroupAssoc" include="pk" mode="IN" optional="false"/>
</service>
<service name="createPartyInvitationRoleAssoc" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="createPartyInvitationRoleAssoc">
<description>Create PartyInvitationRoleAssoc</description>
<auto-attributes entity-name="PartyInvitationRoleAssoc" include="pk" mode="IN" optional="false"/>
</service>
<service name="deletePartyInvitationRoleAssoc" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="deletePartyInvitationRoleAssoc">
<description>Remove PartyInvitationRoleAssoc</description>
<auto-attributes entity-name="PartyInvitationRoleAssoc" include="pk" mode="IN" optional="false"/>
</service>
<service name="acceptPartyInvitation" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="acceptPartyInvitation">
<permission-service service-name="accAndDecPartyInvitationPermissionCheck"/>
<attribute name="partyInvitationId" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
</service>
<service name="declinePartyInvitation" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="declinePartyInvitation">
<permission-service service-name="accAndDecPartyInvitationPermissionCheck"/>
<attribute name="partyInvitationId" type="String" mode="IN" optional="false"/>
</service>
<service name="cancelPartyInvitation" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyInvitationServices.xml" invoke="cancelPartyInvitation">
<permission-service service-name="cancelPartyInvitationPermissionCheck"/>
<attribute name="partyInvitationId" type="String" mode="IN" optional="false"/>
</service>
<!-- Permission checking services-->
<service name="partyBasePermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="basePermissionCheck">
<description>
Performs a basic Party Manager security check. The user must have one of the base PARTYMGR
CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
</service>
<service name="partyIdPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="basePlusPartyIdPermissionCheck">
<description>
Performs a party ID security check. The userLogin partyId must equal
the partyId parameter, or the logged-in user must have the correct permission
to perform the operation.
</description>
<implements service="permissionInterface"/>
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
</service>
<service name="partyStatusPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyStatusPermissionCheck">
<description>
Performs a party status security check. The userLogin partyId must equal the partyId parameter OR
the user must have one of the base PARTYMGR or PARTYMGR_STS CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
</service>
<service name="partyGroupPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyGroupPermissionCheck">
<description>
Performs a party group security check. The userLogin partyId must equal the partyId parameter OR
the user has one of the base PARTYMGR or PARTYMGR_GRP CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
</service>
<service name="partyDatasourcePermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyDatasourcePermissionCheck">
<description>
Performs a party datasource security check. The user must have one of the base PARTYMGR or
PARTYMGR_SRC CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
</service>
<service name="partyRolePermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyRolePermissionCheck">
<description>
Performs a party role security check. The user must have one of the base PARTYMGR or
PARTYMGR_ROLE CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
<attribute name="partyId" type="String" mode="INOUT" optional="true"/>
</service>
<service name="partyRelationshipPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyRelationshipPermissionCheck">
<description>
Performs a party relationship security check. The user must have one of the base PARTYMGR or
PARTYMGR_REL CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
<attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
</service>
<service name="partyContactMechPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyContactMechPermissionCheck">
<description>
Performs a party contact mech security check. The userLogin partyId must equal the partyId parameter OR
the user must have one of the base PARTYMGR or PARTYMGR_PCM CRUD+ADMIN permissions.
</description>
<implements service="permissionInterface"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
</service>
<service name="accAndDecPartyInvitationPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="accAndDecPartyInvitationPermissionCheck">
<description>
Performs accept and decline PartyInvitation security check. The userLogin partyId must equal the
partyIdTo in PartyInvitation OR partyId fetched using emailAdress in PartyInvitation.
The user with PARTYMGR_UPDATE permission can also perform this function.
</description>
<implements service="permissionInterface"/>
<attribute name="partyInvitationId" type="String" mode="IN" optional="false"/>
</service>
<service name="cancelPartyInvitationPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="cancelPartyInvitationPermissionCheck">
<description>
Performs cancel PartyInvitation security check. The userLogin partyId must equal the
partyId/partyIdFrom in PartyInvitation OR partyId fetched using emailAdress in PartyInvitation.
The user with PARTYMGR_UPDATE permission can also perform this function.
</description>
<implements service="permissionInterface"/>
<attribute name="partyInvitationId" type="String" mode="IN" optional="false"/>
</service>
<service name="partyCommunicationEventPermissionCheck" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyPermissionServices.xml" invoke="partyCommunicationEventPermissionCheck">
<description>Party CommunicationEvents Permission Checking Logic</description>
<implements service="permissionInterface"/>
<attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
<attribute name="partyIdTo" type="String" mode="IN" optional="true"/>
</service>
<service name="createPostalAddressAndPurposes" engine="simple" location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createPostalAddressAndPurposes">
<description>Create postal address, purposes and set them defaults</description>
<implements service="createPartyPostalAddress"/>
<attribute name="setShippingPurpose" type="String" mode="IN" optional="true"/>
<attribute name="setBillingPurpose" type="String" mode="IN" optional="true"/>
<attribute name="productStoreId" type="String" mode="IN" optional="true"/>
</service>
<service name="updatePostalAddressAndPurposes" engine="simple" location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="updatePostalAddressAndPurposes">
<description>Update postal address, purposes and set them defaults. The setShippingPurpose and setBillingPurpose enable the service to create purposes for PostalAddress and make them default addresses of party</description>
<implements service="updatePartyPostalAddress"/>
<attribute name="setShippingPurpose" type="String" mode="IN" optional="true"/>
<attribute name="setBillingPurpose" type="String" mode="IN" optional="true"/>
<attribute name="productStoreId" type="String" mode="IN" optional="true"/>
</service>
<service name="updateContactMechAndPurposes" engine="simple" location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="updateContactMechAndPurposes">
<description>Update postal address, telecom number and purposes. The setShippingPurpose and setBillingPurpose enable the service to create purposes for TelecomNumber</description>
<implements service="updatePostalAddressAndPurposes"/>
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="phoneContactMechId" type="String" mode="IN" optional="true"/>
</service>
<service name="createUpdatePerson" engine="simple" default-entity-name="Person"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="createUpdatePerson" auth="false">
<description>Create and Update a person</description>
<auto-attributes mode="INOUT" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<override name="firstName" optional="false"/>
<override name="lastName" optional="false"/>
</service>
<service name="createUpdatePartyTelecomNumber" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createUpdatePartyTelecomNumber" auth="false">
<description>Create and Update telecom number</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="TelecomNumber" include="nonpk" mode="IN" optional="true"/>
<attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="roleTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="true"/>
</service>
<service name="createUpdatePartyEmailAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createUpdatePartyEmailAddress" auth="false">
<description>Create and Update email address</description>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="emailAddress" type="String" mode="INOUT" optional="false"/>
<attribute name="contactMechId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="OUT" optional="false"/>
</service>
<service name="createUpdatePartyPostalAddress" engine="simple"
location="component://party/script/org/ofbiz/party/contact/PartyContactMechServices.xml" invoke="createUpdatePartyPostalAddress" auth="false">
<description>Create or Update a postal address</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/>
<auto-attributes entity-name="PostalAddress" include="nonpk" mode="IN" optional="true"/>
<attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
<attribute name="contactMechId" type="String" mode="INOUT" optional="true"/>
</service>
<!-- bounced message processing -->
<service name="processBouncedMessage" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="processBouncedMessage">
<implements service="mailProcessInterface"/>
</service>
<!-- log incoming message MCA -->
<service name="logIncomingMessage" engine="java"
location="org.ofbiz.party.communication.CommunicationEventServices" invoke="logIncomingMessage">
<implements service="mailProcessInterface"/>
</service>
<service name="quickCreateCustomer" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="quickCreateCustomer">
<description>Create customer profile on basis of First Name ,Last Name and Email Address</description>
<attribute name="firstName" type="String" mode="IN" optional="false"/>
<attribute name="lastName" type="String" mode="IN" optional="false"/>
<attribute name="emailAddress" type="String" mode="IN" optional="false"/>
<attribute name="partyId" type="String" mode="OUT" optional="false"/>
<attribute name="contactListId" type="String" mode="IN" optional="true"/>
<attribute name="subscribeContactList" type="String" mode="IN" optional="true"/>
</service>
<service name="getPartyMainRole" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="getPartyMainRole">
<description>Get the main role of this party which is a child of the MAIN_ROLE roletypeId</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="roleTypeId" type="String" mode="OUT" optional="true"/>
<attribute name="description" type="String" mode="OUT" optional="true"/>
</service>
<service name="sendContactUsEmailToCompany" engine="simple"
location="component://party/script/org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="sendContactUsEmailToCompany" auth="false">
<description>Create communication event and send mail to company</description>
<implements service="createCommunicationEventWithoutPermission"/>
<attribute name="emailAddress" type="String" mode="IN" optional="true"/>
<attribute name="firstName" type="String" mode="IN" optional="true"/>
<attribute name="lastName" type="String" mode="IN" optional="true"/>
<attribute name="postalCode" type="String" mode="IN" optional="true"/>
<attribute name="countryCode" type="String" mode="IN" optional="true"/>
<attribute name="emailType" type="String" mode="IN" optional="true"/>
<attribute name="productStoreId" type="String" mode="IN" optional="true"/>
</service>
<!-- send account activated email notification -->
<service name="sendAccountActivatedEmailNotification" engine="simple"
location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="sendAccountActivatedEmailNotification" auth="false">
<attribute name="userLoginId" type="String" mode="IN" optional="false"/>
<attribute name="productStoreId" type="String" mode="IN" optional="false"/>
</service>
</services>