AnsweredAssumed Answered

Problem with AuthenticationUtil class

Question asked by alex888 on Feb 4, 2009
Latest reply on Feb 4, 2009 by pmonks
Hi all,

I've been working several weeks in a project using Alfresco 3 beta. We develop a new dashlet where we need to detect the Alfresco user login, the next piece of code was working properly up to now:



import org.alfresco.repo.security.authentication.AuthenticationUtil;

….

String userLogin = AuthenticationUtil.   getCurrentRealUserName() ;


Now, I tested my code using the new Alfresco 3a Stable version, and the method getCurrentRealUserName is not recognized (the typical exception you get when a method is not present in a class, but I can't post the exact message right now).
Please ,does anyone know an alternative way to do this?, what has been changed from old version to new one?.

Many thanks in advance and kind regards.

Outcomes