Expand my Community achievements bar.

SOLVED

replicator.replicate function: does it delete and recreate the node?

Avatar

Level 8

So I have this code

replicator.replicate(jcrSession, activateType, path);

and it replicates contents/node (primaryType = cq:Page) from author to publisher.

My question is in relation to an existing node:

Does this function deletes the existing publisher node and recreates it? Or does it just updates the existing node?

I've looked at the reference manual and there's not details there on what's happening.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 2

It will not delete the node and create a new one. If it already exists, then the content is updated and a new version is created.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

It will not delete the node and create a new one. If it already exists, then the content is updated and a new version is created.