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();