Thanks Surya & Sumit for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813362 13f79535-47bb-0310-9956-ffa450edef68
489 lines
33 KiB
XML
489 lines
33 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
|
<description>Marketing Component Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- MarketingCampaign Services -->
|
|
<service name="createMarketingCampaign" default-entity-name="MarketingCampaign" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="createMarketingCampaign" auth="true">
|
|
<description>Create a MarketingCampaign record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateMarketingCampaign" default-entity-name="MarketingCampaign" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="updateMarketingCampaign" auth="true">
|
|
<description>Update a MarketingCampaign record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteMarketingCampaign" default-entity-name="MarketingCampaign" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="deleteMarketingCampaign" auth="true">
|
|
<description>Remove a MarketingCampaign record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- MarketingCampaignPrice Services -->
|
|
<service name="addPriceRuleToMarketingCampaign" default-entity-name="MarketingCampaignPrice" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="addPriceRuleToMarketingCampaign" auth="true">
|
|
<description>Add PriceRule to MarketingCampaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="removePriceRuleFromMarketingCampaign" default-entity-name="MarketingCampaignPrice" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="removePriceRuleFromMarketingCampaign" auth="true">
|
|
<description>Remove PriceRule from MarketingCampaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- MarketingCampaignPromo Services -->
|
|
<service name="addPromoToMarketingCampaign" default-entity-name="MarketingCampaignPromo" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="addPromoToMarketingCampaign" auth="true">
|
|
<description>Add Promo to MarketingCampaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="removePromoFromMarketingCampaign" default-entity-name="MarketingCampaignPromo" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="removePromoFromMarketingCampaign" auth="true">
|
|
<description>Remove Promo from MarketingCampaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="signUpForContactList" engine="java"
|
|
location="org.ofbiz.marketing.marketing.MarketingServices" invoke="signUpForContactList" auth="false">
|
|
<description>Signs an input email up for a ContactList with _NA_ party using the system userLogin.
|
|
The intent is for anonymous sign ups to email lists. Also validates email format.</description>
|
|
<attribute name="contactListId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="email" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- MarketingCampaignRole Services -->
|
|
<service name="addRoleToMarketingCampaign" default-entity-name="MarketingCampaignRole" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="addRoleToMarketingCampaign" auth="true">
|
|
<description>Add Role to MarketingCampaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="removeRoleFromMarketingCampaign" default-entity-name="MarketingCampaignRole" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="removeRoleFromMarketingCampaign" auth="true">
|
|
<description>Remove Role from MarketingCampaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createMarketingCampaignRole" default-entity-name="MarketingCampaignRole" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="createMarketingCampaignRole" auth="true">
|
|
<description>Add Role to Campaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateMarketingCampaignRole" default-entity-name="MarketingCampaignRole" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="updateMarketingCampaignRole" auth="true">
|
|
<description>Update Role to Campaign Join</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteMarketingCampaignRole" default-entity-name="MarketingCampaignRole" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/campaign/CampaignServices.xml" invoke="deleteMarketingCampaignRole" auth="true">
|
|
<description>Remove Role from Campaign</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- ContactList Services -->
|
|
<service name="createContactList" default-entity-name="ContactList" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="createContactList" auth="true">
|
|
<description>Create a ContactList record</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="contactListTypeId" optional="false"/>
|
|
<override name="contactListName" optional="false"/>
|
|
</service>
|
|
<service name="updateContactList" default-entity-name="ContactList" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="updateContactList" auth="true">
|
|
<description>Update a ContactList record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeContactList" default-entity-name="ContactList" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="removeContactList" auth="true">
|
|
<description>Remove a ContactList record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- ContactListParty Services -->
|
|
<service name="createContactListParty" default-entity-name="ContactListParty" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="createContactListParty" auth="true">
|
|
<description>Add Party to ContactList</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="fromDate" optional="true"/>
|
|
<override name="statusId" optional="false"/>
|
|
</service>
|
|
<service name="updateContactListParty" default-entity-name="ContactListParty" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="updateContactListParty" auth="true">
|
|
<description>Update Party to ContactList Join</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="optInVerifyCode" type="String" mode="IN" optional="true"/>
|
|
<override name="fromDate" optional="true"/>
|
|
</service>
|
|
<service name="updatePartyEmailContactListParty" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="updatePartyEmailContactListParty" auth="true">
|
|
<description>Update ContactList Party Contact Mech</description>
|
|
<attribute name="contactMechId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="oldContactMechId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="deleteContactListParty" default-entity-name="ContactListParty" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="deleteContactListParty" auth="true">
|
|
<description>Remove Party from ContactList</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createContactListPartyStatus" default-entity-name="ContactListPartyStatus" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="createContactListPartyStatus" auth="true">
|
|
<description>Create ContactListParty Status</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false">
|
|
<exclude field-name="statusDate"/>
|
|
</auto-attributes>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true">
|
|
<exclude field-name="setByUserLoginId"/>
|
|
</auto-attributes>
|
|
<override name="statusId" optional="false"/>
|
|
<override name="fromDate" optional="true"/>
|
|
</service>
|
|
<service name="sendContactListPartyVerifyEmail" engine="simple" max-retry="3"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="sendContactListPartyVerifyEmail" auth="true">
|
|
<description>Send ContactListParty Verify Email</description>
|
|
<auto-attributes entity-name="ContactListParty" include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="optOutOfListFromCommEvent" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="optOutOfListFromCommEvent" auth="false">
|
|
<description>Uses the communication event infromation to locate the contact list party information and removes the contact from the list</description>
|
|
<attribute name="communicationEventId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="contactListId" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
<!-- ContactList Comm Status Services -->
|
|
<service name="updateContactListCommStatus" engine="simple" default-entity-name="ContactListCommStatus"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="updateContactListCommStatus">
|
|
<auto-attributes include="all" mode="IN" optional="false"/>
|
|
<override name="partyId" optional="true"/>
|
|
<override name="messageId" allow-html="any" optional="true"/>
|
|
</service>
|
|
<service name="updateCommStatusFromCommEvent" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml" invoke="updateCommStatusFromCommEvent">
|
|
<attribute name="communicationEventId" type="String" mode="IN"/>
|
|
<attribute name="statusId" type="String" mode="IN"/>
|
|
</service>
|
|
|
|
<!-- TrackingCode Services -->
|
|
<service name="createTrackingCode" default-entity-name="TrackingCode" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="createTrackingCode" auth="true">
|
|
<description>Create a TrackingCode record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="trackingCodeTypeId" optional="false"/>
|
|
</service>
|
|
<service name="updateTrackingCode" default-entity-name="TrackingCode" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="updateTrackingCode" auth="true">
|
|
<description>Update a TrackingCode record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteTrackingCode" default-entity-name="TrackingCode" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="deleteTrackingCode" auth="true">
|
|
<description>Update a TrackingCode record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- TrackingCodeType Services -->
|
|
<service name="createTrackingCodeType" default-entity-name="TrackingCodeType" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="createTrackingCodeType" auth="true">
|
|
<description>Create a TrackingCodeType record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateTrackingCodeType" default-entity-name="TrackingCodeType" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="updateTrackingCodeType" auth="true">
|
|
<description>Update a TrackingCodeType record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteTrackingCodeType" default-entity-name="TrackingCodeType" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="deleteTrackingCodeType" auth="true">
|
|
<description>Update a TrackingCodeType record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- SegmentGroup Services -->
|
|
<service name="createSegmentGroup" default-entity-name="SegmentGroup" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="createSegmentGroup" auth="true">
|
|
<description>Create a SegmentGroup record</description>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateSegmentGroup" default-entity-name="SegmentGroup" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="updateSegmentGroup" auth="true">
|
|
<description>Update a SegmentGroup record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteSegmentGroup" default-entity-name="SegmentGroup" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="deleteSegmentGroup" auth="true">
|
|
<description>Update a SegmentGroup record</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- SegmentGroupClassification -->
|
|
<service name="createSegmentGroupClassification" engine="simple" default-entity-name="SegmentGroupClassification"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="createSegmentGroupClassification">
|
|
<description>create SegmentGroupClassification</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="updateSegmentGroupClassification" engine="simple" default-entity-name="SegmentGroupClassification"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="updateSegmentGroupClassification">
|
|
<description>update SegmentGroupClassification</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="deleteSegmentGroupClassification" engine="simple" default-entity-name="SegmentGroupClassification"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="deleteSegmentGroupClassification">
|
|
<description>delete SegmentGroupClassification</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<!-- SegmentGroupGeo -->
|
|
<service name="createSegmentGroupGeo" engine="simple" default-entity-name="SegmentGroupGeo"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="createSegmentGroupGeo">
|
|
<description>create SegmentGroupGeo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="updateSegmentGroupGeo" engine="simple" default-entity-name="SegmentGroupGeo"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="updateSegmentGroupGeo">
|
|
<description>update SegmentGroupGeo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="deleteSegmentGroupGeo" engine="simple" default-entity-name="SegmentGroupGeo"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="deleteSegmentGroupGeo">
|
|
<description>delete SegmentGroupGeo</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<!-- SegmentGroupRole -->
|
|
<service name="createSegmentGroupRole" engine="simple" default-entity-name="SegmentGroupRole"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="createSegmentGroupRole">
|
|
<description>create SegmentGroupRole</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="updateSegmentGroupRole" engine="simple" default-entity-name="SegmentGroupRole"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="updateSegmentGroupRole">
|
|
<description>update SegmentGroupRole</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="deleteSegmentGroupRole" engine="simple" default-entity-name="SegmentGroupRole"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="deleteSegmentGroupRole">
|
|
<description>delete SegmentGroupRole</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<!-- <attribute name="partyId" mode="OUT" optional="false"></attribute> -->
|
|
</service>
|
|
|
|
<!-- SegmentGroup Related Find Service -->
|
|
<service name="findPartiesInSegmentGroup" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="findPartiesInSegmentGroup">
|
|
<description>Find Parties In a SegmentGroup</description>
|
|
<attribute name="segmentGroupId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="roleTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyIdList" type="List" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="findSegmentGroupsOfParty" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="findSegmentGroupsOfParty">
|
|
<description>Find SegmentGroups Of a Party (that a Party is In)</description>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="roleTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="segmentGroupIdList" type="List" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="arePartiesRelatedThroughSegmentGroup" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml" invoke="arePartiesRelatedThroughSegmentGroup">
|
|
<description>Determine: are Parties Related Through SegmentGroup?</description>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="roleTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="toPartyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="toRoleTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="areRelated" type="String" mode="OUT" optional="false"><!-- will be Y or N --></attribute>
|
|
</service>
|
|
|
|
<!-- Tracking Code Order return -->
|
|
<service name="createTrackingCodeOrder" default-entity-name="TrackingCodeOrder" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="createTrackingCodeOrder">
|
|
<description>Create a TrackingCodeOrder record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateTrackingCodeOrder" default-entity-name="TrackingCodeOrder" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="updateTrackingCodeOrder">
|
|
<description>Update a TrackingCode record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- Tracking Code Order return -->
|
|
<service name="createTrackingCodeOrderReturn" default-entity-name="TrackingCodeOrderReturn" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="createTrackingCodeOrderReturn">
|
|
<description>Create a TrackingCodeOrderReturn record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateTrackingCodeOrderReturn" default-entity-name="TrackingCodeOrderReturn" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="updateTrackingCodeOrderReturn">
|
|
<description>Update a TrackingCode record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteTrackingCodeOrderReturn" default-entity-name="TrackingCodeOrderReturn" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="deleteTrackingCodeOrderReturn">
|
|
<description>Update a TrackingCode record</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<service name="createTrackingCodeOrderReturns" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml" invoke="createTrackingCodeOrderReturns">
|
|
<description>Create TrackingCodeOrderReturn for all the Return Items with Orders that have trackingCodeOrder entry</description>
|
|
<permission-service service-name="marketingPermissionService" main-action="CREATE"/>
|
|
<attribute type="String" mode="IN" name="returnId" optional="false"/>
|
|
</service>
|
|
|
|
<!-- marketing permission service -->
|
|
<service name="marketingPermissionService" engine="simple"
|
|
location="component://common/script/org/ofbiz/common/permission/CommonPermissionServices.xml" invoke="genericBasePermissionCheck">
|
|
<implements service="permissionInterface"/>
|
|
<attribute name="primaryPermission" type="String" mode="IN" optional="true" default-value="MARKETING"/>
|
|
<attribute name="altPermission" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- lead services -->
|
|
<service name="createLead" engine="simple" location="component://marketing/script/org/ofbiz/sfa/lead/LeadServices.xml" invoke="createLead">
|
|
<description>
|
|
Sales Lead can be just a person or a person representing a company or a company (party group).
|
|
createLead works 1) If person information is passed. 2) If company (party group) information is passed. 3) If Person and company (party group) information is passed.
|
|
</description>
|
|
<auto-attributes entity-name="Person" mode="IN" optional="true">
|
|
<exclude field-name="partyId"/>
|
|
</auto-attributes>
|
|
<auto-attributes entity-name="PostalAddress" mode="IN" optional="true">
|
|
<exclude field-name="contactMechId"/>
|
|
</auto-attributes>
|
|
<auto-attributes entity-name="TelecomNumber" mode="IN" optional="true">
|
|
<exclude field-name="contactMechId"/>
|
|
</auto-attributes>
|
|
<attribute name="emailAddress" type="String" mode="IN" optional="true"/>
|
|
<attribute name="groupName" type="String" mode="IN" optional="true"/>
|
|
<attribute name="title" type="String" mode="IN" optional="true"/>
|
|
<attribute name="numEmployees" type="String" mode="IN" optional="true"/>
|
|
<attribute name="officeSiteName" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
|
|
<attribute name="dataSourceId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="extension" type="String" mode="IN" optional="true"/>
|
|
<attribute name="contactListId" type="String" mode="IN" optional="true"/>
|
|
|
|
<attribute name="partyId" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="partyGroupPartyId" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="roleTypeId" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="createContact" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/sfa/contact/ContactServices.xml" invoke="createContact">
|
|
<description>Create a Contact Person</description>
|
|
<auto-attributes entity-name="Person" mode="IN" optional="true">
|
|
<exclude field-name="partyId"/>
|
|
</auto-attributes>
|
|
<auto-attributes entity-name="PostalAddress" mode="IN" optional="true">
|
|
<exclude field-name="contactMechId"/>
|
|
</auto-attributes>
|
|
<auto-attributes entity-name="TelecomNumber" mode="IN" optional="true">
|
|
<exclude field-name="contactMechId"/>
|
|
</auto-attributes>
|
|
<attribute name="partyId" type="String" mode="OUT"/>
|
|
<attribute name="contactMechId" type="String" mode="OUT" optional="true"/>
|
|
<attribute name="emailAddress" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyIdFrom" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quickAdd" type="String" mode="IN" optional="true"/>
|
|
<attribute name="extension" type="String" mode="IN" optional="true"/>
|
|
<attribute name="contactListId" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="mergeContacts" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/sfa/contact/ContactServices.xml" invoke="mergeContacts">
|
|
<description>This service merges the contact details of two parties, partyId merges into partyIdTo</description>
|
|
<attribute name="addrContactMechIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="phoneContactMechIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="emailContactMechIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="addrContactMechId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="phoneContactMechId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="emailContactMechId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyIdTo" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="INOUT" optional="false"/>
|
|
<attribute name="useAddress2" type="String" mode="IN" optional="true"/>
|
|
<attribute name="useContactNum2" type="String" mode="IN" optional="true"/>
|
|
<attribute name="useEmail2" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- Account services -->
|
|
<service name="createAccount" engine="simple"
|
|
location="component://marketing/script/org/ofbiz/sfa/account/AccountServices.xml" invoke="createAccount">
|
|
<description>Create an Account Group</description>
|
|
<auto-attributes entity-name="PartyGroup" mode="IN" optional="true">
|
|
<exclude field-name="partyId"/>
|
|
</auto-attributes>
|
|
<auto-attributes entity-name="PostalAddress" mode="IN" optional="true">
|
|
<exclude field-name="contactMechId"/>
|
|
</auto-attributes>
|
|
<auto-attributes entity-name="TelecomNumber" mode="IN" optional="true">
|
|
<exclude field-name="contactMechId"/>
|
|
</auto-attributes>
|
|
<attribute name="emailAddress" type="String" mode="IN" optional="true"/>
|
|
<attribute name="extension" type="String" mode="IN" optional="true"/>
|
|
<attribute name="partyId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="convertLeadToContact" engine="simple" location="component://marketing/script/org/ofbiz/sfa/lead/LeadServices.xml" invoke="convertLeadToContact">
|
|
<attribute name="partyId" type="String" mode="INOUT" optional="false"/>
|
|
<attribute name="partyGroupId" type="String" mode="INOUT" optional="false"/>
|
|
</service>
|
|
|
|
<!-- VCard services -->
|
|
<service name="importVCard" engine="java" location="org.ofbiz.sfa.vcard.VCard" invoke="importVCard">
|
|
<attribute name="infile" type="java.nio.ByteBuffer" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="OUT" optional="false"/>
|
|
<attribute name="serviceName" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="exportVCard" engine="java" location="org.ofbiz.sfa.vcard.VCard" invoke="exportVCard">
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
</services> |