permissions reverse replication | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Yogesh_Upadhyay

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

4 replies

Yogesh_Upadhyay
Level 6
October 16, 2015

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 

Scott_Brodersen
Level 8
October 16, 2015

"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%20Change

Here's the package manager documentation: http://dev.day.com/docs/en/crx/current/how_to/package_manager.html

scott

Yogesh_Upadhyay
Yogesh_UpadhyayAccepted solution
Level 6
October 16, 2015

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

dav_saAuthor
October 16, 2015

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.