The methods you are looking for are in atg.userprofiling.ProfileTools,
like getItem, getItemFromEmail, etc.
- George
ProfileTools is available in Nucleus at "/atg/userprofiling/ProfileTools".
So you can set it up in your .properties file for components that need it.
Use those methods for getting at any given user profile. If you want the
"current" user profile there are a couple other ways.
If you are in a request thread the current user's profile is bound to that
thread. This is setup in the servlet pipeline (well dafpipeline on non-DAS
appservers!)
If you have access to DynamoHttpServletRequest you can always just resolve
it with that
request.resolveName("/atg/userprofiling/Profile");
If you don't have access to DynamoHttpServletRequest, but you are in a
request thread you can still get the Profile object since it's bound to a
thread local. This is kind of a last resort though, it's really not
preferred.
Use:
Profile p = (Profile) atg.servlet.ServletUtil.getCurrentUserProfile();
You need to make the cast to Profile since ServletUtil is actually in the
DAS module. It has no reference to DPS classes.
-- Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ATG_Tech" group.
To post to this group, send email to atg_...@googlegroups.com
To unsubscribe from this group, send email to
atg_tech-u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/atg_tech?hl=en
-~----------~----~----~----~------~----~------~--~---