AnsweredAssumed Answered

Get Username in Java from API

Question asked by emelbye on Nov 21, 2012
Latest reply on Nov 30, 2012 by emelbye

My Project
I've a Netbeans project called ReporteBC.
- reporte.jsp
- reporte.jasper (made by iReport)
- reporte.jasper contains data from CMIS (a simple query like: select * from ld:legajos)… In the report I made a group and count.

Then, I generate Reporte.war from ReporteBC and I put this file into /alfresco/tomcat/webapps folder
I can access via The report is a PDF file and its OK (with data and graphics)…..

How can I get the username of the current user?

I have something like:
String nombreDeUsuario =;
// reporte.setParameter(nombreDeUsuario);
in the reporte.jsp, but nombreDeUsuario is NULL.

Im doing something wrong with AuthenticationUtil.getFullyAuthenticatedUser();?…. I have to use other class? Other method? Cookie? Session? What?
The only thing I need is the current username in my reporte.jsp

Help me please!!!…
Im using Alfresco Community 3.4d
Sorry my english and
Thank you for your help!…