]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - demo/site/org.argeo.slc.demo.basic/conf/basic.xml
Attachments management
[gpl/argeo-slc.git] / demo / site / org.argeo.slc.demo.basic / conf / basic.xml
index acaee0cb9579088067959d41447211bc2e97b576..686fc5f63d06661b183724ced3eeabc0be00dbc7 100644 (file)
 \r
                                <bean parent="task.uploadAttachments">\r
                                        <property name="attachmentUploader" ref="attachmentUploader" />\r
-                                       <property name="attachments">\r
-                                               <map>\r
-                                                       <entry>\r
-                                                               <key>\r
-                                                                       <bean class="org.argeo.slc.core.attachment.SimpleAttachment">\r
-                                                                               <property name="name" value="myAttachment" />\r
-                                                                               <property name="contentType" value="text/xml" />\r
-                                                                               <property name="uuid" value="1" />\r
-                                                                       </bean>\r
-                                                               </key>\r
-                                                               <bean class="org.springframework.core.io.FileSystemResource">\r
-                                                                       <constructor-arg value="/home/mbaudier/dev/work/tests/test.xml" />\r
-                                                               </bean>\r
-                                                       </entry>\r
-                                               </map>\r
+                                       <property name="attachment">\r
+                                               <bean parent="taskArg.attachment">\r
+                                                       <property name="name" value="myAttachment" />\r
+                                                       <property name="contentType" value="text/xml" />\r
+                                                       <property name="uuid" value="1" />\r
+                                               </bean>\r
                                        </property>\r
+                                       <property name="resource" value="osgibundle:/conf/main.xml" />\r
                                        <property name="attachTo">\r
                                                <list>\r
                                                        <ref bean="basic.testResult" />\r