cancel
Showing results for 
Search instead for 
Did you mean: 

how to get current user properties in java

ezeng_ixxus
Champ in-the-making
Champ in-the-making
Hi There:

Is there anyway we can get the current user properties in java?

thanks
2 REPLIES 2

jpfi
Champ in-the-making
Champ in-the-making
Hi,
which layer? Alfresco-repo or Share?
cheers, jan

abarisone
Star Contributor
Star Contributor
Hi,
you should use PersonService http://dev.alfresco.com/resource/docs/java/repository/index.html?org/alfresco/service/cmr/security/P... getting it injected by Spring in your class.
Then you can use getPerson(username) to get the associated NodeRef object.

Regards,
Andrea