IBM Gift Center customization

IBM Gift Center uses the same development environment as WebSphere Commerce. Be familiar with the development environment, if you plan to customize the IBM Gift Center. Likewise, any customization on your development environment should be deployed to your WebSphere Commerce Server, when you are ready to transfer your customization to a production environment.

What do I need to know before customizing the IBM Gift Center?

Before you customize the IBM Gift Center, consider:

 

Customizing the IBM Gift Center

The create and update gift registry scenario will be used throughout this section as a reference point on how to customize the IBM Gift Center. The following diagram illustrates the create and update gift registry tasks, and lists several of the key file assets required when considering customization:

As illustrated, after a gift registrant has submitted gift registry information from the store's online form, the corresponding JSP file passes name-value pairs to the GiftRegistryCreate action. From the name-value pairs, an input BOD is created and the IBM Gift Center service interface is called, and returns a confirm BOD. If an error occurs, the service interface returns a service exception (containing the confirm BOD). If the job is successful, the GiftRegistryCreate action returns a success JSP page to the gift registrant, and creates a gift registry on the system.

Meanwhile, the GiftRegistryServiceBeanBase incorporates the components service interface, and simply calls a corresponding task command (in this case, the UpdateGiftRegistryCmd command). The UpdateGiftRegistryCmd command includes the business flow logic as it calls several other BusinessObjectDocumentCmd commands to complete the process of creating a gift registry. The other commands are as follows: