[ 
https://jira.nuxeo.com/browse/NXP-7293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=99441#comment-99441
 ] 

Thierry Martins commented on NXP-7293:
--------------------------------------

The current implementation already checks if the root document contains 
documents whose type corresponds to one of the template items. It should be 
enough in 99% of the cases, where people won't create a document at the root 
whose type is the same than one of the template items in the default structure 
(why not using the content template to create this document? And note that the 
content template listener will also apply on this document created by hand).

Otherwise, people can write their own factory for the target type Root.

> content templates root factory execution should not depends from other 
> repository initialization handlers
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: NXP-7293
>                 URL: https://jira.nuxeo.com/browse/NXP-7293
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.4.2
>            Reporter: Stéphane Lacoin
>            Assignee: Thierry Martins
>            Priority: Major
>
> When content template requires it's repository initialization handler being 
> called at first. This requirement cannot  be guaranted at any time since  we 
> don't control the ordering. As an example, sometime, core management is 
> registering it's initialization handler at first.
>  
> The retained solution is to let the root factory registering it's execution 
> using the 'dc:issued' property on the root document instead of checking the 
> existence of root's children.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to