Thursday, June 26, 2014

Get the logged in user id in eventhandler/ schedule task

we can get the logged in user id using AuthenticatedSelfService api or ContextManager api.:

ContextManager.getOIMUser()

AuthenticatedSelfService asfService = Platform.getService(AuthenticatedSelfService.class);
User currActor= asfService.getProfileDetails(null);

No comments:

Post a Comment