How to get login information - Server side
Accepted answer
This is the code I searched for:
IRepositoryItemService itemService = getService(IRepositoryItemService.class);
IContributorHandle contributorHandle = this.getAuthenticatedContributor();
ContributorImpl contributor = (ContributorImpl)itemService.fetchItem(contributorHandle,null);
String loggedInUser = contributor.getUserId();
Comments
Yehiel, code like that can be found here: https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/
I can only encourage you to search for information like that on my blog. I am pretty sure I have covered the most common use cases.