Handling post login activities in ATG.

In typical B2B commerce applications we would do some post user login activities. Two most common post login activities are

1. Load user roles from LDAP/Roles Management System.

2. Update shopping cart with latest status from order fulfillment system.

The best place to abstarct above listed behavior or similar behavior is the postLoginUser method in ProfileFormHandler component.

Profile form handler static design.

ATG Profile Form Handler

Extend CommerceProfileFormHandler

Reconfigure ProfileFormHandler with your class