How can I do reverse replication of the permissions of a page?
Solved! Go to Solution.
Some thoughts,
Permission usually have node type rep:ACL and rep:GrantACE,rep:DenyACE. You can set reverse replication agent on author under launcher to import those nodes as soon as they are created (You have to import user/group as well in that case).
If it is not time sensitive, you can use package manager API on publish instance to create package of ACLS on publish instance and import it on author periodically.
Or (Not tried it) If you are creating permission using API then at a same time you can reverse replicate permission node, using replicator API http://dev.day.com/docs/en/cq/5-6/javadoc/com/day/cq/replication/Replicator.html
Yogesh
Views
Replies
Total Likes
Dav,
Are you applying permission on page on publish dynamically ? Make sure that you actually needs those permissions on author instance if not then don't do it.
If your primary goal is to then distribute those permission to all publish instance after reverse replication then you have to make sure that you account for delay in replications.
Otherwise handle assigning permission to each publish instance separately. Use some kind of cookie or header logic to create permission if it does not exist already on that publish instance for that user.
For reverse replication see if this helps
http://www.wemblog.com/2011/10/how-to-set-up-usergroupprofile-reverse.html
http://helpx.adobe.com/cq/kb/HowToUseReverseReplication.html
Yogesh
"You can set reverse replication agent on author under launcher to import those nodes as soon as they are created"
Are you talking about the workflow launcher? ie. http://dev.day.com/docs/en/cq/current/workflows/wf-using.html#Starting%20Workflows%20When%20Nodes%20...
Here's the package manager documentation: http://dev.day.com/docs/en/crx/current/how_to/package_manager.html
scott
Views
Replies
Total Likes
Some thoughts,
Permission usually have node type rep:ACL and rep:GrantACE,rep:DenyACE. You can set reverse replication agent on author under launcher to import those nodes as soon as they are created (You have to import user/group as well in that case).
If it is not time sensitive, you can use package manager API on publish instance to create package of ACLS on publish instance and import it on author periodically.
Or (Not tried it) If you are creating permission using API then at a same time you can reverse replicate permission node, using replicator API http://dev.day.com/docs/en/cq/5-6/javadoc/com/day/cq/replication/Replicator.html
Yogesh
Views
Replies
Total Likes
Thanks! the situation is the we establish the permissions in the publish instance, and now I dont know how to move them to the author instance.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies