Re: [Dev] [Carbon][AppM] Calling OSGi service in Jaggery gives a NullPointerException

2015-05-07 Thread Sajith Ariyarathna
I tried different approaches with org.wso2.carbon.user.api.UserStoreManager OSGi service, however I couldn't overcome the NullPointerException. I think one must initialize the UserStoreManager service before using it, but couldn't find an initializing method. *Solution:* Instead of using

Re: [Dev] [Carbon][AppM] Calling OSGi service in Jaggery gives a NullPointerException

2015-05-07 Thread Shani Ranasinghe
Hi, I think you can use the method described in the jaggery docs [1] as well. Also this does not include the getUserListOfRole method, but I see that GayanD has done the changes for it[2]. [1] http://jaggeryjs.org/documentation.jag?api=UserManager [2] [Dev] [Jaggery] Adding getUserListOfRole to

[Dev] [Carbon][AppM] Calling OSGi service in Jaggery gives a NullPointerException

2015-04-20 Thread Sajith Ariyarathna
I'm developing a web app for AppM and I want to do some user management tasks. - retrieving all users for a given role - retrieving claims of a given user To accomplish above tasks, I want to call getUserListOfRole() method getUserClaimValues() method in the