-
Improvement
-
Resolution: Fixed
-
Major
-
4.2.0
-
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();