[OFBiz] SVN: r7729 - in trunk/applications/party: script/org/ofbiz/party/communication servicedef
jacopo@svn.ofbiz.org
jacopo at svn.ofbiz.org
Thu Jun 1 10:35:22 CDT 2006
Author: jacopo
Date: 2006-06-01 10:35:09 -0500 (Thu, 01 Jun 2006)
New Revision: 7729
Modified:
trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
trunk/applications/party/servicedef/services.xml
Log:
Implemented create/remove services for the CommunicationEventProduct and CommunicationEventOrder entities.
Modified: trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
===================================================================
--- trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml 2006-06-01 08:16:32 UTC (rev 7728)
+++ trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml 2006-06-01 15:35:09 UTC (rev 7729)
@@ -148,4 +148,40 @@
</then>
</if>
</simple-method>
+ <simple-method method-name="createCommunicationEventProduct" short-description="Create a CommunicationEventProduct">
+ <check-permission permission="PARTYMGR" action="_CME_UPDATE">
+ <fail-property resource="PartyUiLabels" property="PartyCreateCommunicationEventProductPermissionError"/>
+ </check-permission>
+ <check-errors/>
+ <make-value value-name="newEntity" entity-name="CommunicationEventProduct"/>
+ <set-pk-fields map-name="parameters" value-name="newEntity"/>
+ <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
+ <create-value value-name="newEntity"/>
+ </simple-method>
+ <simple-method method-name="removeCommunicationEventProduct" short-description="Remove a CommunicationEventProduct">
+ <check-permission permission="PARTYMGR" action="_CME_UPDATE">
+ <fail-property resource="PartyUiLabels" property="PartyRemoveCommunicationEventProductPermissionError"/>
+ </check-permission>
+ <check-errors/>
+ <entity-one entity-name="CommunicationEventProduct" value-name="eventProduct"/>
+ <remove-value value-name="eventProduct"/>
+ </simple-method>
+ <simple-method method-name="createCommunicationEventOrder" short-description="Create a CommunicationEventOrder">
+ <check-permission permission="PARTYMGR" action="_CME_UPDATE">
+ <fail-property resource="PartyUiLabels" property="PartyCreateCommunicationEventProductPermissionError"/>
+ </check-permission>
+ <check-errors/>
+ <make-value value-name="newEntity" entity-name="CommunicationEventOrder"/>
+ <set-pk-fields map-name="parameters" value-name="newEntity"/>
+ <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
+ <create-value value-name="newEntity"/>
+ </simple-method>
+ <simple-method method-name="removeCommunicationEventOrder" short-description="Remove a CommunicationEventOrder">
+ <check-permission permission="PARTYMGR" action="_CME_UPDATE">
+ <fail-property resource="PartyUiLabels" property="PartyRemoveCommunicationEventOrderPermissionError"/>
+ </check-permission>
+ <check-errors/>
+ <entity-one entity-name="CommunicationEventOrder" value-name="eventOrder"/>
+ <remove-value value-name="eventOrder"/>
+ </simple-method>
</simple-methods>
Modified: trunk/applications/party/servicedef/services.xml
===================================================================
--- trunk/applications/party/servicedef/services.xml 2006-06-01 08:16:32 UTC (rev 7728)
+++ trunk/applications/party/servicedef/services.xml 2006-06-01 15:35:09 UTC (rev 7729)
@@ -628,6 +628,26 @@
<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="createCommunicationEventProduct" engine="simple"
+ location="org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventProduct" auth="true">
+ <description>Create a Communication Event Product</description>
+ <auto-attributes entity-name="CommunicationEventProduct" include="pk" mode="IN" optional="false"/>
+ </service>
+ <service name="removeCommunicationEventProduct" engine="simple"
+ location="org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="removeCommunicationEventProduct" auth="true">
+ <description>Remove a Communication Event Product</description>
+ <auto-attributes entity-name="CommunicationEventProduct" include="pk" mode="IN" optional="false"/>
+ </service>
+ <service name="createCommunicationEventOrder" engine="simple"
+ location="org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="createCommunicationEventOrder" auth="true">
+ <description>Create a Communication Event Order</description>
+ <auto-attributes entity-name="CommunicationEventOrder" include="pk" mode="IN" optional="false"/>
+ </service>
+ <service name="removeCommunicationEventOrder" engine="simple"
+ location="org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="removeCommunicationEventOrder" auth="true">
+ <description>Remove a Communication Event Order</description>
+ <auto-attributes entity-name="CommunicationEventOrder" include="pk" mode="IN" optional="false"/>
+ </service>
<service name="markCommEventRead" engine="simple"
location="org/ofbiz/party/communication/CommunicationEventServices.xml" invoke="markEventRead" auth="true">
<description>Marks a communication event as read if in the entered/pending status</description>
More information about the Svn
mailing list