Samples > Starter stores > Starter store enhancements > IBM Gift Center for the Madisons starter store > Work with the sample store pages


Customize IBM Gift Center for Madisons

You can customize IBM Gift Center for Madisons the same way you customize the Madisons starter store. The sample store pages for IBM Gift Center for Madisons use a set of Web services to perform the runtime gift registry functions. These Web services are supported by a set of Java classes. A Struts configuration file maps URLs to Web service methods provided by the GiftCenterFacadeClient class. To customize IBM Gift Center for Madisons, you might need to learn more about these assets and how to find them.


Web services

The Gift Center Web services use the Business Object Document (BOD) command framework with the data service layer (DSL) for persistence. These Web services function in the same way as other WebSphere Commerce BOD services that use DSL, such as the catalog authoring services. The Gift Center Web services interact with a single noun, GiftList, that represents the Gift Center logical model definition.

For more information about the Gift Center Web services and the GiftList noun, see GiftList noun.

The Gift Center Web services and the GiftList noun also support the Madisons multiple wish list feature and wish list remote widgets available with WebSphere Commerce v7 Feature Pack 1.


Java classes

The Java classes that support IBM Gift Center for Madisons are included in a package that is separate from the Java classes provided with the IBM Gift Center for the Consumer direct sample store:

For more information about the IBM Gift Center for Madisons Java classes, interfaces, and methods, see the classes within the com.ibm.commerce.giftcenter package in WebSphere Commerce API.


Struts configuration file

IBM Gift Center for Madisons uses its own Struts configuration file to map URLs to Web service methods provided by the GiftCenterFacadeClient class. This Struts configuration file is located here:

WC_EAR/Stores.war/WEB-INF/struts-config-giftcenter-services.xml


JavaScript files

IBM Gift Center for Madisons includes a set of JavaScript files located here:

WCDE_INSTALL/workspace/Stores/WebContent/Madisons/javascript/GiftCenter

You can view the JavaScript code to understand:


The get-data-config.xml configuration file

IBM Gift Center for Madisons uses a get-data-config.xml configuration file to define various get data methods, the parameters that are passed, and the data that is returned. This file is located here:

WCDE_INSTALL/workspace/Stores/WebContent/WEB-INF/config/com.ibm.commerce.giftcenter/get-data-config.xml


Customization reference information

The Information Center provides some topics that you can refer to when customizing IBM Gift Center for Madisons:


Related concepts

IBM Gift Center for the Consumer direct sample store

IBM Gift Center for the Madisons starter store

WebSphere Commerce BOD command framework

Nouns


Related tasks

IBM Gift Center for Madisons: Creating a custom business validation rule

Related reference

IBM Gift Center for Madisons: Directory structure


+

Search Tips   |   Advanced Search