ATG User Profile Basics

OOTB ATG Manages user profiles with a SQL repository
SQL Repository Component : /atg/userprofiling/ProfileAdapterRepository
Definition File: /atg/userprofiling/userProfile.xml
Current user represented using Profile component (/atg/userprofiling/Profile) and exposes all the properties from the userProfile.xml

There are two types of users:
1) External Users

            Web Site registered users and are stored in ProfileAdapterRepository
2) Internal Users

        Company users who need access to BCC, CSC etc.. and are stored in InternalProfileRepository

Profile Repository definition file layering: (/atg/userprofiling/ProfileAdapterRepository/?propertyName=definitionFiles)

/DPS/config/profile.jar/atg/userprofiling/userProfile.xml
/DSS/config/config.jar/atg/userprofiling/userProfile.xml
/DCS/config/config.jar/atg/userprofiling/userProfile.xml
/APPLICATION_NAME/config/config.jar/atg/userprofiling/userProfile.xml

ProfileFormHanlder:
Component path: /atg/userprofiling/ProfileFormHandler/
This component helps to create, update, login, logout, change password etc…

Various methods available are:
  • handleCreate()
  • handleUpdate()
  • handleCancel()
  • handleDelete()
  • handleLogin()
  • handleLogout()
  • handleChangePassword()
How to create a new user?
Here is a code snippet:

 
 

How to check if user is logged in or Anonymous?
Using /atg/userprofiling/Profile.transient property. It returns false, if the Profile is saved. Otherwise true will be returned.

 

3 comments:

  1. Well written article. Get rid of the traditional ways of marketing and buy a customized email list from us. One real-time data can change your entire business for good. Parana Impact provides you the Email List that you are exactly looking for.
    We have worked with many organizations of all the sizes. Our main focus is customer satisfaction. ATG Users Email List

    ReplyDelete
  2. Every word in this article is well-framed and has answered all the questions before I wanted to ask. I appreciate your eagerness and interest to know more about our organization. Pegasi Media Group provides you the email list of the decision-makers in all types of domains and industries that you are planning to target, which helps you to approach the prospects that are interested and authorized to buy your products. ATG Users Email List

    ReplyDelete
  3. Mirza has worked with and learned from the most accomplished leaders in hospitality. profile

    ReplyDelete