Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3179

[Script] migrateContent : Add a boolean to synchronize the content with the liveSession

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.0
    • 4.2.0
    • Plugin core
    • None
    • 1 - Middle term
    • 2 - Normal

      Add a migrateContent signature with an additionnal boolean (or a map of parameters) to synchronize or not with the live workspace.

      You need these components :

      var credentials = new javax.jcr.SimpleCredentials('ametys', []);
      var liveSession = repository.login(credentials, 'live');
      var syncComponent = serviceManager.lookup("org.ametys.web.synchronization.SynchronizeComponent");

      And apply this code :

      // Synchronize the content in the live workspace
      syncComponent.synchronizeContent(content, liveSession);
      liveSession.save();

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: