svn commit: r493123 - in /ofbiz/trunk/applications/party: script/org/ofbiz/party/party/PartyServices.xml servicedef/secas.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: r493123 - in /ofbiz/trunk/applications/party: script/org/ofbiz/party/party/PartyServices.xml servicedef/secas.xml servicedef/services.xml

jaz-3
Author: jaz
Date: Fri Jan  5 10:31:21 2007
New Revision: 493123

URL: http://svn.apache.org/viewvc?view=rev&rev=493123
Log:
uploadPartyContentFile now calls into the new content services, then calls the createPartyContent service. One step to upload a file attached to a user.


Modified:
    ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
    ofbiz/trunk/applications/party/servicedef/secas.xml
    ofbiz/trunk/applications/party/servicedef/services.xml

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?view=diff&rev=493123&r1=493122&r2=493123
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Fri Jan  5 10:31:21 2007
@@ -325,6 +325,7 @@
     </simple-method>
     
     <!-- create party content -->
+    <!-- TODO: this method will be deleted in favor of new content methods and the PartyContentServices.xml -->
     <simple-method method-name="createPartyContent" short-description="Creates Party Associated Content" login-required="false">
            <!-- make sure we are logged in when passing a partyId -->
         <if-not-empty field-name="partyId" map-name="parameters">
@@ -402,7 +403,8 @@
        <field-to-result field-name="contentId" />                
     </simple-method>
 
-        <!-- Update party content -->
+    <!-- Update party content -->
+    <!-- TODO: this method will be deleted in favor of new content methods and the PartyContentServices.xml -->
     <simple-method method-name="updatePartyContent" short-description="Creates Party Associated Content" login-required="false">
            <!-- make sure we are logged in when passing a partyId -->
         <if-not-empty field-name="partyId" map-name="parameters">

Modified: ofbiz/trunk/applications/party/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/secas.xml?view=diff&rev=493123&r1=493122&r2=493123
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/secas.xml Fri Jan  5 10:31:21 2007
@@ -77,14 +77,5 @@
     <eca service="sendCommEventAsEmail" event="commit">
         <action service="setCommEventComplete" mode="sync"/>
     </eca>
-
-    <!-- party content services -->
-    <eca service="createPartyTextContent" event="invoke">
-        <action service="createTextContent" mode="sync"/>
-        <action service="createPartyContent" mode="sync"/>
-    </eca>
-    <eca service="uploadPartyContentFile" event="invoke">
-        <action service="createLocalFileContentFromStream" mode="sync"/>
-        <action service="createPartyContent" mode="sync"/>
-    </eca>
+    
 </service-eca>

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?view=diff&rev=493123&r1=493122&r2=493123
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Fri Jan  5 10:31:21 2007
@@ -719,11 +719,12 @@
         <override name="contentId" optional="true"/>
     </service>
 
-    <service name="uploadPartyContentFile" engine="route" transaction-timeout="300">
+    <service name="uploadPartyContentFile" engine="group" transaction-timeout="300">
         <description>Upload and attach a file to a party</description>
-        <implements service="createLocalFileContentFromStream" optional="false"/>
-        <implements service="createPartyContent" optional="true"/>
-        <override name="contentId" optional="true"/>
+        <group>
+            <invoke name="createContentFromUploadedFile" result-to-context="true"/>
+            <invoke name="createPartyContent"/>
+        </group>        
     </service>
 
     <service name="getPartyEmail" engine="simple"