how to get current user properties in java

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2013 04:50 AM
Hi There:
Is there anyway we can get the current user properties in java?
thanks
Is there anyway we can get the current user properties in java?
thanks
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2013 05:10 AM
Hi,
which layer? Alfresco-repo or Share?
cheers, jan
which layer? Alfresco-repo or Share?
cheers, jan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2013 05:11 AM
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
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
