[ 
https://jira.nuxeo.org/browse/NXP-5721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexandre Russel reopened NXP-5721:
-----------------------------------


We add an attribute to the types contribution:
  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
    point="types">
    <types>
      <type name="File" 
noRecursionForTransitions="toDelete,toFoo,toBar">default</type>
      <type name="Folder">default</type>
    </types>
  </extension>

Then the bulk listener will check with the service if it needs to recurse

> make bulk lifecycle change optional
> -----------------------------------
>
>                 Key: NXP-5721
>                 URL: https://jira.nuxeo.org/browse/NXP-5721
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Improvement
>            Reporter: Alexandre Russel
>            Assignee: Alexandre Russel
>             Fix For: 5.4
>
>
> At the moment, either we have the BulkLifeCycleChangeListener and all 
> lifecycle change recurse in folders, or we don't.
> We should be able to desactivate the recursion by passing context data in the 
> doc before the lifecycle change:
> client code:
> doc.putContextData("NON_RECURSIVE_LIFECYCLE_KEY", true);
> doc.followTransition("mytrans")
> in BulkLifeCycleChangeListener, check for the data, and if explicitely true 
> then return before recursing

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
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