05-29-2013 05:43 AM
public class TomarPosesionWebScript extends AbstractWebScript {
@Override
public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {
logger.info(services.getAuthenticationService().getCurrentUserName()); // Esto muestra null
RequestContext context = ThreadLocalRequestContext.getRequestContext();
User user = context.getUser();
logger.info(user.getFullName()); // Esto da nullpointer porque el objeto 'user' es null
logger.info(org.alfresco.repo.security.authentication.AuthenticationUtil.getFullyAuthenticatedUser()); // Esto muestra null
[…]
}
05-29-2013 12:07 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.