History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

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

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform
NXP-701

Export documents to an archive

Created: 02/03/07 15:08   Updated: 14/05/08 18:29
Component/s: Core
Affects Version/s: None
Fix Version/s: 5.1.RC

Time Tracking:
Not Specified

Resolution Date: 20/06/07 16:22
Participants: Bogdan Stefanescu, Eric Barroca and Thierry Delprat
Date of First Response: 05/03/07 17:10
Tags:


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




 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thierry Delprat - 05/03/07 17:10
This should be packaged as an action that will ba available on the document.

Thierry Delprat - 05/03/07 17:12
The other use case (export a list of document) must be implemented as an action on the working list.
=> There is allready a simple export available : you can add your export as well (without removing the simple export)