svn commit: r594790 - in /ofbiz/trunk/applications/party: script/org/ofbiz/party/party/PartyInvitationServices.xml servicedef/services.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r594790 - in /ofbiz/trunk/applications/party: script/org/ofbiz/party/party/PartyInvitationServices.xml servicedef/services.xml

apatel-2
Author: apatel
Date: Tue Nov 13 23:29:27 2007
New Revision: 594790

URL: http://svn.apache.org/viewvc?rev=594790&view=rev
Log:
CRUD services for PartyInvitation assocs

Added:
    ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml
Modified:
    ofbiz/trunk/applications/party/servicedef/services.xml

Added: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml?rev=594790&view=auto
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml (added)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml Tue Nov 13 23:29:27 2007
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
+
+    <!-- Party Invitation Services -->
+    <simple-method method-name="createPartyInvitation" short-description="Create a PartyInvitation">
+        <make-value entity-name="PartyInvitation" value-name="newEntity"/>
+        <sequenced-id-to-env sequence-name="PartyInvitation" env-name="newEntity.partyInvitationId"/>
+        <field-to-result field-name="newEntity.partyInvitationId" result-name="partyInvitationId"/>
+        <now-timestamp-to-env env-name="nowTimestamp"/>
+        <set from-field="nowTimestamp" field="newEntity.lastInviteDate"/>
+        <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
+        <create-value value-name="newEntity"/>
+    </simple-method>
+    <simple-method method-name="updatePartyInvitation" short-description="Update a PartyInvitation">
+        <entity-one entity-name="PartyInvitation" value-name="lookedUpValue"/>
+        <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/>
+        <store-value value-name="lookedUpValue"/>
+    </simple-method>
+    <simple-method method-name="deletePartyInvitation" short-description="Remove a PartyInvitation">
+        <entity-one entity-name="PartyInvitation" value-name="lookedUpValue"/>
+        <remove-value value-name="lookedUpValue"/>
+    </simple-method>
+    <simple-method method-name="createPartyInvitationGroupAssoc" short-description="Create a PartyInvitationGroupAssoc">
+        <make-value entity-name="PartyInvitationGroupAssoc" value-name="newEntity"/>
+        <set-pk-fields map-name="parameters" value-name="newEntity"/>        
+        <create-value value-name="newEntity"/>
+    </simple-method>
+    <simple-method method-name="deletePartyInvitationGroupAssoc" short-description="Remove a PartyInvitationGroupAssoc">
+        <entity-one entity-name="PartyInvitationGroupAssoc" value-name="lookedUpValue"/>
+        <remove-value value-name="lookedUpValue"/>
+    </simple-method>
+    <simple-method method-name="createPartyInvitationRoleAssoc" short-description="Create a PartyInvitationRoleAssoc">
+        <make-value entity-name="PartyInvitationRoleAssoc" value-name="newEntity"/>
+        <set-pk-fields map-name="parameters" value-name="newEntity"/>        
+        <create-value value-name="newEntity"/>
+    </simple-method>
+    <simple-method method-name="deletePartyInvitationRoleAssoc" short-description="Remove a PartyInvitationRoleAssoc">
+        <entity-one entity-name="PartyInvitationRoleAssoc" value-name="lookedUpValue"/>
+        <remove-value value-name="lookedUpValue"/>
+    </simple-method>
+
+</simple-methods>

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=594790&r1=594789&r2=594790&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Tue Nov 13 23:29:27 2007
@@ -832,6 +832,46 @@
              location="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="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="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="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="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="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="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="org/ofbiz/party/party/PartyInvitationServices.xml" invoke="deletePartyInvitationRoleAssoc">
+        <description>Remove PartyInvitationRoleAssoc</description>
+        <auto-attributes entity-name="PartyInvitationRoleAssoc" include="pk" mode="IN" optional="false"/>
+    </service>
 
     <!-- Permission checking services-->
     <service name="partyBasePermissionCheck" engine="simple"