loading table of contents...

5.2.2.3. Registration

When a user registers at the system, the UserServiceImpl.registerUser() method is called. If the user data is valid, the user is registered in the CMS first. The registration call against the IBM WebSphere Commerce system is executed afterwards. If both calls are successful, the user is notified about a successful registration. If the IBM WebSphere Commerce registration fails, the user is deleted from the CMS afterwards.

The registration call of the UserServiceImpl sets the system property elastic.automatic.user.activation to "true". This ensures that the user is automatically a registered user in the CMS and no separate registration confirmation has to be executed. Also, for security reason the password of the user is only stored in the IBM WebSphere Commerce server and reset to an empty string before it is stored in the CMS. Since the authentication is executed against the IBM WebSphere Commerce system, it is not used here.

[Note]Note

The field mapping between the Elastic Social and commerce user models can be customized in the class PersonMapper. The class implements the mandatory mappings that are executed during the registration and the profile editing of the user.