Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-2567

Avoid lifecycles dependencies on JCRLifeCycleManager

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.5
    • Fix Version/s: 5.1.6
    • Component/s: None
    • Impact type:
      Configuration format change
    • Upgrade notes:
      Hide

      The change is fully compatible for existing instances.
      When defining a lifecycle, a "lifecyclemanager" attribute is not needed anymore.
      When defining a lifecyclemanger, a "name" attribute is not needed anymore.
      When defining a LifeCycleManager implementation, you must now directly implement LifeCycleManager, as AbstractLifeCycleManager doesn't exist anymore.

      Show
      The change is fully compatible for existing instances. When defining a lifecycle, a "lifecyclemanager" attribute is not needed anymore. When defining a lifecyclemanger, a "name" attribute is not needed anymore. When defining a LifeCycleManager implementation, you must now directly implement LifeCycleManager, as AbstractLifeCycleManager doesn't exist anymore.

      Description

      Currently the lifecycles depend on a given lifecycle manager, of which we only have a single implementation: JCRLifeCycleManager.

      The specification of which lifecycle manager implementation (which decides how to store lifecycle policy and state in a document) should be global instead of per-lifecycle, so that the same lifecycles can be used with a non-JCR backend.

      TODO:

      nuxeo-core's LifeCycleCoreExtensions.xml and nuxeo-platform-forum-core's forum-schemas-contrib.xml have dependencies on JCRLifeCycleManager which should be removed.

      The references to jcrlifecyclemanager from lifecycles should be made unnecessary, and only one lifecycle manager allowed at a time (lifecyclemanager extension point of org.nuxeo.ecm.core.lifecycle.LifeCycleService).

      LifeCycleServiceImpl should only instantiate a single manager for all lifecycles.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified