Hello,
I'm trying to do the impersonation through the alfresco API in java.
I found a guide that makes this example:
public String impersonate(String username) {
String currentUser = AuthenticationUtil.getFullyAuthenticatedUser();
if (currentUser == null || !currentUser.equals(username)) {
AuthenticationUtil.setRunAsUser(username);
AuthenticationUtil.setFullyAuthenticatedUser(username);
}
return currentUser;
}
from maven I don't find the library that has the class and methods described in the code above.
can you help me?
ps: maybe they are old API? I must use spring API?
if you have alternative methods you can post the code and also the link to download the API please