How to Use Profile Realms on (ATG Oracle Commerce)

Profile Realms were introduced into ATG 10.1, and it is a feature that will allow a MultiSite environment being able delimit users profiles among Sites.

Let's use ATG Commerce Reference Store as example.

OOTB uses Default Profile Realm  which basically allows you to use the same profile on all the sites.



But if you want to restrict the profiles per site you can do this configuring Profile realms:

Let's see this example:





The First thing to do is create your Profile Realms, in order to do it go to PUB dyn admin and browse to component /atg/multisite/ProfileRealmManager/ there is a form to create the realm and it ask for and ID, name and description. refer to http://docs.oracle.com/cd/E52191_02/Platform.11-1/ATGMultisiteAdminGuide/html/s1703creatingaprofilerealm01.html



Provide that information and click on create, we have created 2 Profile Realms for CRS, crsUS and crsDE, when this is done BCC is able to see them.




After the profiles are present, it is time to associate those with the Sites.


In terms of configuration this is the only thing you need to do, CRS is able to handle profile realms, but if your custom applications is not using CRS as base store you need to take care of some considerations on your code.

But In code you need to take care of some things, like push and pop the profile realmId every time you are doing any action with the profile, such as Login, Logout, Edit account information, edit Profile Credit Card and so on, this can be found on the documentation at http://docs.oracle.com/cd/E35319_01/Platform.10-2/ATGPlatformProgGuide/html/s0908profilerealmcontextpushandpopmet01.html


This is a video of how the profile realms we configured above work inside CRS.







Comments