User registration xC extension points
We can customize how WebSphere 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 we 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
- Sample UEConfig_personregpre.csv
- Set UEConfigId column to a unique integer value.
- Set Url column to the URL of the extension code, relative to https://hostname:9443/commerceue.
- Set Properties column as name-value pairs. See Adding xC configuration information
- Sample CmdReg_personregpre.csv
- Set Properties column to include the UEConfigId integer value.
- Set StoreIdentifier column to include the name of your store. If we want all stores to use the same extension code, then specify NullEntity. See Registering custom xC extensions.
person_register_post
- Sample UEConfig_personregpost.csv
- Set UEConfigId column to a unique integer value.
- Set Url column to the URL of the extension code, relative to https://hostname:9443/commerceue.
- Set Properties column as name-value pairs. See Adding xC configuration information
- Sample CmdReg_personregpost.csv
- Set Properties column to include the UEConfigId integer value.
- Set StoreIdentifier column to include the name of your store. If we want all stores to use the same extension code, then specify NullEntity. See Registering custom xC extensions.
person_update_pre
- Sample UEConfig_personupdpre.csv
- Set UEConfigId column to a unique integer value.
- Set Url column to the URL of the extension code, relative to https://hostname:9443/commerceue.
- Set Properties column as name-value pairs. See Adding xC configuration information
- Sample CmdReg_personupdpre.csv
- Set Properties column to include the UEConfigId integer value.
- Set StoreIdentifier column to include the name of your store. If we want all stores to use the same extension code, then specify NullEntity. See Registering custom xC extensions.
person_update_post
- Sample UEConfig_personupdpost.csv
- Set UEConfigId column to a unique integer value.
- Set Url column to the URL of the extension code, relative to https://hostname:9443/commerceue.
- Set Properties column as name-value pairs. See Adding xC configuration information
- Sample CmdReg_personupdpost.csv
- Set Properties column to include the UEConfigId integer value.
- Set StoreIdentifier column to include the name of your store. If we want all stores to use the same extension code, then specify NullEntity. See Registering custom xC extensions.