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

indrajithp11346
Community profile indrajithp11346 Level 2
Job title here
Location here
6 BADGES
Level 2

Level 2

Learn more
Joined the community 01-08-2019 11:15:20 PM
Offline
Top badges earned by indrajithp11346
Customize the badges you want to showcase on your profile
Re: Mock Casting of jcr Session to Jackrabbit Session - (JackrabbitSession) session
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Hi,I have tried this and it is not working. I am also doing the similar implementation.I have mocked both the jcrSession and Jackrabbit session.can you please elaborate the below discussion little, i am not getting what he is trying to tell.https://stackoverflow.com/questions/28462611/mockito-classcastexception-a-mock-cannot-be-c ast

Views

2.7K

Likes

0

Replies

0
Re: Mock Casting of jcr Session to Jackrabbit Session - (JackrabbitSession) session
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Hi,I need to make some changes with the users in aem so i need the jackrabbit session which i need to get it from jcrSession session that why i need to cast it and the code is working fine but while writing my test case mocking that is cast is not working. Thanks & Regards,Indrajith

Views

2.7K

Likes

0

Replies

0
Mock Casting of jcr Session to Jackrabbit Session - (JackrabbitSession) session
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Hi All, I am trying to write a junit test case and i am unable to mock the casting of jcr session to Jackrabbit session. Here is my Code :resolver = request.getResourceResolver();session = resolver.adaptTo(Session.class);jcrSession = (JackrabbitSession) session;Below is my Junit : @Mock Session session; @Mock ResourceResolver resolver; @Mock JackrabbitSession jcrSession;PowerMockito.when(request.getResourceResolver()).thenReturn(resolver);PowerMockito.when(resolver.adaptTo(Session.class)).thenRe...

Views

2.8K

Likes

0

Replies

5
Re: Delete User UUID Reference from Group
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Hi Arun, Thank you for your help.Regards,Indrajith

Views

440

Likes

0

Replies

0
Re: Delete User UUID Reference from Group
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Yeah it is getting removed. Thank you. So please suggest me how to remove user programmatically. I have tried using the query as I mentioned in my question and tried to remove from crx. Guide me with new approach.

Views

314

Likes

0

Replies

0
Re: Delete User UUID Reference from Group
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
In my project we are using 6.4Actually the relationship of user to group is never getting removed, Once a user is added to a group the user's id is never getting removed from the group unless we manually remove.In crx we can see the uuid resides within the group and in useradmin we can see the userName.

Views

320

Likes

0

Replies

0
Re: Delete User UUID Reference from Group
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Hi Vishu,I have verified by deleting both from useradmin and crx but they are just deleting the use but not the reference of the user that was added to the group in property rep:members. Regards,Indrajith

Views

316

Likes

0

Replies

0
Delete User UUID Reference from Group
Avatar
Give Back 5
Level 2
indrajithp11346
Level 2

Like

1 like

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Validate 1
Ignite 1
Give Back
View profile
indrajithp11346
- Adobe Experience Manager
Hi All,There is a scenario I am facing right now. I have created a Test User and Added him to few groups. Now I have deleted the user but the user's UUID which is referenced to group is not getting removed from property rep:members in Group. I am not able to delete that reference even manually from crx as the delete is disabled. Please help me with this to remove the user reference from group. My Approach : Created SQL2 query to fetch the user using rep:principalName and get the node, from that ...

Views

886

Like

1

Replies

8
Likes given to
Likes from