Expand my Community achievements bar.

SOLVED

How to get the value of a profile attribute which was set using clientcontext through a java program?

Avatar

Level 7

Hi,

    I have added a new attribute named "userType" to client context/profile and I have given the value as some "business". I can get the value by using the script :"CQ_Analytics.ProfileDataMgr.getProperty("userType")". I'm able to get this value. But I need this value through a java program. Is there any API to get this value? Is there any possibility to get this value from session? Let me know if you have the solution. I'm using cq5.5. Your suggestions are welcome.

Thanks,

Arya

1 Accepted Solution

Avatar

Correct answer by
Level 10
1 Reply

Avatar

Correct answer by
Level 10