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

optimize publication state queries

    XMLWordPrintable

    Details

    • Upgrade notes:
      Hide

      Document publishing state look-up is now based on ACL by default.

      You can select the task based look-up by contributing a new factory to the publisher service.
      That factory will sub-class the org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory and initialize the field lookupState to an instance of class org.nuxeo.ecm.platform.publisher.task.LookupStateByTask.

      If needed, you can select the state look-up strategy when you're requesting a publication tree org.nuxeo.ecm.platform.publisher.api.PublisherService.getPublicationTree by setting the property 'stateLookup' in the parameter map to 'byACL' or 'byTask'. The corresponding constants are defined in CoreProxyWithWorkflowFactory.

      Show
      Document publishing state look-up is now based on ACL by default. You can select the task based look-up by contributing a new factory to the publisher service. That factory will sub-class the org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory and initialize the field lookupState to an instance of class org.nuxeo.ecm.platform.publisher.task.LookupStateByTask. If needed, you can select the state look-up strategy when you're requesting a publication tree org.nuxeo.ecm.platform.publisher.api.PublisherService.getPublicationTree by setting the property 'stateLookup' in the parameter map to 'byACL' or 'byTask'. The corresponding constants are defined in CoreProxyWithWorkflowFactory.

      Description

      When querying for publication state, there is two ways of doing

      • asking JBPM for tasks on documents
      • checking the publication ACL on the document

      Querying ACLs is faster than running into JBPM hibernate.

      At this stage, we're using the both strategy, ACL for positive queries and JBPM for negative one.
      We want to use the same strategy in both cases. We want also to select by the default the ACL strategy but being able to use the JBPM extraction is needed for backward compatibility.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slacoin Stéphane Lacoin
                Reporter:
                slacoin Stéphane Lacoin
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: