|
|
|
|
The following issue has been resolved as FIXED.
|
|
The export format reuse the XML serialization of NXCore documents. An export is stored into a jar file using following format:
/ (root of the jar)
`-- index.xml (list all documents)
`-- <UID>/ (one directory per document)
`-- <files> (binaries)
`-- document.xml (containt document's properties (specified by XSD)
`-- setting.xml (contains document relation informations such as security, parent in the hierarchy, etc.)
Note: we may want a sub-folder let say 'blobs' or 'data' to put binary files instead of putting them at the same level as document.xml
-----
document.xml structure:
<document xmlns:nx="http://www.nuxeo.org/ecm/xdoc/" xmlns:dc="..." xmlns:file="..." ...>
<dc:title>My Title</dc:title>
<dc:description>My Description</dc:description>
<file:fileName>my_sound.wav</file:fileName>
<file:content>
<file:mimeType>audio/x-wav</file:mimeType>
<file:enconding/>
<file:data nx:ref="blobs/my_sound.wav"/>
</file:content>
....
</document>
--------
settings.xml structure:
<document uuid="" xmlns="http://www.nuxeo.org/ecm/xdoc/">
<type>File</type>
<parentUUID>24354-6456df-af3434-bac54-bc33212</parentUUID>
<lifeCycleState>WORKING</lifeCycleState>
<name>my_name_inside_my_parent</name>
<class>Document<class> <!-- possible value: Document | Version | Proxy -->
<!-- only if class is Document -->
<versions>
<label>1.0</label>
<label>1.1</label>
</versions>
<lastVersion>1.1</lastVersion>
<!-- Only if class is Version -->
<label>1.1</label>
<!-- Only if class is Proxy or Version -->
<sourceUUID>24354-6456df-af3434-bac54-bc33212</sourceUUID>
</document>
|
|
|
|
![]() |
|
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets