Issue (View Online)

Key: NXP-704
Issue Type: Sub-task Sub-task
Status: Resolved Resolved
Priority: Major Major
Resolution: Fixed
Assignee: Bogdan Stefanescu
Reporter: Eric Barroca
Votes: 1

Operations

View all
View comments
View history
Export documents to an archive 
Updated: 20/06/07 16:22   Created: 02/03/07 15:08  

The following issue has been resolved as FIXED.

Project: Nuxeo Enterprise Platform 5
Components: Core
Fix Versions: 5.1 RC

 Description   
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>


This message was automatically generated by Atlassian JIRA Enterprise Edition, Version: 3.7.2-186 - Bug/feature request.
If you think it was sent incorrectly, contact one of this server's administrators.

_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to