Hi,
I am replicated the groups from Author to Publish.
As in AEM 6.2, when i creating group it is created as encrypted name. For example: want to create rahul_verma group name: /home/groups/rahul_verma but in crx/de/index.jsp it is like that : /home/groups/[encrpted name]
Now how to get it path name for replication when i trying to get node path from Node node =session.getNode("/home/groups/rahul_verma");
It throws a exception .
How to get it encrypted name?
Any other solution for it?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
You could always run a query to get the group if you know it's name:
/jcr:root/home/groups//element(*, rep:Group)[rep:principalName = "mygroup"]
Regards,
Opkar
Views
Replies
Total Likes
I am not sure JCR API supports encrypted names. I will check further.
Views
Replies
Total Likes
You could always run a query to get the group if you know it's name:
/jcr:root/home/groups//element(*, rep:Group)[rep:principalName = "mygroup"]
Regards,
Opkar
Views
Replies
Total Likes
Solution is:
They have to search for the node in their code like this:
/jcr:root/home/users/element(*,rep:Authorizable)[@rep:principalName="rahul_verma"]
That will find them the node path that they can pass to Replicator.replicate.
Views
Replies
Total Likes
Thanks, It works.
But Complexity is too high for using it
Thanks
Views
Replies
Total Likes