User registration xC extension points
You can customize how HCL Commerce handles user registration. For example, use these extension points to add custom logic to validate user information before the user profile is updated.
The following table identifies the classes for user-related commands that you can
customize through an externalized customization extension.
Extension point | Where the extension point is used | Request, Response formats | Sample extension code location | Sample CSV input files |
---|---|---|---|---|
person_register_pre | The register user operation (POST person) calls the person_register_pre extension point to perform custom actions (for example, validate the command inputs) before registering the user. | PersonPreUERequest, PersonPreUEResponse | The personRegisterPre method in workspace_dir/commerceue-app/src/main/java/com/ibm/commerce/member/ue/rest/PersonResource.java | person_register_pre |
person_register_post | The register user operation (POST person) calls the person_register_post extension point to perform custom actions (for example, update the user attributes) after registering the user. | PersonPostUERequest, PersonPostUEResponse | The personRegisterPost method in workspace_dir/commerceue-app/src/main/java/com/ibm/commerce/member/ue/rest/PersonResource.java | person_register_post |
person_update_pre | The update user operation (PUT person/@self) calls the person_update_pre extension point to perform custom actions (for example, validate the command inputs) before updating the user. | PersonPreUERequest, PersonPreUEResponse | The personUpdatePre method in workspace_dir/commerceue-app/src/main/java/com/ibm/commerce/member/ue/rest/PersonResource.java | person_update_pre |
person_update_post | The update user operation (PUT person/@self) calls the person_update_post extension point to perform custom actions (for example, update the user attributes) after updating the user. | PersonPostUERequest, PersonPostUEResponse | The personUpdatePost method in workspace_dir/commerceue-app/src/main/java/com/ibm/commerce/member/ue/rest/PersonResource.java | person_update_post |
Sample input files for registering and assigning order xC extension points
Extension point | Registering extension code with UEConfig.csv | Assigning extension code to extension points with CmdReg.csv |
---|---|---|
person_register_pre |
|
|
person_register_post |
|
|
person_update_pre |
|
|
person_update_post |
|
|