Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Path Repication in AEM 6.2

umeshj24393
Level 4
Level 4

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

1 Accepted Solution
Opkar_Gill
Correct answer by
Employee
Employee

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

View solution in original post

4 Replies
smacdonald2008
Level 10
Level 10

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

Opkar_Gill
Correct answer by
Employee
Employee

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

View solution in original post

smacdonald2008
Level 10
Level 10

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.

umeshj24393
Level 4
Level 4

Thanks, It works.

But Complexity is too high for using it

Thanks