So the document view export omits autocreated or propected properties?

-Matej

On Fri, May 23, 2008 at 9:23 PM, Alexander Klimetschek <[EMAIL PROTECTED]> 
wrote:
> Hi!
>
> The document view export does not contain repository meta information
> (like node types and mixins), so you "loose" the UUIDs here. To keep
> UUIDs you have to use system view export.
>
> During import of document view, Jackrabbit supports jcr:primaryType,
> jcr:mixinTypes and jcr:uuid attributes, though (note that this is not
> mandatory in JCR 1.0). The ImportUUIDBehaviour.CREATE_NEW is only
> taken into account if the incoming XML contains UUIDs or mixin
> referenceable information - in case of system view or in case of a
> document view with the mentioned 3 attributes.
>
> You could annotate your document view XML before import with
> jcr:mixinTypes="mix:referenceable" attributes to get UUIDs generated.
>
> Regards,
> Alex
>
> On Fri, May 23, 2008 at 12:08 PM, Joshna Reddy <[EMAIL PROTECTED]> wrote:
>> Hii
>>
>> I have exported a node structure using exportDocumentView(....)  and written
>> it a file.
>>
>> In the exported xml document jcr:mixintypes property is not present  i.e
>> mixin types of the node are not exported
>>
>> Later when i tried to import the same node structure using importXML(...)
>>
>> I see  that jcr:uuid property is not created  . I have tried out using
>> ImportUUIDBehaviour.CREATE_NEW
>>
>> Why does export and import take care of mixin types.
>>
>> Is there any thing obvious that i am missing .
>>
>> Please help me out ....
>>
>> Thanks
>> K.Joshna
>>
>
> --
> Alexander Klimetschek
> [EMAIL PROTECTED]
>

Reply via email to