Passer le script de migration ci-dessous pour changer la valeur par défaut des liens "normaux".
var qm = session.getWorkspace().getQueryManager(); var query = qm.createQuery("//element(*, ametys:directoryLink)[@ametys-internal:status = 'USUAL']", javax.jcr.query.Query.XPATH); var nodes = query.execute().getNodes(); var count = 0; while (nodes.hasNext()) { var node = nodes.next(); var status = node.setProperty("ametys-internal:status", "NORMAL"); count++; } if (count > 0) { session.save(); } print(count + " updated links.");
var qm = session.getWorkspace().getQueryManager(); var query = qm.createQuery("//element(*, ametys:directoryLink)[@ametys-internal:status = 'USUAL']", javax.jcr.query.Query.XPATH); var nodes = query.execute().getNodes(); var count = 0; while (nodes.hasNext()) { var node = nodes.next(); var status = node.setProperty("ametys-internal:status", "NORMAL"); count++; } if (count > 0) { session.save(); } print(count + " updated links.");
var qm = session.getWorkspace().getQueryManager(); var query = qm.createQuery("//element(*, ametys:directoryLink)[@ametys-internal:status = 'USUAL']", javax.jcr.query.Query.XPATH); var nodes = query.execute().getNodes(); var count = 0; while (nodes.hasNext()) { var node = nodes.next(); var status = node.setProperty("ametys-internal:status", "NORMAL"); count++; } if (count > 0) { session.save(); } print(count + " updated links.");
Il faut ensuite reconstruire le live