Path Repication in AEM 6.2 | Community
Skip to main content
Level 4
October 6, 2016
Solved

Path Repication in AEM 6.2

  • October 6, 2016
  • 4 replies
  • 1048 views

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

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 ogill

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

4 replies

smacdonald2008
Level 10
October 6, 2016

I am not sure JCR API supports encrypted names. I will check further. 

ogillAdobe EmployeeAccepted solution
Adobe Employee
October 6, 2016

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

smacdonald2008
Level 10
October 6, 2016

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.

Level 4
October 7, 2016

Thanks, It works.

But Complexity is too high for using it

Thanks