Author: jaz
Date: Wed Feb 28 14:45:39 2007
New Revision: 513020
URL:
http://svn.apache.org/viewvc?view=rev&rev=513020Log:
now upload services returns the decided mimeTypeId so it is properly reflected on the content record
Modified:
ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
ofbiz/trunk/applications/content/servicedef/services_content.xml
Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml?view=diff&rev=513020&r1=513019&r2=513020==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml Wed Feb 28 14:45:39 2007
@@ -650,6 +650,7 @@
<call-service service-name="createAnonFile" in-map-name="fileCtx" include-user-login="true"/>
<field-to-result field-name="dataResourceId" map-name="dataResource"/>
+ <field-to-result field-name="mimeTypeId" map-name="dataResource"/>
</simple-method>
<!-- save OTHER_OBJECT data -->
@@ -683,6 +684,7 @@
</if-compare>
<field-to-result field-name="dataResourceId" map-name="dataResource"/>
+ <field-to-result field-name="mimeTypeId" map-name="dataResource"/>
</simple-method>
<!-- save IMAGE_OBJECT data -->
@@ -716,6 +718,7 @@
</if-compare>
<field-to-result field-name="dataResourceId" map-name="dataResource"/>
+ <field-to-result field-name="mimeTypeId" map-name="dataResource"/>
</simple-method>
<!-- save VIDEO_OBJECT data -->
@@ -749,6 +752,7 @@
</if-compare>
<field-to-result field-name="dataResourceId" map-name="dataResource"/>
+ <field-to-result field-name="mimeTypeId" map-name="dataResource"/>
</simple-method>
<!-- save AUDIO_OBJECT data -->
@@ -782,5 +786,6 @@
</if-compare>
<field-to-result field-name="dataResourceId" map-name="dataResource"/>
+ <field-to-result field-name="mimeTypeId" map-name="dataResource"/>
</simple-method>
</simple-methods>
Modified: ofbiz/trunk/applications/content/servicedef/services_content.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/servicedef/services_content.xml?view=diff&rev=513020&r1=513019&r2=513020==============================================================================
--- ofbiz/trunk/applications/content/servicedef/services_content.xml (original)
+++ ofbiz/trunk/applications/content/servicedef/services_content.xml Wed Feb 28 14:45:39 2007
@@ -72,6 +72,7 @@
<!-- uses createContent internally; additonal permission(s) not necessary -->
<implements service="uploadFileInterface"/>
<attribute name="dataResourceId" type="String" mode="INOUT" optional="false"/>
+ <attribute name="mimeTypeId" type="String" mode="INOUT" optional="false"/>
</service>
<service name="createContentFromUploadedFile" engine="group" transaction-timeout="300">